<?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>Display existing alternative rather than removed attachment</title> 
  <pubDate>Thu, 09 Apr 2026 23:21:15 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4664</link> 
  <atom:link rel="self" type="application/rss+xml" title="Display existing alternative rather than removed attachment" href="https://bugs.horde.org/ticket/4664/rss" /> 
  <description>Display existing alternative rather than removed attachment</description> 
 
   
   
  <item> 
   <title>When an attachent is removed from the message then it is rep</title> 
   <description>When an attachent is removed from the message then it is replaced with a text/plain attachment comprising an informational message about the original attachment. This comes handy to remove unwanted alternative attachment formats.



Now, if the remaining alternative happens to come. in the message source, before the removed one, Imp will display that informational message, rather than the original message content.



To comply with the user&#039;s intent, Imp should recognize this situation and display the remaining, valid alternative (rather than the informational message that happens to follow it).</description> 
   <pubDate>Wed, 15 Nov 2006 15:18:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t26089</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t think this is really possible without essentially ig</title> 
   <description>I don&#039;t think this is really possible without essentially ignoring the RFC on multipart/alternative messages. Michael?</description> 
   <pubDate>Wed, 15 Nov 2006 16:55:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t26095</link> 
  </item> 
   
  <item> 
   <title>Quoting RFC 2046, Section 5.1.4. Alternative Subtype:

«Sys</title> 
   <description>Quoting RFC 2046, Section 5.1.4. Alternative Subtype:

«Systems should choose the &quot;best&quot; type based on the local environment and references, in some cases even through user interaction.»



So, what I am proposing, is that Imp should choose, in accordance with RFC 2046,  the remaining original alternative, as it is definitely &quot;better&quot; than the removed one. Or is there some other RFC dealing with multipart/alternative that contradicts this approach?



Of course, Imp can choose that alternative through user action; however, a sensible choice without user intervention would be superior, wouldn&#039;t it?</description> 
   <pubDate>Wed, 15 Nov 2006 18:17:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t26099</link> 
  </item> 
   
  <item> 
   <title>How could this situation be detected?



Imp 4.1.2 marks a r</title> 
   <description>How could this situation be detected?



Imp 4.1.2 marks a removed part  thusly:

&gt; ------=_NextPart_001_0001_319166C9.1979B12D

&gt; Content-Type: text/plain;

&gt; 	charset=UTF-8

&gt; Content-Disposition: inline

&gt; Content-Transfer-Encoding: 7bit

&gt; 

&gt; [Anhang entfernt: Ehemaliger Anhangstyp: text/html, Name: unbenannt]



This is tricky: The only safe criterion is the last line which depends on the user&#039;s option settings. Note that this message may well be forwarded to another user with different settings, or that the user may change hir settings, after removing that part.



Another mailer (example seen today, but cannot be attributed to a particular mailer) does it thusly:

&gt; ------=_NextPart_000_001B_01C0CA81.7B015D10

&gt; Content-ID: &lt;121401Mfdab4$3f3dL780$75387018@57W81fa70Re&gt;

&gt; MIME-Version: 1.0

&gt; Content-Type: text/plain; name=&quot;message.pif&quot;; charset=&quot;iso-8859-1&quot;

&gt; Content-Description: Removed Attachment

&gt; Content-Disposition: attachment; filename=&quot;Removed Attachment.txt&quot;

&gt; Content-Transfer-Encoding: quoted-printable

&gt; 

&gt; This attachment contained a virus and was stripped.

&gt; 	Filename: message.pif

&gt; 	Content-Type: audio/x-wav

&gt; 	Virus(es): W32/Netsky-Q



Here, the key feature is the Content-Description line, in accordance with RFC 2045, section 8: this can be set independently of the user&#039;s settings, hence it can easily be detected.



So, my suggestion is:

- when removing an alternate part, set the Content-Description field, as in the second example, above;

- when deciding which alternate part to display, parts marked in this way should not be regarded as eligible,

- if possible, parts marked in the way of the 1st example, above, should also be not eligible for display.</description> 
   <pubDate>Thu, 16 Nov 2006 14:49:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t26216</link> 
  </item> 
   
  <item> 
   <title>In the subject line and in my 1st poster, I was speaking of </title> 
   <description>In the subject line and in my 1st poster, I was speaking of &quot;attachments&quot;. I think, that term is misleading, I should rather have used the term &quot;alternative parts&quot;. I beg your pardon for any confusion this may have caused.



To prevent possible misunderstandings:

This feature request is addressing the choice amongst alternative parts of a Content-Type:multipart/alternative structure, from wich some of the alternative parts have been removed.



I was mislead by the terminology Imp uses in its replacemet line: &quot;Anhang entfernt&quot; means &quot;attachment removed&quot;.</description> 
   <pubDate>Thu, 16 Nov 2006 15:02:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t26217</link> 
  </item> 
   
  <item> 
   <title>I could see this being incorporated into the new MIME librar</title> 
   <description>I could see this being incorporated into the new MIME library.  But adding specific code for a single MIME type in our attachment stripping code is not a good idea.  So this is something for IMP 5.0, at the earliest.</description> 
   <pubDate>Thu, 23 Nov 2006 21:14:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t26542</link> 
  </item> 
   
  <item> 
   <title>Stalling until IMP 5.</title> 
   <description>Stalling until IMP 5.</description> 
   <pubDate>Mon, 05 Feb 2007 00:42:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t29154</link> 
  </item> 
   
  <item> 
   <title>Now that you&#039;re working on the new MIME lib, Michael, can yo</title> 
   <description>Now that you&#039;re working on the new MIME lib, Michael, can you either mark this as accepted or reject it permanently?</description> 
   <pubDate>Sun, 09 Nov 2008 02:02:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t50502</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/docs/CHANGES?r1=1.1197&amp;r2=1.1198&amp;ty=u
http://cvs.horde.org/diff.php/imp/lib/Message.php?r1=1.305&amp;r2=1.306&amp;ty=u</description> 
   <pubDate>Fri, 14 Nov 2008 20:49:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t50755</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/docs/CHANGES?r1=1.699.2.361&amp;r2=1.699.2.362&amp;ty=u
http://cvs.horde.org/diff.php/imp/lib/Message.php?r1=1.164.8.61&amp;r2=1.164.8.62&amp;ty=u</description> 
   <pubDate>Fri, 14 Nov 2008 20:51:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t50756</link> 
  </item> 
   
  <item> 
   <title>The answer is much easier/more elegant than I thought - simp</title> 
   <description>The answer is much easier/more elegant than I thought - simply mark the stripped part as &#039;attachment&#039;, not &#039;inline&#039;.  Makes more sense in the general scheme of things also. Fixed in IMP 4.3.1.</description> 
   <pubDate>Fri, 14 Nov 2008 20:52:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t50758</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Merge from H</title> 
   <description>Changes have been made in Git for this ticket:

Merge from HEAD (Request #4664).

http://git.horde.org/diff.php/imp/docs/CHANGES?rt=horde-git&amp;r1=494134b0cb53996bc9815e438ac7bf14bd3fea50&amp;r2=7de276204b5859d9ce8a62dfaee8a5cbe30f069c
http://git.horde.org/diff.php/imp/lib/Message.php?rt=horde-git&amp;r1=717fab3db3df3b8d078ed97d9f12c08f63d089f1&amp;r2=7de276204b5859d9ce8a62dfaee8a5cbe30f069c</description> 
   <pubDate>Tue, 12 Jan 2010 23:54:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4664#t57462</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
