Bug 64388 - save body part attachment problem
Summary: save body part attachment problem
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-16 22:56 UTC by Jo
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
message sample wich I get problem to save the attachment (8.48 KB, application/zip)
2003-09-17 20:49 UTC, Jo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jo 2003-09-16 22:56:20 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc-3.3.1 
OS:          Linux

Hi,

Message received with attachments (any kind of), the attachments can't be saved to hd isolated from the whole message, using mouse right botton options over body part descripton window.

I can send a msg sample if necessary.
Comment 1 Carsten Burghardt 2003-09-17 19:45:42 UTC
Subject: Re:  New: save body part attachment problem

On Tuesday 16 September 2003 22:56, JoXo Luiz B Silva wrote:
> Message received with attachments (any kind of), the attachments can't be
> saved to hd isolated from the whole message, using mouse right botton
> options over body part descripton window.
>
> I can send a msg sample if necessary

What do you get when you right click on the attachment? Do you get the menu? 
What do you select then? Can you choose the directory? Do you see the 
filename?
In less words: I need a more detailed description.
And yes, it would be good if you could zip the msg and attach it to the 
report.


Carsten

Comment 2 Jo 2003-09-17 20:49:35 UTC
Created attachment 2489 [details]
message sample wich I get problem to save the attachment
Comment 3 Jo 2003-09-17 21:13:38 UTC
I get the options: 
Save As...
Save as Encoded...
Save All Attatchments...

And I select "Save As...". 
I've try the other options too, but nothing is saved on HD anyway.

I can choose de directory, but the file name doesn't appear. The "Location:" 
field came empty. So fill it with the name I wish and click on the "Save" 
botton, but nothing is really done. No file is saved.

I attached a msg sample to the report. If you need more detail feel free to 
ask me.
Comment 4 Carsten Burghardt 2003-09-17 21:31:53 UTC
Subject: Re:  save body part attachment problem

On Wednesday 17 September 2003 21:13, JoXo Luiz B Silva wrote:
> I can choose de directory, but the file name doesn't appear. The
> "Location:" field came empty. So fill it with the name I wish and click on
> the "Save" botton, but nothing is really done. No file is saved.
>
> I attached a msg sample to the report. If you need more detail feel free to
> ask me.

The attached msg doesn't contain an attachment. It's just a multipart email 
with a text and a html part. The mimetree viewer also says this: Plain Text 
Document and HTML Document. So what do you want to save?

Regards,

Carsten

Comment 5 Jo 2003-09-17 21:52:34 UTC
> The attached msg doesn't contain an attachment. It's just a multipart email
> with a text and a html part. The mimetree viewer also says this: Plain Text
> Document and HTML Document.

Opsss..., you are right. Indeed it doesn't have attachment. My fault to explain.

> So what do you want to save?

The html document, from the mimetree viewer.

Comment 6 Stephan Kulow 2003-09-20 21:10:53 UTC
indeed, it opens a file dialog, but it doesn't save 
Comment 7 Till Adam 2003-10-03 17:07:51 UTC
CVS commit by tilladam:  
 
Don't just silently bail out when the user tries to save a part of the mime 
tree that is not an attachment, such as an html part. Ask whether that was 
a mistake or not instead. 
 
Carsten, ok with you? 
 
CCMAIL: 64388-done@bugs.kde.org 
 
 
  M +11 -2     kmcommands.cpp   1.69 
 
 
--- kdepim/kmail/kmcommands.cpp  #1.68:1.69 
@@ -1690,7 +1690,16 @@ void KMSaveAttachmentsCommand::slotSaveA 
     // we can't do the check earlier as we first need to load the mimeheader 
     // for imap attachments to do this check 
+     
+    /* Ask the user how to proceed, she could be wanting to save an html part, 
+     * or somesuch. -till */ 
     if ( s.isEmpty() ) { 
+      if ( KMessageBox::warningYesNo( mParent, 
+            i18n( "One of the parts of the message that you want to save does " 
+                  "not appear to be an attachment. Are you sure you want " 
+                  "to save it anyway? (If it is an html part, for example.)" )  
+            ) == KMessageBox::No ) { 
       ++itr; 
       continue; 
+      } 
     } 
  
 
Comment 8 Ingo Klöcker 2003-10-03 20:22:03 UTC
Unfortunately Till's patch wasn't the correct fix. 
Comment 9 Mario Scalas 2003-11-09 15:39:27 UTC
This seems my same problem here with kde 3.2 beta1 and kmail 1.5.93 (compiled from gentoo ebuilds): I'm unable to save attachments. Sometimes the dialog appears requesting the filename, some others not: when it appears it requests a filename, I put it but it doesn't save anything: by launching kmail from a konsole I get this output:

