Bug 211900 - kmail attachments not sync with directory contents
Summary: kmail attachments not sync with directory contents
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: SVN
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-26 08:01 UTC by Jose Da Silva
Modified: 2010-03-24 08:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
picture.png (while opening to attach) (34.99 KB, image/png)
2009-10-26 08:06 UTC, Jose Da Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Da Silva 2009-10-26 08:01:38 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Mandriva RPMs

I was asked to report this bug upstream into KDE. It is currently registered in mandriva's bugzilla as bug # 54855 ( http://qa.mandriva.com/show_bug.cgi?id=54855 )

---------------------
Description of problem:
Kmail has trouble Forwarding some attachments, so as a temporary solution, I have saved attachments into a temporary directory, and then open a new email and attach the attachments from the temporary directory.

What I noticed is that kmail does not update it's knowledge of what is in the directory.

Version-Release number of selected component (if applicable):
kmail in mandriva 2010_rc1 (KDE 4.3.2)

How reproducible:
Open up an email and save attachments to a temporary directory, then close email, then create a new email and open to attach the attachments - you may have 1 file shown in directory even though there are many files in directory. Once or twice I managed to get kmail to update it's knowledge by using konqueror (pointing to same directory) to show "hidden files" (this creates a .directory file) but this wasn't consistent, so something else is not working right.

Steps to Reproduce:
1. Open an email with multiple attachments (that fail to be Forwarded if you tried to Forward email).
2. Click on attachment, select "Save attachment"
3. When it asks to save, Create a new temporary directory, then save the attachment in the new temporary directory.
4. Save other attachments from same email in this new temporary directory. You may notice that Kmail only shows 1 attachment in this new temporary directory even if you have 2 or more (therefore there is a bug on the save too).
5. close email.

6. Create a new email.
7. Select attach (to attach a file)
8. Change to the temporary directory holding your previously saved attachments.
9. You may see only 1 attachment in this directory even if there are more present (there is a bug here with the save/open dialogue box).
Comment 1 Jose Da Silva 2009-10-26 08:06:32 UTC
Created attachment 37840 [details]
picture.png (while opening to attach)

Took a snapshot of a temporary directory currently holding several files. there are also 4 additional files in this temporary folder 001.jpg, 002.jpg, 003.jpg and 004.jpg.

Even though the files do not show in the open/save dialogue box (therefore you cannot use the mouse to attach the file), I was able to highlight them by typing a 0 in the Name box and therefore attaching them in that manner.

This is definitely a broken feature that needs fixing.
Comment 2 Jaime Torres 2009-10-26 11:57:14 UTC
As I've suffered yesterday the same problem with kate from trunk, it is a kdelibs problem. My problem came after creating a x.patch file, enter the directory, create a filter for *patch, and the newly patch file was not shown, but fortunately I could enter the first characters and the filename was completed.
Comment 3 Jaime Torres 2009-10-28 13:12:52 UTC
Until this bug is fixed, we'll have to use the 'refresh' green button in that dialog when this happens.
Comment 4 Christoph Feck 2009-12-11 06:27:27 UTC
Sounds like the bug that is caused by the inotify kernel changes.
Comment 5 Björn Ruberg 2010-03-06 22:22:33 UTC
So does this still happen with kde 4.3.5 or above?
Comment 6 Jose Da Silva 2010-03-07 04:29:40 UTC
I'm running Mandriva 2010.0 which currently has KDE 4.3.2 and Kmail 1.12.2.

I understand Mandriva 2010.1 is running Alpha tests of KDE 4.4, would the fixes be included in 4.4?

If yes, I could try 2010.1, but I've got a few priorities that need to be done this week (if you're willing to wait).

However, comment #2 and #3 are still accurate (for 2010.0 & KDE 4.3.2) in which you still got to use the refresh button to see all files.
Comment 7 Björn Ruberg 2010-03-07 08:22:40 UTC
KDE 4.3 didn't work together with the inotify feature of modern kernels (including 2.6.31). That was fixed in KDE 4.3.5. Probably that fixed this bug too
Comment 8 Jose Da Silva 2010-03-24 08:22:20 UTC
I tried this in Mandriva 2010.1 alpha 3 and this bug appears fixed in KDE 4.4.

If you want to close this bug, go ahead, I consider this fixed now.

Thanks.