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 549311 - imported messages duplicated in trash folder, cannot be deleted
imported messages duplicated in trash folder, cannot be deleted
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.24.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[disk-summary]
Depends on:
Blocks: 543389
 
 
Reported: 2008-08-25 14:27 UTC by Kjel Oslund
Modified: 2013-09-13 00:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Kjel Oslund 2008-08-25 14:27:00 UTC
messages imported from a mbox file into an evolution folder (e.g. Inbox) are listed both in the target folder and in the Trash folder. "Empty Trash" does not delete these messages from the Trash folder. If you delete a message from the target folder (e.g. Inbox), it is deleted from the message listing, but not from the Trash Folder.

This is reproduceable always.
evolution version evolution-2.23.90-1mdv2009.0 (Mandrva Linux, Cooker)
Comment 1 Akhil Laddha 2008-08-26 03:24:13 UTC
see bug 548825
Comment 2 Srinivasa Ragavan 2008-08-26 07:08:01 UTC
I will check this out.
Comment 3 Kjel Oslund 2008-08-27 01:51:48 UTC
Looking more closely at this problem I've found what I thought were duplicated messages in Trash are actually old messages marked as deleted in the imported mbox. These messages have headers inserted by evolution in the form of:
X-Evolution: xxxxxxxx-0012
These are the messages that show up in the Trash folder and cannot be deleted. Once they are there, deleting a message from the Inbox adds the message to the Trash folder, but it cannot be deleted using "Empty Trash".

I created an import mbox with all X-Evolution headers deleted and imported it into a clean evolution setup. All the messages show up in the Inbox and none in the Trash file. However, while I could sometimes successfully delete messages from the Inbox and then empty the Trash folder, deleting some messages still triggered the can't-empty Trash bug. I'll see if I can narrow down the conditions.

I've found a related problem: dragging a message from one folder to another triggers a true duplicated message in Trash folder bug. but these duplicated messages can be cleared by emptying Trash.
Comment 4 Paul Bolle 2008-09-08 22:47:16 UTC
Just to aid my memory, regarding  "[...]-0012":
    camel/camel-folder-summary.h:
    CAMEL_MESSAGE_DELETED = 1<<1
    CAMEL_MESSAGE_SEEN = 1<<4
Comment 5 Paul Bolle 2008-09-08 22:48:31 UTC
(In reply to comment #3)
> I've found a related problem: dragging a message from one folder to another
> triggers a true duplicated message in Trash folder bug. but these duplicated
> messages can be cleared by emptying Trash.

Does this regard the same problematic set of messages or does this regard other messages?

Comment 6 Paul Bolle 2008-09-08 22:52:55 UTC
(In reply to comment #3)
> Looking more closely at this problem I've found what I thought were duplicated
> messages in Trash are actually old messages marked as deleted in the imported
> mbox. These messages have headers inserted by evolution in the form of:
> X-Evolution: xxxxxxxx-0012
> These are the messages that show up in the Trash folder and cannot be deleted.
> Once they are there, deleting a message from the Inbox adds the message to the
> Trash folder, but it cannot be deleted using "Empty Trash".

Would you be able to create some sort of minimal test case: one of the problematic messages with (almost) all headers removed and neutral text instead of the original info (e.g.: "Subject: Subject")?
Comment 7 Kjel Oslund 2008-09-09 02:56:17 UTC
(In reply to comment #6)
> (In reply to comment #3)
> > Looking more closely at this problem I've found what I thought were duplicated
> > messages in Trash are actually old messages marked as deleted in the imported
> > mbox. These messages have headers inserted by evolution in the form of:
> > X-Evolution: xxxxxxxx-0012
> > These are the messages that show up in the Trash folder and cannot be deleted.
> > Once they are there, deleting a message from the Inbox adds the message to the
> > Trash folder, but it cannot be deleted using "Empty Trash".
> 
> Would you be able to create some sort of minimal test case: one of the
> problematic messages with (almost) all headers removed and neutral text instead
> of the original info (e.g.: "Subject: Subject")?
> 

I can send you a relatively small file of Mandriva Cooker bug mail list messages (about 300Kb in size). This is mostly public information, but I would prefer to send it to you directly rather than upload it as an attachment to keep the email addresses it contains out of the hands of the spammers.

Mandriva cooker has moved on to 2.23.92 level packages that has improved the situation somewhat: I'm no longer having problems with deleting items from trash. The main problem is that when I import an mbox file created by a previous version of evolution, that contains deleted messages (X-Evolution: xxxx-1200 headers), the deleted messages are loaded into the Trash folder. The target folder shows the wrong message count (equal to the total of all messages loaded in that folder and in Trash). The Trash folder properties shows the right count for the number of headers shown. If I then delete trash, exit and restart evolution the target folder where I imported the messages will now show the correct count.

I have a log of the stderr messages generated by evolution when run from the command line for the sample file that I can send as well.
Comment 8 Kjel Oslund 2008-09-09 03:01:18 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > I've found a related problem: dragging a message from one folder to another
> > triggers a true duplicated message in Trash folder bug. but these duplicated
> > messages can be cleared by emptying Trash.
> 
> Does this regard the same problematic set of messages or does this regard other
> messages?
> 

This problem is separate from the one originally reported with importing files. It happens whenever I drag a message from one folder to another, or if I manually apply a filter that moves messages from one folder to another (but not when applied automatically to incoming mail). The moved message always shows both in the destination folder and in Trash. If I then delete the message from the destination folder, without having emptied Trash, there will be two message headers listed for the same message.
Comment 9 Srinivasa Ragavan 2008-09-09 04:49:50 UTC
> 
> This problem is separate from the one originally reported with importing files.
> It happens whenever I drag a message from one folder to another, or if I
> manually apply a filter that moves messages from one folder to another (but not
> when applied automatically to incoming mail). The moved message always shows
> both in the destination folder and in Trash. If I then delete the message from
> the destination folder, without having emptied Trash, there will be two message
> headers listed for the same message.
> 

This is the right behavior. When you move/dnd a mail, infact you delete it from the local folder. Old Evo too behaves the same way.

Empty trash should be working in 2.23.92. vfolder/junk/trash counts are broken and Im fixing them

Any other issues apart from counts?

Comment 10 Srinivasa Ragavan 2008-09-11 07:03:23 UTC
Couts are fixed in trunk. Re open if counts issue prevails