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

Re: Does mutt have any concept of "where I am now"?



On Mon, Aug 13, 2007 at 10:12:29PM +0200, Kai Grossjohann wrote:
> On Mon, Aug 13, 2007 at 09:04:20AM -0500, Matt Okeson-Harlow wrote:
> 
> > I swiped a bit of code from someone else to build my mailboxes list, you may
> > be able to modify it to suit your needs:
> > 
> > http://technomage.net/dotfiles/muttrc/mailboxes.html
> > 
> > mailboxes ! + `\
> >     for file in ~/Maildir/.*; do \
> >         if [ -d $file ]; then \
> >             box=$(/usr/bin/basename "$file"); \
> >             if [ ! "$box" = '.Spam' \
> >                 -a ! "$box" = '.Trash' \
> >                 -a ! "$box" = '.junk' \
> >                 -a ! "$box" = '.' \
> >                 -a ! "$box" = '..' ]; then \
> >                 echo -n "\"+$box\" "; \
> >             fi; \
> >         fi; \
> >     done`
> 
> This presupposes the "extended Maildir" layout, I think.  My directory
> layout is that I've just got a directory with subdirs, and at various
> places in the hierarchy there are normal Maildirs.
> 
Yes, that's right.  I hate the Courier/Dovecot way of not having real
sub-directories but delimiting with '.', it's OK (but why do it?) for
an IMAP server as the user doesn't see it but if you want to use the
hierarchy locally yourself it's a total pain.

-- 
Chris Green