From 92ff4e9ea79d4ebfb8894af9c99f1fe5c682f5ce Mon Sep 17 00:00:00 2001 From: Diana Soares Date: Mon, 26 Sep 2016 14:30:52 +0100 Subject: [PATCH] Mark the created message as seen. --- removeattachments.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/removeattachments.php b/removeattachments.php index ac2a565..d17554f 100644 --- a/removeattachments.php +++ b/removeattachments.php @@ -195,6 +195,9 @@ public function remove_attachments() $imap->set_flag($uid, strtoupper($flag), $_SESSION['mbox']); } + // by default, mark message as seen. + $imap->set_flag($uid, 'SEEN', $_SESSION['mbox']); + $this->api->output->command('display_message', $this->gettext('attachmentremoved'), 'confirmation'); $this->api->output->command('removeattachments_reload', $uid); } else {