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.)

-- 
David Haguenauer

Attachment: pgpX0rewUqfn6.pgp
Description: PGP signature

Reply via email to