Bug 143842 - Save All Attachements fails to detect multipart/mixed inside multipart/mixed
Summary: Save All Attachements fails to detect multipart/mixed inside multipart/mixed
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 120642 162032 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-04 19:25 UTC by Damir Perisa
Modified: 2015-04-12 10:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test email generated by kmail (16.86 KB, text/plain)
2007-04-04 22:29 UTC, Damir Perisa
Details
test email with the "found no attachements to save" symptoms (141.90 KB, text/plain)
2007-04-04 22:50 UTC, Damir Perisa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Damir Perisa 2007-04-04 19:25:16 UTC
Version:           unknown (using KDE 3.5.6, Arch Linux)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.20-ARCH

The function "Save All Attachements" fails to scan Encapsulated messages (multipart/mixed containing multipart/mixed with attachements) for attachements

reproduce:

have an email with this structure:

*This email
-body part (Plain Text)
-body part (Email Message)
\--An Encapsulated message
  -internal part (Plain Text)
  -some attachement (PDF document)
  -some other attachement (XLS document)
-body part (Plain Text)

try in message structure viewer: "Save All Attachements" -> "Found no attachments to save."

if you open the Encapsulated message separately and in the structure viewer try to save all attachements, it works fine. 

while this is actually the correct behaviour (the top message did not have any attachements besides the encapsulated email that has), it is not the human-expected behaviour. that's why i would suggest to offer an option to save really "all" attahcements or offer (only for emails that contain encapsulated messages) the option to save all attachements inside the encapsulated message clicked on right.
Comment 1 Tom Albers 2007-04-04 21:25:58 UTC
Any chance you can arrange a small test mail and attach it to the bugreport?
Comment 2 Damir Perisa 2007-04-04 22:25:19 UTC
the messages that have this original problem are all composed in 
X-Mailer: Novell GroupWise Internet Agent 6.5.3 
unfortunately, all these messages i have are confidental. i also cannot ask the sender to do some test-emails in the near future. i'll try to remove confidental information out of such an email and try to reproduce and if it behaves same, i will post it here.

if i try to forward a message to myself (as attachement, containing attachements) in kmail, i get a slightly different structure of teh email and if i try to save all attachements, it tries to save the encapsulated email as "forwarded message" as one file.

i expected it to offer actually to save the attachements as single files... but also here it helps opening the encapsulated message in separate window and then saving attachements works as expected.
Comment 3 Damir Perisa 2007-04-04 22:29:56 UTC
Created attachment 20183 [details]
test email generated by kmail 

trying to save all attachements from the encapsulated email results in saving a
"forwarded message" single file (whole encapsulated email)
Comment 4 Damir Perisa 2007-04-04 22:35:59 UTC
just found another email with the same structure and behaviour as first described. email agent is:

X-Mailer: Apple Mail (2.734)
Comment 5 Damir Perisa 2007-04-04 22:50:20 UTC
Created attachment 20184 [details]
test email with the "found no attachements to save" symptoms

this is a modified (removed confidental content) email with the symtoms
described first in this bug
Comment 6 Thomas McGuire 2007-04-07 17:56:53 UTC
*** Bug 120642 has been marked as a duplicate of this bug. ***
Comment 7 Loïc Gomez 2007-12-14 00:38:35 UTC
Hi,

I don't know if it's related, but it seems kmail can't detect untitled parts. I've got a mail - received from Lotus Notes... - which structure is :

main                     multipart/mixed
|__ body part            multipart/related
   |__ internal part     multipart/alternative
     |__ internal part   text/simple
     \__ internal part   text/html
   |__ internal part     image/gif
   |__ internal part     image/gif
   |__ internal part     image/gif
   |__ internal part     image/gif
   |__ internal part     image/gif
   |__ internal part     image/gif
   |__ internal part     image/gif
   \__ internal part     image/gif
\__ C.htm                text/html

When I choose "Save all attachments" it only detects C.htm.


I suppose it may be related to this issue here since I've had similar messages without C.htm part saying the said "found no attachments to save" statement.
Comment 8 Thomas McGuire 2008-05-16 19:07:00 UTC
*** Bug 162032 has been marked as a duplicate of this bug. ***
Comment 9 Björn Ruberg 2010-01-06 00:35:04 UTC
Confirmed in KDE 4.3 with provided test mail
Comment 10 Laurent Montel 2015-04-12 10:11:52 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.