diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-04-21 04:47:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-04-21 04:47:38 +0000 |
commit | e9a6ace24bbfa377cf85973c791775a3543aa396 (patch) | |
tree | a745b5d3ad68e087e1989a16e90f87ca5c3924db /imap.c | |
parent | 32dad94f997b8a42bd04a7476326c5c2b37cf639 (diff) | |
download | fetchmail-e9a6ace24bbfa377cf85973c791775a3543aa396.tar.gz fetchmail-e9a6ace24bbfa377cf85973c791775a3543aa396.tar.bz2 fetchmail-e9a6ace24bbfa377cf85973c791775a3543aa396.zip |
Deleted -> Seen, Deleted.
svn path=/trunk/; revision=2444
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -972,11 +972,16 @@ static int imap_delete(int sock, struct query *ctl, int number) /* * Use SILENT if possible as a minor throughput optimization. * Note: this has been dropped from IMAP4rev1. + * + * We set Seen because there are some IMAP servers that do + * message-receipt DSNs, but only when the seen bit is set. + * This is the appropriate time -- we get here right after + * the local SMTP response that says delivery was successful. */ if ((ok = gen_transact(sock, imap_version == IMAP4 - ? "STORE %d +FLAGS.SILENT (\\Deleted)" - : "STORE %d +FLAGS (\\Deleted)", + ? "STORE %d +FLAGS.SILENT (\\Seen \\Deleted)" + : "STORE %d +FLAGS (\\Seen \\Deleted)", number))) return(ok); else |