On Fri, Sep 22, 2006 at 01:47:29AM -0400, Todd Zullinger wrote:
> John J. Foster wrote:
> >
> > # Which mailboxes should be watched for new mail
> > mailboxes \
> > =FastMail/INBOX \
> > `cd ~/Maildir; find FastMail -maxdepth 1 -mindepth 1 -type d \
> > ! -name INBOX ! -name Trash ! -name sent ! -name Read \
> > -printf "+%p "`
>
> Pipe it through sort?
>
> # Which mailboxes should be watched for new mail
> mailboxes \
> =FastMail/INBOX \
> `cd ~/Maildir; find FastMail -maxdepth 1 -mindepth 1 -type d \
> ! -name INBOX ! -name Trash ! -name sent ! -name Read \
> -printf "+%p " | sort`
Yeah, sort of. I had to add a "\n" format option for printf and then
another pipe at the end to get rid of the "newline".
# Which mailboxes should be watched for new mail
mailboxes \
=FastMail/INBOX \
`cd ~/Maildir; find FastMail -maxdepth 1 -mindepth 1 -type d \
! -name INBOX ! -name Trash ! -name sent ! -name Read \
-printf "+%p \n" | sort`|tr -d '\012'
--
In all the millions of years dinosaurs roamed this planet, did any of
them feel the need to invent, say, nuclear weapons? Mickeyz
Attachment:
pgpfnQQSlLS43.pgp
Description: PGP signature