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 \; -- By the way, I think you might be the prettiest girl I've ever seen outside the pages of a really filthy magazine
On Jun 1, 2016, at 1:58 PM, @lbutlr <kremels at kreme.com> wrote:> find ~/Maildir/.Archive/cur/* -type f -name ?1*:2? --exec mv {} {}S \;For the record,I did the following, which appears to have worked: find . -type f -name "1*2,*" -not -name "*2,S*" -exec mv {} {}S \; -- It wasn't that her [Susan's] parents didn't believe in such things. They didn't need to believe in them. They knew they existed. They just wished they didn't.
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.