<snip>
mario@guderian mario $ QDict: Cannot insert null item
QDict: Cannot insert null item
QDict: Cannot insert null item
kmail: WARNING: Unknown codec "7bit" requested!
QDict: Cannot insert null item
QDict: Cannot insert null item
kmail: WARNING: KMMessagePart::bodyDecoded(): body is binary but used as text!
kmail: WARNING: KMMessagePart::bodyDecoded(): body is binary but used as text!
QDict: Cannot insert null item
kmail: WARNING: KMReaderWin::openAttachment(): Got "/tmp/kde-mario/kmailSEBNaa.10/IMM32.DLL", expected ""

mario@guderian mario $ QDict: Cannot insert null item

mario@guderian mario $ kmail: WARNING: KMReaderWin::openAttachment(): Got "/tmp/kde-mario/kmailbbcvgb.8/COMCTL32.DLL", expected "/tmp/kde-mario/kmailSEBNaa.10/IMM32.DLL"
QDict: Cannot insert null item
kmail: WARNING: KMReaderWin::openAttachment(): Got "/tmp/kde-mario/kmailGcwAYb.9/COMMCTRL.DLL", expected "/tmp/kde-mario/kmailbbcvgb.8/COMCTL32.DLL"
QDict: Cannot insert null item
kmail: WARNING: KMReaderWin::openAttachment(): Got "/tmp/kde-mario/kmailf42jqc.11/WININET.DLL", expected "/tmp/kde-mario/kmailGcwAYb.9/COMMCTRL.DLL"
QDict: Cannot insert null item
kmail: WARNING: KMMessagePart::bodyDecoded(): body is binary but used as text!
QDict: Cannot insert null item
kmail: WARNING: KMMessagePart::bodyDecoded(): body is binary but used as text!
kmail: WARNING: KMMessagePart::bodyDecoded(): body is binary but used as text!
QDict: Cannot insert null item
kmail: WARNING: KMMessagePart::bodyDecoded(): body is binary but used as text!
QDict: Cannot insert null item
QDict: Cannot insert null item
kmail: WARNING: Unknown codec "7bit" requested!
appending message to ~/dead.letter.tmp
mcop warning: user defined signal handler found for SIG_PIPE, overriding
mcop warning: user defined signal handler found for SIG_PIPE, overriding
gpgmeplug isEmailInCertificate looking address marioscalas@agilemovement.it
in certificate with fingerprint F7E0C2FBC29D4FDE323FDC04F3CD24842E8BBD29
gpgmeplug isEmailInCertificate found email: marioscalas@agilemovement.it
QDict: Cannot insert null item
QDict: Cannot insert null item
kmail: WARNING: Unknown codec "7bit" requested!
gpgmeplug checkMessageSignature status flags: 3
gpgmeplug checkMessageSignature found email: marioscalas@agilemovement.it
QDict: Cannot insert null item
kmail: WARNING: Unknown codec "7bit" requested!
QDict: Cannot insert null item
kmail: WARNING: KMReaderWin::openAttachment(): Got "/tmp/kde-mario/kmaillAW6Wb.4/msvcrt.zip", expected "/tmp/kde-mario/kmailf42jqc.11/WININET.DLL"
<snip>

(Yeah, I was trying to save some dlls I requested to a friend of mine to make this damn wine thing to work ;-)
Note the KMReaderWin::openAttachment() warnings: I could grab the files from the specified path (that is, /tmp/kde-mario/kmailf42jqc.11/WININET.DLL did exist and I copied it).

My friend used outlook but I experimented by sending and email with attachments to myself and got the same odd behaviour which is pretty annoying :-((
Comment 10 Ingo Klöcker 2003-11-09 21:09:41 UTC
Subject: Re:  save body part attachment problem

The problem Mario experienced has been fixed. Right-clicking and 
selecting Save As... should also work with KMail 1.5.93. So use this 
for now, Mario.

I didn't yet have a look at the original bug.
Comment 11 Mario Scalas 2003-11-09 22:11:11 UTC
Hi Ingo, I can confirm that I can right click on icon attachments and save but the email sent by my friend still has the same problem: 
(1) I click on the attach icon and ask to save
(2) the dialog appears requesting a filename (the edit box for the filename is empty)
(3) i type the filename and press 'save' but nothing happens: the dialog disappears but no file is written :-(

I would like to attach the mail source but KMail save it as a 104 MB ** one-hundred-four megabytes** big file 8-/ (which probably means that this mail triggers something really bad): you can take a look at the kmail's screenshot I took: http://www.gicomsrl.it/~mario/mail.odd.png.

Tell me if you need me to test something different 
Comment 12 Mario Scalas 2003-11-09 22:18:35 UTC
I've been able to grab the mail source through "view source" -> copy to clipboard -> paste to KEdit -> "save as" steps ): you can download it at http://www.gicomsrl.it/~mario/mail.odd.bz2 (1.6Mb file, which is a bit different from 104 Mb ;-) but I cannot guarentee that it will remain there for a long time since the server space is quite limited :-(
Comment 13 Ingo Klöcker 2003-11-09 23:49:27 UTC
@Joao: The original bug has been fixed.

@Mario: The problem with saving attachments which are larger than 64 KB has been fixed some time ago. And the other problem you are experiencing now has also been fixed. Thanks for the example message. You can remove it from the server.