Filter copy then move fails for Gmail -> local using "move" to delete

NEW
Unassigned

Status

MailNews Core
Filters
8 years ago
6 years ago

People

(Reporter: rkent, Unassigned)

Tracking

Trunk
x86
Windows 7

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [gs], URL)

(Reporter)

Description

8 years ago
From a GS comment in http://getsatisfaction.com/mozilla_messaging/topics/broken_filter_copy_action :

I am using Thunderbird 3.0.4 English version on an English WinXP 64-bit OS with NTFS file systems, SP3 and the latest updates installed. My user is a simple user without any administrative rights, nevertheless has the necessary privileges for reading and writing the temp folder and my user directories where my mailbox files reside.

I am using the latest and regularly updated Avira antivir software. I tried to turn its protection off while downloading and sorting messages but the problem lingered.

I am using a Gmail account with IMAP access that makes things and my filter rules a bit more complicated. With Gmail you cannot certainly move away a letter to a local folder since it will not be deleted from the server, only from the IMAP inbox folder. If you want to delete a letter entirely, you have to MOVE it to the Trash and delete it from there. Therefore my rules apply two actions: _copy_ the letter to a Local folder, and afterward _move_ it from the IMAP inbox to the IMAP trash folder.

Since I use IMAP access, message filters are run on the messages signed as not read as I experienced it. When I say "every run", I mean every time filter rules are tried to be applied; mainly when I start Thunderbird, it downloads my new messages and tries to filter them. In every such case the letters are run through the filters and some of them are copied to my several local folders (and then they are moved to the IMAP trash folder). During this process the first letter that is copied to a local folder is copied well, but the further letters that are to be copied to this same folder are empty.

I mean if you have local folders A and B and you receive 3 letters out of which the first should be put to folder A, the second to B and the last to A again, the first two letters will arrive to folder A and B without problem, but the last letter will only appear in the list (index) of folder A with absolutely no heading nor body. When you click on it in the folder's list, empty content is shown, and if you want to see the letter's source you'll still be presented with absolutely empty content.
Problem even after fix of Bug 497622?
AFAIR, remaining issue were Bug 307540, Bug 497622, Bug 545082, and Bug 497622 was fixed. 
FYI. Bug 376235, Bug 387361, Bug 448337, Bug 497622 are alreay fixed.    

I checked Bug 448337 with POP3 only. Do you specify COPY action and MOVE action in single filter rule? If yes, does COPY action and MOVE action in different filter rules work?

As "MOVE mail" is similar to "COPY mail + DELETE mail", it may be affected by Bug 307540.

> During this process the first letter that is copied to a local folder is copied well,
> but the further letters that are to be copied to this same folder are empty.

I could see same phenomenon in duplication test of Bug 387361, which is for POP3 account. As first mail is copied normally, multiple mails arrived at same time was required t duplicate it.

> If you want to delete a letter entirely, you have to MOVE it to the Trash and delete it from there.

Does Trash mean IMAP folder of [Gmail]/Trash via Gmail IMAP?

Delete it from where? MOVE from Inbox to [Gmail]/Trash then DELETE from Inbox?
If so, there is no need to DELETE from Inbox, unless you enable advanced feature of Gmail Lab. And, there is no need of MOVE from view point of Gmail IMAP, because COPY to [Gmail]/Trash also automatically removes any Gmail Label including [Gmail]All Mail ("hide" is probably accurate, because move back from [Gmail]/Trash restores all Gmail Label.)
Difference between COPY and MOVE is in Thunderbird side.
  Copy : asynchronous operation.
         fetch operation only.
  Move : synchronous operation.
         I think move is executed after all COPY action on other mails
         arrived at same time.
         uid xxx store fla \Deleted is issued to move source folder(Inbox)

Does "delete it entirely" mean "delete from [Gmail]/Trash"?
If so, mails in [Gmail]/Trash is permanently erased afer 30 days by Gmail automatically.
Sorry currently open relevant bugs were: Bug 307540, Bug 387361, Bug 545082.
(Reporter)

Comment 3

8 years ago
Sorry WADA, I copied this directly from GS and I am not really the OP. Maybe this is not the best practice because the OP is not available to answer questions, but the details of this report are useful, so I wanted a record of them as we try to track down some of these copy failure reports.

Comment 4

6 years ago
pinged reporter
Whiteboard: [gs]
You need to log in before you can comment on or make changes to this bug.