[Meta] Copy/Move of mails with MaildirStore doesn't work well except when Copy/Move from "Non-IMAP Maildir with /cur use" to "Non-IMAP Maildir with /cur use", and Rename/move etc. of MaildirStore Mbox doesn't work as expected

NEW
Unassigned

Status

defect
7 years ago
7 months ago

People

(Reporter: World, Unassigned)

Tracking

(Depends on 6 bugs, Blocks 1 bug, {meta})

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [maildir])

Attachments

(1 attachment)

This is meta bug for tracking of problems around "Copy/Move with MaildirStore".

Copy/Move of mails with MaildirStore doesn't work well except when Copy/Move from "Non-IMAP Maildir with /cur use" to "Non-IMAP Maildir with /cur use", and if Move, mails are deleted despite Move failed.

(A) Non-IMAP Maildir with /cur use :
    MaildirStore, type=none (Local Folders)
    MaildirStore, type=pop3
(B) Other than "Non-IMAP Maildir with /cur use" :
- IMAP Maildir with    /cur use : MaildirStore, IMAP, Offline-Use=On
- IMAP Maildir without /cur use : MaildirStore, IMAP, Offline-Use=Off
- IMAP Berkley                  : BerkelyStore, IMAP, Offline-Use=On
                                  BerkelyStore, IMAP, Offline-Use=Off
- Non-IMAP Berkley              : BerkelyStore, type=pop3
                                  BerkelyStore, type=none
(Movemail)
- Movemail Maildir with    /cur use : MaildirStore, type=movemail
- Movemail Maildir without /cur use : MaildirStore, type=movemail
- Movemail Berkley                  : BerkleyStore, type=movemail


Cause of currently observed problems even by simple copy/move looks followings.

(1) Copy/Move of mails with MaildirStore looks to assume;
(1-a) storeToken in stringProperty of msgDBHdr is defined.
      - This is false, if IMAP/Offline-Use=Off
(1-b) The storeToken of msgDBHdr always points /cur/storeToken_value
      - This is false, if IMAP/Offline-Use=On
(1-c) The /cur/storeToken_value is always file(not directory),
      and is correctly file size>0.
      - This not always true,
        because Tb generates "empty /cur/nnnn DIRECTORY"
        and "Null /cur/nnnn file" by himself.
(2) Copy/Move of mails with MaildirStore doesn't look to check return code or error status etc. at almost all steps in (1).
So, if Move, despite Move fails, mails are deleted from source folder.
(3) Copy/Move of mails with MaildirStore doesn't consider ::Offline flag in msgDBHdr.flags for IMAP.
(4) MaildirStore never considers offline-store file of IMAP Offline-Use=On, so Mbox/cur/nnnn is never deleted if MaildirStore/IMAP/Offline-Use=On.
This meta bug is also for sorting out currently observed phenomena in various conditions.
No longer depends on: 402392
No longer depends on: 738651
Keywords: meta
Whiteboard: [maildir]
Depends on: 864212
Depends on: 1017939
Depends on: 1019331
Attachment #8500288 - Attachment mime type: text/html → text/html; charset=iso-8859-1
Depends on: 1107835
No longer depends on: 856385
Blocks: 1135309
No longer blocks: 1135309
Depends on: 1143551
Depends on: 1144359
Summary: [Meta] Copy/Move of mails with MaildirStore doesn't work well except when Copy/Move from "Non-IMAP Maildir with /cur use" to "Non-IMAP Maildir with /cur use", and if Move, mails are deleted despite Move failed → [Meta] Copy/Move of mails with MaildirStore doesn't work well except when Copy/Move from "Non-IMAP Maildir with /cur use" to "Non-IMAP Maildir with /cur use", and Rename/move etc. of MaildirStore Mbox doesn't work as expected
Depends on: 1124948, 1135309
Depends on: 1144478
Depends on: 1144999
Depends on: 1152651
Still affected by bug related to move to maildir local folder: in some cases, it becomes impossible to move a message to a maildir local folder, even manually. If a filter contains such a move, the filter fails silently.
Depends on: 1519364
No longer depends on: 1519364
You need to log in before you can comment on or make changes to this bug.