<?xml version="1.0" encoding="ISO-8859-1"?> 
<?xml-stylesheet href="http://bugs.horde.org/themes/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 'Save Attachments with message in sent-mail folder' and attaching PHP public key removes all but one of the attachments</title> 
  <pubDate>Tue, 16 Mar 2010 17:47:15 -0400</pubDate> 
  <link>http://bugs.horde.org/ticket/4221</link> 
  <atom:link rel="self" type="application/rss+xml" title="Off-by-one error: Selecting NO for 'Save Attachments with message in sent-mail folder' and attaching PHP public key removes all but one of the attachments" href="http://bugs.horde.org/ticket/4221/rss" /> 
  <description>Off-by-one error: Selecting NO for 'Save Attachments with message in sent-mail folder' and attaching PHP public key removes all but one of the attachments</description> 
 
   
   
  <item> 
   <title>Steps to recreate:



Compose new message

Select 'Attach a </title> 
   <description>Steps to recreate:



Compose new message

Select 'Attach a copy of your PGP public key to your message?'

Attach a file

Select 'NO' for 'Save Attachments with message in sent-mail folder?'

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 13:04:41 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/4221#t22477</link> 
  </item> 
   
  <item> 
   <title>Occurs in HEAD also.</title> 
   <description>Occurs in HEAD also.</description> 
   <pubDate>Wed, 09 Aug 2006 20:09:51 -0400</pubDate> 
   <link>http://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'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 02:58:56 -0400</pubDate> 
   <link>http://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'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'm not sure I follow why the above means that, but if that's the case at least this isn't destructive. If you confirm, please stall this for 5.0.</description> 
   <pubDate>Thu, 25 Oct 2007 23:18:53 -0400</pubDate> 
   <link>http://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'm not 

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

&gt; least this isn'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>Wed, 31 Oct 2007 23:25:12 -0400</pubDate> 
   <link>http://bugs.horde.org/ticket/4221#t38294</link> 
  </item> 
   
  <item> 
   <title>Un-stalling</title> 
   <description>Un-stalling</description> 
   <pubDate>Sat, 08 Nov 2008 22:20:49 -0500</pubDate> 
   <link>http://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 01:45:42 -0500</pubDate> 
   <link>http://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 18:55:31 -0500</pubDate> 
   <link>http://bugs.horde.org/ticket/4221#t57471</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
