[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim/procmail & mutt: some mboxes read as 'new', others don't



On Fri, Jul 28, 2000 at 10:30:11AM +0200, Kai Weber wrote:
> + Manoj Victor Mathew <vmathew@eth.net>:
> 
> > Use the config command "mailboxes" in your .muttrc to specify
> > which mbox files need to be checked for new mail.
> > 
> > My .muttrc reads ...
> > 
> > mailboxes `echo $HOME/Mail/inbox*` `echo $HOME/Mail/per*` \
> > `echo $HOME/Mail/gen*` `echo $HOME/Mail/list*`
> 
> Any hint, how to echo all files in Mail except msgid.cache? I am still
> not keen on unix regular expression -- switched from Amiga to Debian.

you betcha.

how about
	HIDE='msgid|something|this-too'
	mailboxes `/bin/ls $HOME/Mail/* | grep -v "$HIDE"`

grep works on a line-by-line basis, and /bin/ls, when not spewing forth
to your terminal, outputs one filename per line.

-- 
things are more like they used to be than they are now.

will@serensoft.com *** http://www.dontUthink.com/



Reply to: