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

mutt and maildir++ format



I have been using mutt for years and had this in my .muttrc to watch for
new mail in different mailboxes:

mailboxes ! +BoxA +BoxB +BoxC +`echo $HOME/Mail/.*`

which worked well as long as I had symlinks between .BoxA and BoxA etc.

Now I am experimenting with a different setup to get my mutt to cope
directly with the maildir++ format (where mailboxes all begins with a
'.').

I came accross a mini-howto at http://wiki.mutt.org/?MuttFaq/Maildir
which suggested the following:

mailboxes + `\ 
 for file in ~/.maildir/.*; do \ 
   box=$(basename "$file"); \ 
   if [ ! "$box" = '.' -a ! "$box" = '..' -a ! "$box" = '.customflags' \ 
       -a ! "$box" = '.subscriptions' ]; then \ 
     echo -n "\"+$box\" "; \ 
   fi; \ 
done; \ 
 for folder in ~/.maildir/*; do \ 
   if [ -x $folder]; then \    
         box=$(basename "$folder"); \ 
         for file in ~/.maildir/$box/.*; do \ 
                box2=$(basename "$file"); \ 
                if [ ! "$box2" = '.' -a ! "$box2" = '..' -a ! "$box2" = '.customflags' \ 
                 -a ! "$box2" = '.subscriptions' ]; then \ 
                   echo -n "\"+$box/$box2\" "; \ 
                fi; \ 
         done; \ 
    fi; \ 
  done`


But for some reason this is not working at all.  I do not get any
indication where the new mail is.

Are there any mutt-boffins on this list that can help me with a
solution?

Regards
Johann.
-- 
Johann Spies                            Telefoon: 021-808 4699
Databestuurder /  Data manager

Sentrum vir Navorsing oor Evaluasie, Wetenskap en Tegnologie
Centre for Research on Evaluation, Science and Technology 
Universiteit Stellenbosch.

     "But thanks be to God, which giveth us the victory 
      through our Lord Jesus Christ."     
                              I Corinthians 15:57 


Reply to: