On Thu, Jul 15, 2010 at 08:06:17AM +0200, David Haguenauer wrote: >Hi, > >* [email protected] <[email protected]>, 2010-07-14 21:01:01 Wed: >> How can I exclude one folder from my mailbox list using a find >> pipe? >> >> muttrc: >> mailboxes `find ~/.maildir/ -type d -name cur -printf '%h '` >> >> [...] To clarify, I only want to omit my >> "/home/roger/.maildir/.roger" folder and not my other folders such >> as "/home/roger/.maildir/[email protected]" folder(s). > >I'd use grep; something like the following: > > find ~/.maildir/ -type d -name cur -printf '%h ' | grep -v '\.roger/' > >(Adapt the regexp depending on how strict you need to be.)
Great THANKS! I think this one worked "right out of the box, as is". I spent hours looking at man find, google, etc and none worked and I thought grep -v wouldn't work. The other email response using ['/home/roger/.maildir/.roger$'|tr "\n" " "], I don't know about -- as to why the newline char? I think I'll post the grep -v option to the Mutt Wiki ConfigTricks! -- Roger http://rogerx.freeshell.org/
pgpeTH7PqK5i6.pgp
Description: PGP signature
