<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Imp loses attachments</title> 
  <pubDate>Fri, 10 Apr 2026 19:46:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8005</link> 
  <atom:link rel="self" type="application/rss+xml" title="Imp loses attachments" href="https://bugs.horde.org/ticket/8005/rss" /> 
  <description>Imp loses attachments</description> 
 
   
   
  <item> 
   <title>Imp loses attachments which have no name.

Steps to reproduc</title> 
   <description>Imp loses attachments which have no name.

Steps to reproduce:

1.  Enter the compose window, put in a destination address and subject

2.  At the bottom, click the browse button to attach a file from the local filesystem (not VFS).

3.  Click &quot;update&quot; on the bottom-right

- At this point you should have a message stating that the attachment was successful -

4.  Send the message

5.  Check if the message was sent with an attachment - it was not.



An easy fix/workaround (patch attached) is to name attachments after their filename by default.  Now unless the user manually clears out the description box at the bottom, the file will get attached.  I have verified that PGP-signed messages with attachments go out on my setup using this patch.</description> 
   <pubDate>Tue, 17 Feb 2009 19:52:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52663</link> 
  </item> 
   
  <item> 
   <title>Seems okay unless I&#039;m missing something.</title> 
   <description>Seems okay unless I&#039;m missing something.</description> 
   <pubDate>Wed, 18 Feb 2009 16:39:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52676</link> 
  </item> 
   
  <item> 
   <title>&gt; Seems okay unless I&#039;m missing something.



#1 - There is </title> 
   <description>&gt; Seems okay unless I&#039;m missing something.



#1 - There is no need to add description information.  It is useless, superfluous information in this situation.

#2 - More important, attaching files works perfectly fine for me.  And considering how this is how the millions of people that use IMP attach files every day, it is doubtful there is anything wrong with our code.  You need to find the exact reason/location in IMP code why we wouldn&#039;t be attaching the file if there is no description.</description> 
   <pubDate>Fri, 20 Feb 2009 05:11:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52705</link> 
  </item> 
   
  <item> 
   <title>&gt; #1 - There is no need to add description information.  It </title> 
   <description>&gt; #1 - There is no need to add description information.  It is useless, 

&gt; superfluous information in this situation.



Isn&#039;t the Content-Description what is displayed by MUAs for the attachment?  When I PGP-sign something, the signature shows up as &quot;noname&quot;.  Why would you not want it to be something like &quot;Signature&quot; instead?  Why would you choose to have a file be &quot;noname&quot; over &quot;foo.txt&quot;?



&gt; #2 - More important, attaching files works perfectly fine for me.  

&gt; And considering how this is how the millions of people that use IMP 

&gt; attach files every day, it is doubtful there is anything wrong with 

&gt; our code.  You need to find the exact reason/location in IMP code why 

&gt; we wouldn&#039;t be attaching the file if there is no description.



OK, look, I&#039;m not making this up.  This is an actual bug at my end.  Please work with me to find out what combination of options triggers it instead of asserting that it works for millions of people.



I will attach all relevant configuration files and information.</description> 
   <pubDate>Fri, 20 Feb 2009 18:58:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52727</link> 
  </item> 
   
  <item> 
   <title>I&#039;m using Apache 2.2.10, PHP 5.2.8-r1, and a Zimbra 5.0.12 I</title> 
   <description>I&#039;m using Apache 2.2.10, PHP 5.2.8-r1, and a Zimbra 5.0.12 IMAP server.  All this runs atop Linux 2.6.18-xen-r4 on a VM allocated 2 Xeon E5310s and 3/4 of a GB of memory.

</description> 
   <pubDate>Fri, 20 Feb 2009 19:03:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52729</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; #1 - There is no need to add description information.  It</title> 
   <description>&gt;&gt; #1 - There is no need to add description information.  It is useless,

&gt;&gt; superfluous information in this situation.

&gt;

&gt; Isn&#039;t the Content-Description what is displayed by MUAs for the 

&gt; attachment?  When I PGP-sign something, the signature shows up as 

&gt; &quot;noname&quot;.  Why would you not want it to be something like &quot;Signature&quot; 

&gt; instead?  Why would you choose to have a file be &quot;noname&quot; over 

&gt; &quot;foo.txt&quot;?



