<?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>Off-by-one error: Selecting NO for &#039;Save Attachments with message in sent-mail folder&#039; and attaching PHP public key removes all but one of the attachments</title> 
  <pubDate>Fri, 10 Apr 2026 11:02:27 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4221</link> 
  <atom:link rel="self" type="application/rss+xml" title="Off-by-one error: Selecting NO for &#039;Save Attachments with message in sent-mail folder&#039; and attaching PHP public key removes all but one of the attachments" href="https://bugs.horde.org/ticket/4221/rss" /> 
  <description>Off-by-one error: Selecting NO for &#039;Save Attachments with message in sent-mail folder&#039; and attaching PHP public key removes all but one of the attachments</description> 
 
   
   
  <item> 
   <title>Steps to recreate:



Compose new message

Select &#039;Attach a </title> 
   <description>Steps to recreate:



Compose new message

Select &#039;Attach a copy of your PGP public key to your message?&#039;

Attach a file

Select &#039;NO&#039; for &#039;Save Attachments with message in sent-mail folder?&#039;

Send message



The message that is stored in the sent folder will contain the original attachment and the PGP attachment will be stripped.



</description> 
   <pubDate>Mon, 31 Jul 2006 17:04:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t22477</link> 
  </item> 
   
  <item> 
   <title>Occurs in HEAD also.</title> 
   <description>Occurs in HEAD also.</description> 
   <pubDate>Thu, 10 Aug 2006 00:09:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t22886</link> 
  </item> 
   
  <item> 
   <title>After further investigation - this is going to be extremely </title> 
   <description>After further investigation - this is going to be extremely difficult to fix without either breaking BC or having to rewrite MIME_Part in IMP.  Essentially the issue is that, when creating complex MIME_Parts ourselves (i.e. not from pre-existing mail data), the MIME ID&#039;s are not dynamically updated.  Therefore, it is impossible to access any MIME parts except for the outer-most container parts (i.e. parts 1, 2, 3).</description> 
   <pubDate>Sun, 20 Aug 2006 06:58:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t23210</link> 
  </item> 
   
  <item> 
   <title>&gt; After further investigation - this is going to be extremel</title> 
   <description>&gt; After further investigation - this is going to be extremely difficult 

&gt; to fix without either breaking BC or having to rewrite MIME_Part in 

&gt; IMP.  Essentially the issue is that, when creating complex MIME_Parts 

&gt; ourselves (i.e. not from pre-existing mail data), the MIME ID&#039;s are 

&gt; not dynamically updated.  Therefore, it is impossible to access any 

&gt; MIME parts except for the outer-most container parts (i.e. parts 1, 

&gt; 2, 3).



So we end up not stripping one attachment that we should? I&#039;m not sure I follow why the above means that, but if that&#039;s the case at least this isn&#039;t destructive. If you confirm, please stall this for 5.0.</description> 
   <pubDate>Fri, 26 Oct 2007 03:18:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t38081</link> 
  </item> 
   
  <item> 
   <title>&gt; So we end up not stripping one attachment that we should? </title> 
   <description>&gt; So we end up not stripping one attachment that we should? I&#039;m not 

&gt; sure I follow why the above means that, but if that&#039;s the case at 

&gt; least this isn&#039;t destructive. If you confirm, please stall this for 

&gt; 5.0.



What I mean is that if we create a multipart/mixed message ourself, and then populate with subparts, these parts have no MIME IDs - i.e. these IDs can not be dynamically assigned/determined by MIME_Part.  Unless you specifically set the MIME IDs at creation time - which we do when rebuilding from IMAP message data for example - it is impossible to access the individual MIME parts.



IIRC, this off-by-one issue deals with this limitation, and there is no solution except to make BC-breaking changes to MIME_Part.  So stalling for Horde 5.</description> 
   <pubDate>Thu, 01 Nov 2007 03:25:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t38294</link> 
  </item> 
   
  <item> 
   <title>Un-stalling</title> 
   <description>Un-stalling</description> 
   <pubDate>Sun, 09 Nov 2008 03:20:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t50533</link> 
  </item> 
   
  <item> 
   <title>Fixed in IMP 5.</title> 
   <description>Fixed in IMP 5.</description> 
   <pubDate>Mon, 08 Dec 2008 06:45:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t51137</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Fix for Tick</title> 
   <description>Changes have been made in Git for this ticket:

Fix for Ticket #4221.
Fix stripping attachments when saving to sent-mail folder when attaching
the PGP public key.

http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&amp;r1=77acfeb007d1047f940e02ed5b0d8d4800ed0e0f&amp;r2=6a745eaa96a8f63c528d1b9361d5d320e670f0cd
http://git.horde.org/diff.php/imp/lib/Compose.php?rt=horde-git&amp;r1=2bba73985835771c1d010717c198a250aadc2547&amp;r2=6a745eaa96a8f63c528d1b9361d5d320e670f0cd</description> 
   <pubDate>Tue, 12 Jan 2010 23:55:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4221#t57471</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
