Closed Bug 383425 Opened 17 years ago Closed 14 years ago

Filter "copy to folder" copies a different message to the destination folder due to quarantine

Categories

(MailNews Core :: Filters, defect)

1.8 Branch
x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 387361

People

(Reporter: robi, Unassigned)

References

Details

(Keywords: dataloss)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: Thunderbird version 2.0.0.0 (20070326)

I have three filters of the same structure:

If From: field contains ... Then
  Fetch from mail server
  Tag as ...
  Copy to local folder.

The result is that the message appears copied to the local folder according to the list of the local folder, however after clicking on it, a totally unrelated message is brought up. 

The correct message fortunately remained in the Inbox folder, and it is readable there, but is not tagged.

The unrelated message does not satisfy ANY filter conditions, however in the Inbox folder it becomes tagged with the tag the incorrectly operating filter should have tagged it.

In effect the filter tagged and copied a different message.

After rebuilding the local folder index of the folder mentioned, now the list does not refer to the correct message either, instead the incorrect message is shown (so the index is now containing the same info as the ultimately appearing message).

The mail server is a POP3 server, connection is via SSL, the folder contains an enormous amount of messages (around 20,000). Still, as the Inbox folder contains the correct message, I don't expect this to have anything to do with the mail server.

I file this critical, because I find it quite likely that if instead of copy I selected move, then the bug would copy the incorrect message and delete the correct one, resulting in the loss of the message.

I have NOT experienced this bug in older (release 1.x) versions of Thunderbird.

Best regards,

Robert Varga

  

Reproducible: Sometimes

Steps to Reproduce:
1.
2.
3.
Does the filter log say the correct message was copied?

Are you saying it shows the correct subject (in the copied-to location), but the content is wrong?
Version: unspecified → 2.0
How can I check the filter log?

What I am saying is:

After checking the destination folder, the folder list contains a line with the subject, from, to, etc. fields of a message which does fit the filter conditions, so it is supposed to have been copied by the filter.

However, when I click on that line in the folder list, the content pane holds data of the incorrect message, so none of the data in the content pane are the same as the corresponding fields in the folder list. This applies to the header area of the content pane, as well.

Best regards,

Robert Varga
After rebuilding the folder index, the folder list will contain the data about the incorrect message (and be the same as the data in the content pane).
> How can I check the filter log?

There is a Filter log button in the filters dialog.
I did not have the filter log enabled at the time, so I cannot know. I switched it on, and when I see it occuring again (I expect it to occur pretty soon), I will post the info.

Best regards,

Robert Varga
I turned on filter logging now. 

I have not seen the same error now, however I saw two others (with the same rules):

1. A message which matched the filter (and according to the filter log it was copied) was listed by in the destination folder, however when I clicked on it, the detail pane did not populate at all (it was left in its previous state, as if the onClick handler encountered an exception, and that thread or at least the asynchronous operation silently died). If there was no previous message clicked on, then the content pane contained nothing, if there was a previous message clicked on, then its details remained in the content pane. If I brought up the message in a separate window, then it did not contain anything in the content area (below the button bar), not even the headers.

2. Messages (which are correct matches) were copied to the destination folder according to the filter log, but did not in fact turn up in the destination folder.

Best regards,

Robert
I would like to modify the previous comment.

In case 1, when there was a previous message clicked on before clicking on the message in question, the header are remained populated with the previously clicked message data, the body area became empty.

Best regards,

Robert Varga
I have either the same or a very similar problem since I installed 2.0.0.6.  I installed the latest nightly build this morning (version 3.0a1pre (2007081804)) and there is no change.  

A clue to what's happening may be that in all the mail filters I have set to COPY messages to another folder, the Subject line in the list shows the new email but the contents are a copy of the very first email in my inbox; HOWEVER, in the one case where I MOVE emails to another folder (which just happens to be emails from the Open Office users group), those mails are all okay.

Is there anything specific I should do to try to figure out what causes this?  If I can't copy emails from my inbox using filters it is going to be a real problem for me.
Are these messages coming from a pop3 server? Are you using the global inbox? Do you have message quarantining turned on? tools | options | privacy | anti-virus? 
(In reply to comment #9)
> Are these messages coming from a pop3 server? Are you using the global inbox?
> Do you have message quarantining turned on? tools | options | privacy |
> anti-virus? 
> 

They do come from a pop3 server (and I just looked and found that the messages are no longer being cleared from the server when they are downloaded to my Thunderbird).

Global inbox is being used (even though I only have one mail account now)

Message quarantining is turned on.

Thanks.
Do you have any other filters that might act on the incoming message? E.g., that might move the message after the filter that does the copy?
OK, I think turning off message quarantining will fix the problem you're seeing...
However my problem will surely not be fixed by that, as I did not have quarantining turned on nor did I have an antivirus configured for Thunderbird.
(In reply to comment #12)
> OK, I think turning off message quarantining will fix the problem you're
> seeing...
> 

This seemed to have fixed the problem.  Any idea why this only occurred in the new version and what was actually happening?  I never had anything like this before and the fix is not very intuitive.
(In reply to comment #0)
> Build Identifier: Thunderbird version 2.0.0.0 (20070326)
> If From: field contains ... Then
>(snip)
>   Copy to local folder.

To Robert Varga(the bug opener):   

Main part of your problem(problem in comment #0, funny phenomenon after copy by filter, not copied by filter) sounds to be already fixed Bug 384735 (verified1.8.1.5). 
Do you see your problem even after Thunderbird 2.0.0.6?

"moved to another folder" part is different problem.
(another filter can move the mail after filter of copy)
Check filter log and filter definition.
=> incomplete - no response from Robert.
However please comment if you still see problem in current release.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
Ok, as of version 2.0.0.16 (20080707) this problem still exists. 

Unselecting the anti-virus quarantine seems to solve it.

same symptoms: message filter > copy to function saves either a blank message (no headers) or a random older message instead of new message that is supposed to be copied.

at first list will show information from the new message but display blank message or random old message. if one deletes the assocaited .msf file however upon rebuild the list will now show the correct info for the incorrectly saved random old message. Viewing the actually created text file in editor shows that the incorrect message is saved in the file.



When I re-enabled the anti-virus quarantine again the copy to filter saved the incorrect or blank message.
So I recreated by creating new profile with new email account. 

Not using global inbox.

Selected Anti-virus quarantine.

Created a copy to filter.

copy that was created from test message was blank, no headers.

Hope this helps,
Thanks
Reopening, but I don't know quarantine or filters well enough to comment further
Status: RESOLVED → UNCONFIRMED
Component: Mail Window Front End → Filters
Keywords: qawanted
Product: Thunderbird → MailNews Core
Resolution: INCOMPLETE → ---
Version: 2.0 → 1.8 Branch
QA Contact: front-end → filters
bienvenu, why? is something fixed/changed? ref comment 12 and comment 14.  Should these be separate bugs from reporter's, who had quarantine already off?

relationship to bug 387361 and bug 454622 (less likely)?
Keywords: dataloss
bug 387361 looks fairly relevant, and since that's still open, it doesn't sound like this is fixed.
Depends on: 387361
It sounds like we should try to get the bug 387361 fix into v3.1
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago14 years ago
Keywords: qawanted
Resolution: --- → DUPLICATE
Summary: Filter "copy to folder" copies a different message to the destination folder → Filter "copy to folder" copies a different message to the destination folder due to quarantine
You need to log in before you can comment on or make changes to this bug.