6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/29/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4664] Display existing alternative rather than removed attachment
*
Your Email Address
*
Spam protection
Enter the letters below:
. \ /.__.\ /.__ | >< | | >< [__) |___/ \|__|/ \[__)
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: > >> ------=_NextPart_000_001B_01C0CA81.7B015D10 > >> Content-ID: <121401Mfdab4$3f3dL780$75387018@57W81fa70Re> > >> MIME-Version: 1.0 > >> Content-Type: text/plain; name="message.pif"; charset="iso-8859-1" > >> Content-Description: Removed Attachment > >> Content-Disposition: attachment; filename="Removed Attachment.txt" > >> Content-Transfer-Encoding: quoted-printable > >> > >> This attachment contained a virus and was stripped. > >> Filename: message.pif > >> Content-Type: audio/x-wav > >> 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'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.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers