finding file by size

Ralph Seichter m16+notmuch at
Tue Nov 6 12:47:21 PST 2018

* Mark Janes:

> I'd like to find and delete the dozens of messages that were sent to
> me years ago with 50MB attachments.

I'm not sure about using Notmuch itself, but this should work:

  find /path/to/maildir -type f -size +50M | xargs rm

Each message in Maildir is stored in a single file, after all.


More information about the notmuch mailing list