Closed
Bug 1353221
Opened 8 years ago
Closed 7 years ago
A message is marked as \deleted in INBOX is immediately and automatically expunged because server (Exchange/outlook.com or gmail) don't strictly follow imap standards, if user enabled "mark as deleted" model
Categories
(MailNews Core :: Networking: IMAP, defect)
MailNews Core
Networking: IMAP
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: gds, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20161213225041
Steps to reproduce:
Use outlook.com and/or gmail imap servers
Actual results:
They don't quite act like conventional imap servers.
Expected results:
This "bug" describes what actually happens for reference.
This describes what gmail imap does but I will add a few more observations.
https://bugzilla.mozilla.org/show_bug.cgi?id=450376
Reporter | ||
Comment 1•8 years ago
|
||
In testing Bug 1352859 I observed some seeming non-standard behavior with exchange imap server used by outlook.com and gmail imap. But that was not really the subject of that bug, so rather than clutter Bug 1352859 with this info, I am starting this report. Bug 450376 from several years ago already describes some gmail issues but I will add a few more from my point of view.
I setup a new test account at outlook.com. What I observe is that when a message is marked as \deleted in INBOX it is immediately and automatically expunged by the server. This can be seen in this manual imap transaction using openssl:
$ openssl s_client -connect imap-mail.outlook.com:993 -crlf
* OK Outlook.com IMAP4rev1 server version 17.4.0.0 ready (BAY451-IMAP77)
a login *****@outlook.com *************
a OK AUTHENTICATE completed.
a select inbox
* 3 EXISTS
* 0 RECENT
* FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
* OK [PERMANENTFLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)] Permanent flags
* OK [UIDVALIDITY 14] UIDVALIDITY value
* OK [UIDNEXT 58] The next unique identifier value
a OK [READ-WRITE] SELECT completed.
a uid fetch 1:* (FLAGS)
* 1 FETCH (FLAGS (\Seen) UID 44)
* 2 FETCH (FLAGS (\Seen) UID 45)
* 3 FETCH (FLAGS (\Seen) UID 48)
a OK FETCH completed.
a uid store 44 +flags (\deleted) <------ "delete" the email at UID 44 (sequence 1)
a OK STORE completed.
a noop
* 1 EXPUNGE <------ expunge reported, non-standard behavior!
* 2 EXISTS
a OK NOOP completed.
a uid fetch 1:* (FLAGS)
* 1 FETCH (FLAGS (\Seen) UID 45)
* 2 FETCH (FLAGS (\Seen) UID 48) <------- now only 2 mails listed in INBOX
a OK FETCH completed.
This transaction marks as deleted the message at UID 44. The noop indicates it has also been expunged and the exists count is now 2; and the final fetch verifies there are now only 2 emails in the INBOX instead of the original 3. This is essentially what TB does when a message is "deleted" in TB with the "just mark as deleted" imap model.
When a delete operation on outlook.com INBOX occurs in TB, again with the "just mark as deleted" mode set, the email becomes crossed out with a red X in front as expected. However, after a few seconds the X'd out marking disappears and the message appears to still be in the inbox. If another folder is selected and then inbox is re-selected or "get messages" is clicked, the "deleted" message goes away and it has not been moved to another folder of the outlook.com account; it was permanently deleted (expunged).
Note: Although outlook.com does not have the MOVE capability, the newly added UidExpunge() from bug 1231592 is not occurring in this scenario since a move is not happening.
In gmail with the "just mark as deleted" model enabled, deleting emails in folders other than [Gmail]/All Mail also causes the server to expunge the marked emails automatically like outlook.com. However, the emails are still present in "All mail", which is OK. If email in "All mail" is deleted it is just marked as deleted and not automatically expunged. Even an expunge (compact) on "All mail" folder does not delete the emails marked as deleted (they remain visible and X'd out). To actually delete email completely from the gmail account you must select and drag (move) the emails from any source folder to [Gmail]/Trash. Then in Trash, delete the emails (X'd out) and compact Trash. This seems to truly delete (expunge) emails from the gmail account in all folders, including [Gmail]/All Mail.
Note: When emails are dragged to Trash, they must NOT be already marked as deleted (X'd out). The deletion and compaction must occur in [Gmail]/Trash.
In conclusion, this is not really a "bug". However, it might seen as useful information. If anything, it show why imap servers that don't strictly follow standards may cause TB to behave in unexpected ways.
Updated•8 years ago
|
Component: Untriaged → Networking: IMAP
Product: Thunderbird → MailNews Core
Updated•8 years ago
|
Summary: Exchange (outlook.com) and gmail observed imap issues with thunderbird → A message is marked as \deleted in INBOX it is immediately and automatically expunged because server (Exchange/outlook.com or gmail because don't strictly follow imap standards
Comment 2•8 years ago
|
||
(In reply to gene smith from comment #1)
> In testing Bug 1352859 I observed some seeming non-standard behavior with
> exchange imap server used by outlook.com and gmail imap. [...]
> I setup a new test account at outlook.com. What I observe is that when a
> message is marked as \deleted in INBOX it is immediately and automatically
> expunged by the server. This can be seen in this manual imap transaction
> using openssl:
Gmail has a configuration setting for this (translation from German):
Settings -> /Forwarding and POP/IMAP\
=> If I mark a message in IMAP as deleted:
(x) Auto-delete - Update server immediately (default)
( ) Auto-delete - Wait for the client to update the server
Reporter | ||
Comment 3•7 years ago
|
||
(In reply to Alfred Peters from comment #2)
>
> Gmail has a configuration setting for this (translation from German):
>
> Settings -> /Forwarding and POP/IMAP\
>
> => If I mark a message in IMAP as deleted:
> (x) Auto-delete - Update server immediately (default)
> ( ) Auto-delete - Wait for the client to update the server
Just now checked into this for gmail. Yes, you are right. When I set it to "...Wait for client..." I can "delete" an email and it stay in place with the red X and a line through it and doesn't get instantly expunged. Thanks for pointing this out!
Don't see a similar setting for outlook email, that uses excahnge, however.
Updated•7 years ago
|
Summary: A message is marked as \deleted in INBOX it is immediately and automatically expunged because server (Exchange/outlook.com or gmail because don't strictly follow imap standards → A message is marked as \deleted in INBOX it is immediately and automatically expunged because server (Exchange/outlook.com or gmail) don't strictly follow imap standards
Reporter | ||
Comment 4•7 years ago
|
||
Wayne, I created this "bug" on Jorg's suggestion as mostly documentation. It really only affects users that use the non-default "just mark it as deleted" method for deleting messages (aka, "imap delete model"). I'm don't think anything can really be done about it. I have discussed this with a gmail developer on the imap mailing list and he pretty much convinced me that the behavior pointed out here is not actually a violation of the imap RFC. So, I think you can close this with reason WONTFIX if that's possible.
Thanks,
-gene
Comment 5•7 years ago
|
||
gene, thanks for researching this!
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Summary: A message is marked as \deleted in INBOX it is immediately and automatically expunged because server (Exchange/outlook.com or gmail) don't strictly follow imap standards → A message is marked as \deleted in INBOX is immediately and automatically expunged because server (Exchange/outlook.com or gmail) don't strictly follow imap standards, if user enabled "mark as deleted" model
You need to log in
before you can comment on or make changes to this bug.
Description
•