<<< Date Index >>>     <<< Thread Index >>>

Re: Creating list of "mailboxes" dynamically



John J. Foster wrote:
> Good evening,
> 
> I've just started using offlineimap (what a slick program!) along with
> msmtpqueue to make mutt really useful offline. Anyway, I'm currently
> generating a list of mailboxes each time I start mutt, but I can't
> figure out how to get it sorted. Can anyone help me out? This is
> what's in muttrc right now.
> 
> # 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`

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
======================================================================
Anarchism is founded on the observation that since few men are wise
enough to rule themselves, even fewer are wise enough to rule others.
    -- Edward Abbey

Attachment: pgpuJjgHKvblU.pgp
Description: PGP signature