Incomplete messages when copying then moving with a filter (When "Copy to Local folder, Move to IMAP folder" is executed on multiple mails, "uid MOVE(copy+store \Deleted) uid1:uidN IMAP" is issued just after "uid fetch uid1 body.peek[]" for first mail)
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
People
(Reporter: 123456isnotavailable, Unassigned)
References
Details
(Keywords: dataloss)
Attachments
(2 files)
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
Reporter | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
Reporter | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
Reporter | ||
Comment 8•11 years ago
|
||
Comment 9•11 years ago
|
||
Updated•11 years ago
|
Updated•11 years ago
|
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 15•2 years ago
|
||
I confirm that this issue is systematic since the availability of maildir under Thunderbird :
I am using Thunderbird with a 'Copy to local, then Move to imap' filter since at least 2014.
Before maildir was available, I never observed data loss when several messages arrive at once in my imap Inbox.
But as soon maildir has been available, I switched to maildir.
Since then, up to current version 91.8.1 (64-bit), each time several messages arrive at once in my imap Inbox, all copied messages but the first one are empty.
Thank you in advance for correcting this issue.
Comment 16•2 years ago
|
||
See Also: → 589092
Comment 17•2 years ago
|
||
Comment 18•2 years ago
|
||
Workaround :
- Once : For each mail account, for each filter :
- Uncheck the 'Getting New Mail' checkbox,
- Check the 'Manually Run' checkbox.
- From time to time, AFTER the Inbox of a mail account has finished downloading the mail contents, click on Menu 'Tools / Run Filters on Folder'.
Suggestion for code fixing :
Can the code trigger the 'Getting New Mail' filters of a mail account only AFTER its Inbox has finished downloading the mail contents ?
Thank you in advance for your work.
Updated•2 years ago
|
Comment 19•2 years ago
|
||
Problem is not unique to maildir. I tested with mbox and all filters were similarly failing.
Tests were done on Thunderbird Daily 107.0a1 (2022-09-28) (64-Bit) Linux Mint (Cinnamon) and a soft-fork of Thunderbird called Betterbird; Version 102.3.0-bb17 (64-bit) connecting via IMAP and by moving/copying 5 messages that fulfill filter conditions at the same time from local folder to Imap Inbox.
Summary of results:
Filter (A) fails with
1. Copy the matching message to Imap Sub-Folder
2. Move the matching message to Local Folder
--> All mails are moved to Local Folder and the body is fine, but only ONE (the first) mail was copied to imap Sub-Folder
Filter (B) fails with
1. Copy the matching message to Local Folder
2. Move the matching message to imap Sub-Folder
--> All mails are copied to Local Folder, but all mails lack body, except first mail. All mails are moved correctly to imap Sub-Folder.
Filter (C) fails with
1. Move the matching message to Local Folder
2. Copy the matching message to imap Sub-Folder
--> All mails are moved to Local Folder and the body is fine, but only ONE (the first) mail was copied to imap Sub-Folder
Comment 20•2 years ago
|
||
Missing body when moving from local to imap might potentially be fixed by Bug 1787963
Updated•2 years ago
|
Comment 21•2 years ago
|
||
I am currently on the softfork Betterbird 102.4.0
Solution?:
I found a fix using the "Move later" filter action provided by the Filtaquilla Addon
Following actions in the given order work without dataloss:
1. "Move later" the matching message to Imap Sub-Folder
2. Copy the matching message to Local Folder
To Do:
Test
- if this creates problems with additional other filter actions.
- what happens, if switching to offline mode, sending messages, running filters and then switching into online mode.
How to fix regular Thunderbird?
Maybe Thunderbirds code could be adapted to fall back to "move later" behaviour, if both the move
and copy
filter actions are set at the same time (such as described in comment 19)?
Comment 22•2 years ago
|
||
Since we are dealing with data loss, I would like to ask for a fix in Thunderbird core.
Additionally, once this is fixed, I think adding this case to unit tests to prevent future regressions would be nice.
Description
•