You are correct in the MUA&#039;s will display Content-Description for a part.  But in the absence of a Content-Description part, a MUA will fall back to the filename of the part (if it exists) in either the Content-Disposition or Content-Type MIME header.  This is why, for attachments, Content-Description is superfluous.  For other, non-attachment parts (such as a PGP multipart container part), it is useful to have a Content-Description header because there is no filename.



However, for PGP signature, we already set the Content-Description header (see, e.g., horde/framework/Crypt/Crypt/pgp.php, line 1487):



$pgp_sign-&gt;setDescription(String::convertCharset(_(&quot;PGP Digital Signature&quot;), NLS::getCharset(), $charset));



So if that is not appearing in your message, I don&#039;t know what is happening.



&gt;&gt; #2 - More important, attaching files works perfectly fine for me.

&gt;&gt; And considering how this is how the millions of people that use IMP

&gt;&gt; attach files every day, it is doubtful there is anything wrong with

&gt;&gt; our code.  You need to find the exact reason/location in IMP code why

&gt;&gt; we wouldn&#039;t be attaching the file if there is no description.

&gt;

&gt; OK, look, I&#039;m not making this up.  This is an actual bug at my end.  

&gt; Please work with me to find out what combination of options triggers 

&gt; it instead of asserting that it works for millions of people.



I did not mean to sound condescending and I apologize.  I simply was trying to indicate that this more than likely is something specific to your system rather than with Horde/IMP in general.  And explaining why I was not going to apply your patch - simply because in theory, it shouldn&#039;t fix anything.



Are you only sending attachments with PGP?  Have you tried sending attachments with no encryption?</description> 
   <pubDate>Fri, 20 Feb 2009 19:19:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52730</link> 
  </item> 
   
  <item> 
   <title>&gt; However, for PGP signature, we already set the Content-Des</title> 
   <description>&gt; However, for PGP signature, we already set the Content-Description 

&gt; header (see, e.g., horde/framework/Crypt/Crypt/pgp.php, line 1487):

&gt;

&gt; $pgp_sign-&gt;setDescription(String::convertCharset(_(&quot;PGP Digital 

&gt; Signature&quot;), NLS::getCharset(), $charset));

&gt;

&gt; So if that is not appearing in your message, I don&#039;t know what is happening.

&gt;



You&#039;re right, I do see that, when I look at the message in my sent mail folder in claws-mail with the PGP plugin.  But when I look through the Gmail web interface, I see &quot;noname&quot;.  Go figure?



&gt; I did not mean to sound condescending and I apologize.  I simply was 

&gt; trying to indicate that this more than likely is something specific 

&gt; to your system rather than with Horde/IMP in general.  And explaining 

&gt; why I was not going to apply your patch - simply because in theory, 

&gt; it shouldn&#039;t fix anything.

&gt;

&gt; Are you only sending attachments with PGP?  Have you tried sending 

&gt; attachments with no encryption?



Apology accepted.



I have tried sending attachments both with and without PGP.  I have an exceedingly complicated setup, so it&#039;s very hard to track down what&#039;s causing the problem, but I have verified that attachments work 100% of the time when a Content-Description is included.



Here is how mail flows for me:



1.  Message composed using Horde web interface

2.  Message delivered to local &quot;sendmail&quot; (SSMTP) on web server and stored on mail server via IMAP

3.  Sendmail connects via TLS to SMTP port 2525 on mail server

4.  Mail server accepts message via Postfix

5.  Postfix on mail server feeds message to DKIM-signer

6.  DKIM-signer reinjects message into mail server local Postfix

7.  Mail goes out



I don&#039;t think the DKIM signer is the problem, honestly.  It just adds two header fields to the message.  So that just leaves the IMAP server, ssmtp, postfix, and imp.



Looking at this from another direction, adding the Content-Description field does no harm save for making messages one line longer per attachment.  So why NOT put it in by default?  Users could still clear it by blanking the attachment description fields...</description> 
   <pubDate>Fri, 20 Feb 2009 23:16:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52732</link> 
  </item> 
   
  <item> 
   <title>&gt; You&#039;re right, I do see that, when I look at the message in</title> 
   <description>&gt; You&#039;re right, I do see that, when I look at the message in my sent 

&gt; mail folder in claws-mail with the PGP plugin.  But when I look 

