wasm-demo/demo/ermis-f/imap-protocol/cur/1600095070.22641.mbox:2,S

82 lines
2.9 KiB
Plaintext

MBOX-Line: From blong at google.com Thu Mar 20 23:07:03 2014
To: imap-protocol@u.washington.edu
From: Brandon Long <blong@google.com>
Date: Fri Jun 8 12:34:52 2018
Subject: [Imap-protocol] Actually deleting messages from Gmail
In-Reply-To: <532BC3A0.7060402@hireahit.com>
References: <532BC3A0.7060402@hireahit.com>
Message-ID: <CABa8R6vFbqH5=AMH62e_c_rMDPcQv28Wt_3qiGKefuGzGJkP+g@mail.gmail.com>
You can't delete the all mail label from a message in Gmail. Adding the
spam or trash label will hide the message from all other folders.
If the all mail folder is the last folder the message is in and you set
your "When a message is marked as deleted and expunged from the last
visible IMAP folder" setting to something other than the default, it should
disappear from the all mail folder.
As for what should clients do? That really depends on the client. If the
user (or the app) really wants the message deleted, then moving it to the
trash folder is the right thing to do. If the user is just trying to
remove the message from a single folder, \deleted & expunge is the right
thing.
Brandon
On Thu, Mar 20, 2014 at 9:47 PM, Dave Warren <davew@hireahit.com> wrote:
> I was sure that when I tested previously, deleting a message from
> "[Gmail]/All Mail" would cause Gmail to place the message in the Trash,
> removing it from all labels, but testing today, this doesn't seem to be the
> case, the message reappears without the \Deleted flag after being expunged:
>
> R00005 SELECT "[Gmail]/All Mail"
> <...>
> * 1432 FETCH (UID 92405)
> * 1433 FETCH (UID 92406)
> * 1434 FETCH (UID 92407)
> <...>
>
> R0004F UID STORE 92407 +FLAGS (\Deleted)
> * 1434 FETCH (FLAGS (\Deleted) UID 92407)
> R0004F OK Success
> R00050 EXPUNGE
> R00050 OK Success
> R00051 UID STORE 92405 +FLAGS (\Deleted)
> * 1432 FETCH (FLAGS (\Seen \Deleted) UID 92405)
> R00051 OK Success
> R00052 EXPUNGE
> R00052 OK Success
>
> R00054 SELECT "[Gmail]/All Mail"
> <...>
> * 1432 FETCH (UID 92405)
> * 1433 FETCH (UID 92406)
> * 1434 FETCH (UID 92407)
> <...>
>
> * 1432 FETCH (UID 92405 RFC822.SIZE 14202 INTERNALDATE "21-Mar-2014
> 03:19:31 +0000" FLAGS (\Seen) BODY[HEADER] {2044}
> <...>
> * 1434 FETCH (UID 92407 RFC822.SIZE 14173 INTERNALDATE "21-Mar-2014
> 03:55:43 +0000" FLAGS () BODY[HEADER] {2056}
>
> Long-term we're looking at copying messages into the Trash the way Gmail
> expects when we actually intend to remove a message. In this case, is there
> any advantage in setting \Deleted or issuing an EXPUNGE, or is it best to
> simply copy and let Gmail do the rest?
>
> --
> Dave Warrenhttp://www.hireahit.com/http://ca.linkedin.com/in/davejwarren
>
>
> _______________________________________________
> Imap-protocol mailing list
> Imap-protocol@u.washington.edu
> http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/imap-protocol/attachments/20140320/69a29064/attachment.html>