After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 651469 - Folders don't update after moving mails in maildir
Folders don't update after moving mails in maildir
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.0.x (obsolete)
Other Linux
: Normal critical
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 652121 658138 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-05-30 12:27 UTC by Christoph Wickert
Modified: 2011-09-05 06:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
eds patch (2.77 KB, patch)
2011-08-18 14:12 UTC, Milan Crha
committed Details | Review

Description Christoph Wickert 2011-05-30 12:27:19 UTC
I recently updated to Evolution 3.0.1 on Fedora 15. Now moving mails no longer works properly.

Actual results:
Mails moved to another folder are still shown in the old folder but as deleted (striked through). Clicking on one of the mails yields an error in the preview pane.

In order to update the folder I first need to enter another folder and then back again.

Expected result:
Mails should be moved directly.
Comment 1 Matthew Barnes 2011-05-30 12:43:47 UTC
Note that moving a mail is defined as appending a copy to the destination folder and marking the original for deletion.
Comment 2 André Klapper 2011-05-30 13:28:29 UTC
What account type(s) is this about? IMAP? Local?
And I don't see any behavior change compared to 2.32, hence proposing INVALID.
Comment 3 Christoph Wickert 2011-05-30 18:32:07 UTC
(In reply to comment #1)
> Note that moving a mail is defined as appending a copy to the destination
> folder and marking the original for deletion.

Defined by whom or what?

Regardless if this question, mails should not be marked for deletion but moved to trash. Then these mails end up both in trash and the destination folder. We have the same behavior with filtered mails and it is confusing people.

(In reply to comment #2)
> What account type(s) is this about? IMAP? Local?

Local mail only, IMAP is fine.
Comment 4 Matthew Barnes 2011-05-30 19:16:50 UTC
Your Trash folder is a view of messages marked for deletion.  The messages shown there still reside in the folders in which they were deleted.  There is no such thing as "moving" a message to Trash.
Comment 5 Christoph Wickert 2011-05-30 19:20:28 UTC
I am aware of this, however there should be no deleted (striked through) messages shown in other folders.

And mails moved/filtered to a folder should not show up in trash either, even if it is technically correct. I don't know any other email client that handles moved messages this way.
Comment 6 Christoph Wickert 2011-06-05 15:36:42 UTC
Problem still exists in evolution 3.0.2.
Comment 7 leeron 2011-06-17 09:19:02 UTC
I can confirm that the problem exists in evolution 3.0.2. The moved mail are still shown (stricken through) in the original folder.

The strange thing is that I have [view][show deleted messages] to off. When I delete a message it disappears at once but when I move a message it stays there until I delete some other message or toggle the view setting on and off.

I do agree with the reporter that for the user, moving mail should not be copy and delete.
Comment 8 Christoph Wickert 2011-08-03 16:34:52 UTC
Raising priority to critical because restarting evolution every time I moved an email is not acceptable.

@André: You set the 'probabledup' keyword. Can you tell me what other bug reports you have in mind?
Comment 9 André Klapper 2011-08-04 09:02:14 UTC
(In reply to comment #8)
> @André: You set the 'probabledup' keyword. Can you tell me what other bug
> reports you have in mind?

See https://bugzilla.gnome.org/describekeywords.cgi
Comment 10 Milan Crha 2011-08-18 12:36:40 UTC
OK, to summarize this bug report:

a) you both do not like evolution's concept "move = copy & delete". There is
   surely such bug report, thus it's marked with probabledup. There is nothing
   to be done with it here.
b) when you move messages between folders under On This Computer, then they
   are left in a view, even the View->Show deleted messages is not checked,
   thus they should be removed from the view.

I just tried to reproduce this (b) on 3.1.5 and it's still there. I drag a message from Inbox to a subfolder and it is only strike through and kept in a view. Moving to a destination folder doesn't show it. Moving back to source folder hides it. Moving back to destination folder shows it as expected. I can repeat the process when I drag & drop the message back to the source folder.
Comment 11 Milan Crha 2011-08-18 13:21:09 UTC
So this is after fix from bug #523399, when I remove the code then it works as expected. I'll check what can be done.
Comment 12 Milan Crha 2011-08-18 14:12:51 UTC
Created attachment 194132 [details] [review]
eds patch

for evolution-data-server;

This patch fixes the issue, messages are properly moved between folders on a maildir account. This has also a side-effect, about which was the above mentioned bug (apart of speed-up), moved messages doesn't appear in a Trash folder, neither are shown with View->Show deleted messages option selected. This applies only for maildir accounts and only when moving between folders on the same account. Moving between folders of different accounts fallbacks to the old behaviour.
Comment 13 Milan Crha 2011-08-18 14:17:11 UTC
Created commit a400739 in eds master (3.1.90+)
Created commit 81f9319 in eds gnome-3-0 (3.0.3+)
Comment 14 Christoph Wickert 2011-08-18 14:57:02 UTC
(In reply to comment #10)
> OK, to summarize this bug report:
> 
> a) you both do not like evolution's concept "move = copy & delete". There is
>    surely such bug report, thus it's marked with probabledup. There is nothing
>    to be done with it here.

I agree. I recall there was another bug about this but I cannot find it ATM.
Comment 15 Milan Crha 2011-08-22 15:06:36 UTC
*** Bug 652121 has been marked as a duplicate of this bug. ***
Comment 16 Milan Crha 2011-09-05 06:07:13 UTC
*** Bug 658138 has been marked as a duplicate of this bug. ***