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 {