aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 4a18403f..cfe4e8eb 100644
--- a/driver.c
+++ b/driver.c
@@ -712,9 +712,13 @@ struct method *proto;
* on a protocol error or had delivery refused by the SMTP
* server (unlikely -- I've never seen it) or we've seen
* `accepted for delivery' and the message is shipped.
- * It's safe to delete the message on the server now.
+ * It's safe to mark the message seen and delete it on the
+ * server now.
*/
+ /* nuke it from the unseen-messages list */
+ delete_uid(&queryctl->unseen, num);
+
/* maybe we delete this message now? */
if (protocol->delete
&& !queryctl->keep