Re: [Imap-protocol] Actually deleting messages from Gmail

Brandon Long <[email protected]>
Newsgroups gmane.mail.imap.general
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 <[email protected]> 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
> [email protected]
> http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol
>

_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.