Bug 193557 - Randomly, saved attachments from Kmail are empty (0bytes)
Summary: Randomly, saved attachments from Kmail are empty (0bytes)
Status: RESOLVED DUPLICATE of bug 189724
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 21:19 UTC by Thomas Capricelli
Modified: 2010-02-22 13:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2009-05-21 21:19:19 UTC
Version:            (using KDE 4.2.3)
Installed from:    Gentoo Packages

Most of the times, but not always, if i save an attachement, the file is indeed created, but with a length of 0.

When i click on an attachement (typically a *.txt, image, or ooo file), the right application is opened, but with an empty file.

It's very probably the same bug.

Sometimes i can solve this by clicking on another message and then on the message i'm interested in. or using 'save all..' in the 'description' subwindow at bottom.

Most of the time i end up starting another mail client :-(
Comment 1 Dario Andres 2009-05-25 17:45:35 UTC
To where location are you trying to save the attachments ? a local dir, home dir, a remote place? 
I wonder if bug 194019 could be related to this.
Thanks
Comment 2 Thomas Capricelli 2009-05-25 17:47:46 UTC
Hi Dario.

I usually try to save to my home or a directory inside it. Nothing fancy. Permissions and such are not an issue here.
Comment 3 Blake Leverett 2009-06-16 20:08:55 UTC
For me, the problem shows up when I click the attachment and try to save or open.  But if I right-click and select 'save as', then the save works.

I believe the problem is related to a bad temp file name. For example, I have a file named "C:\schematics\EVK1105\EVK1105_revB.pdf", and okular gave a messages saying "Cannot open /tmp/C:\schematics\EVK1105\EVK1105_revB.pdf"

I think that modifying the filename into something valid may solve the problem.
Comment 4 Thomas Capricelli 2009-06-17 11:51:45 UTC
no, my problem is different, as said in the subject : the file is actually saved, but its length is 0.

The problem happens when i save the file, but also if, for exemple, I click on an image : there's an empty file in /tmp and 'xv' (my default client for images) gives an error about it. See : 

% ll /tmp/kde-orzel/DSCN1708.JPG_\[e15783].jpg
-r-------- 1 orzel users 0 2009-06-17 11:47 /tmp/kde-orzel/DSCN1708.JPG_[e15783].jpg
Comment 5 Thomas Fischer 2009-08-25 14:46:53 UTC
> Sometimes i can solve this by clicking on another message and then on the
> message i'm interested in. or using 'save all..' in the 'description'
> subwindow at bottom.
I can confirm the same behavior and changing between messages may improve the situation. If you are working on an IMAP folder, maybe the problem is related to a general synchronization problem as observed in bug 203868.

I don't remember seeing either this bug or bug 203868 in earlier versions of KMail/Kontact, so I might got introduced in KMails 1.11.x (KDE 4.2.x) cycle...

BTW, I'm using Gentoo Linux with KDE 4.2.4 and KMail 1.11.4 (Kontact 1.4.4).
Comment 6 Björn Ruberg 2010-02-22 13:00:52 UTC

*** This bug has been marked as a duplicate of bug 189724 ***