Marking an entire mailbox read

Stephan Bosch stephan at rename-it.nl
Mon Jun 13 16:45:25 UTC 2016



Op 1-6-2016 om 21:58 schreef @lbutlr:
> I have an archive mailbox that contains in excess of 100,000 mail messages (stored in maildir) that accidentally got marked as unread. It is too large for my mail client to select all the mail and mark it as read without throttling.
>
> Is there a simple way that I can use doveadm or something to simply mark every message in that maildir as read? Or do I just loop through every message and move it to <messaage>+S?
>
> find ~/Maildir/.Archive/cur/* -type f -name “1*:2” --exec mv {} {}S \;

Probably something like this:

doveadm flags -u bob remove '\Seen' mailbox dovecot

See `man doveadm flags` for more information.

Regards,

Stephan.





More information about the dovecot mailing list