&gt; through the Gmail web interface, I see &quot;noname&quot;.  Go figure?



That doesn&#039;t tell us anything because Gmail may very well be broken re: this.  I don&#039;t think Gmail supports multipart/encrypted anyway.



&gt; Here is how mail flows for me:



How about looking at the sent-mail folder?  IMP will save the exact copy of the message text it sends to the outbound mail server, so looking at the copy in the sent-mail folder will show what is being sent out unadulterated by any other process down the chain.  The message source of the message might be useful to look at.



&gt; Looking at this from another direction, adding the 

&gt; Content-Description field does no harm save for making messages one 

&gt; line longer per attachment.  So why NOT put it in by default?  Users 

&gt; could still clear it by blanking the attachment description fields...



As mentioned previously, it&#039;s a waste of space (60-80 bytes per e-mail adds up on a server with millions of users).  It&#039;s also *not* what Content-Description was created for.  From RFC 2045[8]:



   The ability to associate some descriptive information with a given

   body is often desirable.  For example, it may be useful to mark an

   &quot;image&quot; body as &quot;a picture of the Space Shuttle Endeavor.&quot;  Such text

   may be placed in the Content-Description header field.  This header

   field is always optional.



Here, we don&#039;t care about descriptive information for attachments (while there is a Description field in IMP 4, this field has been removed in IMP 5 for exactly this reason).  Description != filename.



Additionally, adding the Content-Description field is simply masking the real problem.  This is no different than turning up your car radio when your engine starts making funny sounds.  It may fix the issue temporarily, but doesn&#039;t give you any insight into the reason why it is broken in the first place.</description> 
   <pubDate>Mon, 23 Feb 2009 08:11:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52752</link> 
  </item> 
   
  <item> 
   <title>&gt; That doesn&#039;t tell us anything because Gmail may very well </title> 
   <description>&gt; That doesn&#039;t tell us anything because Gmail may very well be broken 

&gt; re: this.  I don&#039;t think Gmail supports multipart/encrypted anyway.



Probably true.  Works fine in my mail client anyhow so I don&#039;t care.



&gt;&gt; Here is how mail flows for me:

&gt;

&gt; How about looking at the sent-mail folder?  IMP will save the exact 

&gt; copy of the message text it sends to the outbound mail server, so 

&gt; looking at the copy in the sent-mail folder will show what is being 

&gt; sent out unadulterated by any other process down the chain.  The 

&gt; message source of the message might be useful to look at.



The attachment is completely omitted in the IMAP-stored message.  It&#039;s exactly as if it was never attached to begin with.



&gt; Additionally, adding the Content-Description field is simply masking 

&gt; the real problem.  This is no different than turning up your car 

&gt; radio when your engine starts making funny sounds.  It may fix the 

&gt; issue temporarily, but doesn&#039;t give you any insight into the reason 

&gt; why it is broken in the first place.



Fair enough.  Let&#039;s find and fix the bug, then.</description> 
   <pubDate>Mon, 23 Feb 2009 21:24:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52765</link> 
  </item> 
   
  <item> 
   <title>&gt; The attachment is completely omitted in the IMAP-stored me</title> 
   <description>&gt; The attachment is completely omitted in the IMAP-stored message.  

&gt; It&#039;s exactly as if it was never attached to begin with.



Sounds like the preference to NOT save attachments in sent-mail is turned on.</description> 
   <pubDate>Mon, 09 Mar 2009 00:46:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52954</link> 
  </item> 
   
  <item> 
   <title>&gt; Sounds like the preference to NOT save attachments in sent</title> 
   <description>&gt; Sounds like the preference to NOT save attachments in sent-mail is turned on.



Nope.  It&#039;s on.  Besides, wouldn&#039;t the actual received message still have the attachment?



Still trying to track down the cause over here...</description> 
   <pubDate>Mon, 09 Mar 2009 01:13:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t52956</link> 
  </item> 
   
  <item> 
   <title>Any luck tracking this down?  This really sounds like a MIME</title> 
   <description>Any luck tracking this down?  This really sounds like a MIME filtering issue outside of the scope of IMP/Horde.  Maybe attaching the message source of a message that has been stripped would be useful.</description> 
   <pubDate>Wed, 25 Mar 2009 19:12:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8005#t53289</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
