[Imap-protocol] Actually deleting messages from Gmail
Dave Warren <[email protected]>
| Newsgroups | gmane.mail.imap.general |
|---|---|
| Message-ID | <[email protected]> |
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 Warren
http://www.hireahit.com/
http://ca.linkedin.com/in/davejwarren
_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol