6.0.0-beta1
7/7/25

[#4664] Display existing alternative rather than removed attachment
Summary Display existing alternative rather than removed attachment
Queue IMP
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester Otto.Stolz (at) uni-konstanz (dot) de
Created 11/15/2006 (6809 days ago)
Due
Updated 01/12/2010 (5655 days ago)
Assigned 11/09/2008 (6084 days ago)
Resolved 11/14/2008 (6079 days ago)
Milestone
Patch No

History
11/14/2008 08:52:46 PM Michael Slusarz Comment #11
State ⇒ Resolved
Milestone ⇒
Reply to this comment
The answer is much easier/more elegant than I thought - simply mark 
the stripped part as 'attachment', not 'inline'.  Makes more sense in 
the general scheme of things also. Fixed in IMP 4.3.1.
11/09/2008 02:02:43 AM Chuck Hagenbuch Comment #8
Assigned to Michael Slusarz
State ⇒ Assigned
Reply to this comment
Now that you're working on the new MIME lib, Michael, can you either 
mark this as accepted or reject it permanently?
02/05/2007 12:42:04 AM Chuck Hagenbuch Comment #7
State ⇒ Stalled
Reply to this comment
Stalling until IMP 5.
11/23/2006 09:14:47 PM Michael Slusarz Comment #6
State ⇒ Accepted
Reply to this comment
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.
11/16/2006 03:02:37 PM Otto (dot) Stolz (at) uni-konstanz (dot) de Comment #5 Reply to this comment
In the subject line and in my 1st poster, I was speaking of 
"attachments". I think, that term is misleading, I should rather have 
used the term "alternative parts". 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: 
"Anhang entfernt" means "attachment removed".
11/16/2006 02:49:38 PM Otto (dot) Stolz (at) uni-konstanz (dot) de Comment #4 Reply to this comment
How could this situation be detected?



Imp 4.1.2 marks a removed part  thusly:
------=_NextPart_001_0001_319166C9.1979B12D
Content-Type: text/plain;
        charset=UTF-8
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

[Anhang entfernt: Ehemaliger Anhangstyp: text/html, Name: unbenannt]
This is tricky: The only safe criterion is the last line which depends 
on the user'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:

[Show Quoted Text - 12 lines]
Here, the key feature is the Content-Description line, in accordance 
with RFC 2045, section 8: this can be set independently of the user'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.
11/15/2006 06:17:37 PM Otto (dot) Stolz (at) uni-konstanz (dot) de Comment #3 Reply to this comment
Quoting RFC 2046, Section 5.1.4. Alternative Subtype:

«Systems should choose the "best" 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 
"better" 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't it?
11/15/2006 04:56:15 PM Chuck Hagenbuch Version ⇒ HEAD
 
11/15/2006 04:55:56 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
I don't think this is really possible without essentially ignoring the 
RFC on multipart/alternative messages. Michael?
11/15/2006 03:18:29 PM Otto (dot) Stolz (at) uni-konstanz (dot) de Comment #1
Priority ⇒ 1. Low
State ⇒ New
Queue ⇒ IMP
Summary ⇒ Display existing alternative rather than removed attachment
Type ⇒ Enhancement
Reply to this comment
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's intent, Imp should recognize this situation 
and display the remaining, valid alternative (rather than the 
informational message that happens to follow it).

Saved Queries