Hi Yubin, Yubin Ruan hat am Thu 18. Jan, 17:49 (+0800) geschrieben: > On Thu, Jan 18, 2018 at 05:29:38PM +0800, Yubin Ruan wrote: > > Hi, > > > > I know one can hit / or l (i.e., limit) and then apply a search pattern to > > search for messages in the current mailbox. But can we apply this to > > multiple > > mailboxes? I would like to search for matched messages in all mailboxes and > > then put them into a separate mailbox. For example, I have 10 mailboxes and > > now I want to search in these 10 mailboxes for messages that have me in the > > "To: " field and then put them into a separate mailbox. > > Oh, I am using Maildir. So maybe some standalone script will help?
If it's Maildir, it's pretty simple. Create a new mailbox mkdir -p /tmp/matches/cur /tmp/matches/new /tmp/matches/tmp and copy all matching files there cp $(grep -rli PATTERN ~/Mail) /tmp/matches/new mutt -f /tmp/matches Bye Jörg
signature.asc
Description: PGP signature
