From e9a6ace24bbfa377cf85973c791775a3543aa396 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 21 Apr 1999 04:47:38 +0000 Subject: Deleted -> Seen, Deleted. svn path=/trunk/; revision=2444 --- imap.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 09561ea5..1e33d7a2 100644 --- a/imap.c +++ b/imap.c @@ -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 -- cgit v1.2.3