6.0.0-beta1
7/6/25

[#14628] Missing .PDF Attachment if MIME-Type: application/octet-stream
Summary Missing .PDF Attachment if MIME-Type: application/octet-stream
Queue Horde Groupware Webmail Edition
Queue Version 5.2.19
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester se14m037 (at) technikum-wien (dot) at
Created 05/02/2017 (2987 days ago)
Due
Updated 05/07/2017 (2982 days ago)
Assigned 05/03/2017 (2986 days ago)
Resolved 05/04/2017 (2985 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/07/2017 01:05:40 AM Michael Rubinsky Comment #6 Reply to this comment
It's not an attachment. It a subpart of an multipart/alternative
message. If it was intended as an attachment, the sending email
client is broken.
How do you come to that conclusion looking at the source code I pasted?
From the MIME structure of the message. I.e.,

Content-Type: multipart/alternative;
  boundary="===============7772187630267219476=="
05/06/2017 08:01:11 PM se14m037 (at) technikum-wien (dot) at Comment #5 Reply to this comment
It's not an attachment. It a subpart of an multipart/alternative 
message. If it was intended as an attachment, the sending email 
client is broken.
How do you come to that conclusion looking at the source code I pasted?

Anyway, I forgot to mention in my initial post, all other mail clients 
are having no problems receiving the attachement.
If you take a look at the source code again, this mail is being sent 
to several recipients, including Google Mail and Microsoft Live 
accounts. All the other accounts detect the attachement and make it 
available for download, only mails that are sent to mail servers 
running horde, are having this problem.
05/04/2017 12:38:40 PM Jan Schneider Comment #4
State ⇒ Not A Bug
Reply to this comment
It's not an attachment. It a subpart of an multipart/alternative 
message. If it was intended as an attachment, the sending email client 
is broken.
05/03/2017 09:49:58 PM se14m037 (at) technikum-wien (dot) at Comment #3 Reply to this comment
Unfortunately I can't. There's a char limit on this field which is too 
low for the whole source code of the mail.

Here's the header and part of the pdf. Here's a link to the whole 
source code: https://paste.ee/p/2gi8O

From SRS0=o6uB=4I=technik.co=pruning_system@technikum-wien.at  Tue 
May  2 11:00:19 2017
Return-Path: <SRS0=o6uB=4I=technik.co=pruning_system@technikum-wien.at>
X-Original-To: se14m037@technikum-wien.at
Delivered-To: se14m037@technikum-wien.at
Received: from localhost (localhost [127.0.0.1])
        by polyxena.technikum-wien.at (Postfix) with ESMTP id F10C34E22DE
        for <se14m037@technikum-wien.at>; Tue,  2 May 2017 11:00:18 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at polyxena.technikum-wien.at
Received: from polyxena.technikum-wien.at ([127.0.0.1])
        by localhost (polyxena.technikum-wien.at [127.0.0.1]) (amavisd-new, 
port 10024)
        with ESMTP id C-xccCPQnftK for <se14m037@technikum-wien.at>;
        Tue,  2 May 2017 11:00:17 +0200 (CEST)
Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com 
[74.125.82.44])
        (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
        (No client certificate requested)
        by polyxena.technikum-wien.at (Postfix) with ESMTPS
        for <se14m037@technikum-wien.at>; Tue,  2 May 2017 11:00:16 +0200 (CEST)
Received: by mail-wm0-f44.google.com with SMTP id w64so105364280wma.0
         for <se14m037@technikum-wien.at>; Tue, 02 May 2017 02:00:16 
-0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
         d=technik-co.20150623.gappssmtp.com; s=20150623;
         h=message-id:date:mime-version:subject:from:to;
         bh=pYIlL77BnSqHXsE3jmS0e20qpNl7r8CJm+nDKBUyls4=;
         b=arapOI6T8U+9nu+VUpyq/w00oiWhHkH/6Yyp35H845EtI3Uu53hBTYFUB4I59xv72e
          s3MS4v5jx5m3gdvfWqozGJy3PsPrS2rDC61x+8kUpDqIt5K1MFZn/6OXejOzYV1TqtMA
          8AjNp0LRJ48hzmd7F1MIb/iDF+9uEGaFrMI9n+phBREhH8807t6tDYoqEN8uB5yZbg0r
          e2jF5Yy5NEn3nKu390aCRh+w4eaRvqK7IzmzrlY2c80iy1hmNoVaPgotoQ2vz/kZA6JD
          H3ge6n8FuIKDekGwG+u2yQ9h+nTFky7NiJviAlutfseIk/QPACjTVzKu2NyuL8CtsVMt
          oS4A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
         d=1e100.net; s=20161025;
         h=x-gm-message-state:message-id:date:mime-version:subject:from:to;
         bh=pYIlL77BnSqHXsE3jmS0e20qpNl7r8CJm+nDKBUyls4=;
         b=pOSCL8l6+x7GDqpSKWKaobZmEbzWYySnGlgWiYEDkM+u3YiiLfkb3dEvkzVS1w04NW
          EUjuOQoIWTVvuTzOuRqklq/y4AH7W69Z/RIgAUywCVxAhUTQnvQFouhaFC0szHRxdiTI
          P0eLcebUyD8LyNFu06529xIEKygcx8pbUsHHGjXxwC8EwEo3OX6A9xLR5Gm45DZfvpjq
          LOlYf7shmF4H8EZ4aXlSIrgRu51seSXXwJIItxEHfQUoc/aTw+IOtFMVB+dsDTco85TD
          E3gK3MwSONuivafXB/Zas5BWV+fQoI6WB1BzBAAfPca1VYZqx2FMmFC0+wBuII4lSyJU
          v2lg==
X-Gm-Message-State: AN3rC/5gevgP3WwBiXXiEA33L0yWGbiLM9YyInIlB68UKoUGtnBuqUw+
        ybz48nLIMi/yzYDy
X-Received: by 10.28.191.129 with SMTP id o1mr1276993wmi.102.1493715615073;
         Tue, 02 May 2017 02:00:15 -0700 (PDT)
Received: from math01.technik.co ([116.217.11.192])
         by smtp.gmail.com with ESMTPSA id 30sm8138071wrp.6.2017.05.02.02.00.11
         (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
         Tue, 02 May 2017 02:00:11 -0700 (PDT)
Message-ID: <59084a9b.a193df0a.2fb5d.2980@mx.google.com>
Date: Tue, 02 May 2017 02:00:11 -0700 (PDT)
Content-Type: multipart/alternative;
  boundary="===============7772187630267219476=="
MIME-Version: 1.0
Subject: Test Package for Ger (2017-05-02/2017-05-05)[1/1]
From: pruning_system@technik.co
To: nufsfccbo@gmail.com; se14m037@technikum-wien.at


--===============7772187630267219476==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit


--===============7772187630267219476==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64

PGgxPlByZXZpZXcgYW5hbHlzdCBwYWNrYWdlPC9oMT48cD5QbGVhc2UgZmluZCBhdHRhY2hlZCB0
aGUgcGRmIHJlcG9ydHM8L3A+

--===============7772187630267219476==
Content-Type: application/octet-stream; Name="test.pdf"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.pdf"

JVBERi0xLjQKMSAwIG9iago8PAovVGl0bGUgKP7/KQovQ3JlYXRvciAo/v8pCi9Qcm9kdWNlciAo
/v8AUQB0ACAANAAuADgALgA2KQovQ3JlYXRpb25EYXRlIChEOjIwMTcwNTAyMDUyNTQ2KQo+Pgpl
bmRvYmoKMiAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMyAwIFIKPj4KZW5kb2JqCjQg
MCBvYmoKPDwKL1R5cGUgL0V4dEdTdGF0ZQovU0EgdHJ1ZQovU00gMC4wMgovY2EgMS4wCi9DQSAx
LjAKL0FJUyBmYWxzZQovU01hc2sgL05vbmU+PgplbmRvYmoKNSAwIG9iagpbL1BhdHRlcm4gL0Rl
dmljZVJHQl0KZW5kb2JqCjkgMCBvYmoKPDwKL1R5cGUgL1hPYmplY3QKL1N1YnR5cGUgL0ltYWdl
Ci9XaWR0aCAxMzYKL0hlaWdodCAxOTUKL0ltYWdlTWFzayB0cnVlCi9EZWNvZGUgWzEgMF0KL0xl
bmd0aCAxMCAwIFIKL0ZpbHRlciAvRmxhdGVEZWNvZGUKPj4Kc3RyZWFtCnic7dcxDQAADAOg+je9
/XXQBFyQlAMAAFjVwckDfdbE5GVuZHN0cmVhbQplbmRvYmoKMTAgMCBvYmoKMzMKZW5kb2JqCjEx
IDAgb2JqCjw8Ci9UeXBlIC9YT2JqZWN0Ci9TdWJ0eXBlIC9JbWFnZQovV2lkdGggMTM2Ci9IZWln

.......... can't paste more as limit of this field is reached. Please 
see the link to the complete src posted above.
05/03/2017 08:54:01 AM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Please provide the complete source of such a message.
05/02/2017 06:32:02 PM se14m037 (at) technikum-wien (dot) at Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Missing .PDF Attachment if MIME-Type: application/octet-stream
Queue ⇒ Horde Groupware Webmail Edition
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
When sending a mail with a .pdf attachment from somewhere that serves 
it as content-type: "application/octet-stream", the horder webmail 
client doesn't show the mail as having an attachment at all.

But if you download the mail and take a look at the source code you 
can see that there's a .pdf included in the mail.

Here's an example:
--===============7772187630267219476==
Content-Type: application/octet-stream; Name="test.pdf"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.pdf"

JVBERi0xLjQKMSAwIG9iago8PAovVGl0bGUgKP7/KQovQ3JlYXRvciAo/v8pCi9Qcm9kdWNlciAo
/v8AUQB0ACAANAAuADgALgA2KQovQ3JlYXRpb25EYXRlIChEOjIwMTcwNTAyMDUyNTQ2KQo+Pgpl
bmRvYmoKMiAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMyAwIFIKPj4KZW5k..........

--===============7772187630267219476==--

Forwarding the email to another client doesn't seem to solve the 
issue. At that point it doesn't seem to include the .pdf binary anymore.

Saved Queries