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

[SOLVED] Re: 'mailboxes'



Hello, 

and sory, hand not slept very much...

Now my flexibel solution:

For better editing I have splited my muttrc in many smaler files using 
the 'source' command...

~/.mutt/muttrc
~/.mutt/mailboxes

The Solution:

  ____ /home/michelle/.mutt/mailboxes _______________________________
 /
|  mailboxes +INBOX \
|  +Privat/INBOX \
|  `muttmailboxes Friends` \
|  +Linux/INBOX \
|  +Dos/INBOX \
|  +WfW/INBOX \
|  +Binaries \
|  +Auktionen/INBOX \
|  +Auktionen/Questions \
|  +Auktionen/Annulations \
|  +Auktionen/1_Confirmation \
|  +Auktionen/2_Outbid \
|  +Auktionen/3_Equivalents \
|  `muttmailboxes Auktionen/Pseudos` \
|  +SystemMessages \
|  `muttmailboxes SCHROTT` \
|  `muttmailboxes ML-Linux` \
|  `muttmailboxes ML-DOS` \
|  `muttmailboxes ML-BSD`
 \___________________________________________________________________

where 'muttmailboxes' is

  ____ /home/michelle/bin/muttmailboxes _______________________________
 /
|  #!/bin/bash
|  # 
|  # Michelle Konzack <linux4michelle@xxxxxxxxxx>
|  # 
|  # Script to generate 'mailboxes' in the .muttrc
|  # This Script is under GPL v2 or higher. Any use is permited.
|  
|  if [ $1 ] ; then
|      cd ~/Maildir/$1
|      TEMPFILE=`tempfile`
|      for i in `ls -D` ; do
|          echo -n "+$1/$i " >> $TEMPFILE
|      done
|      cat $TEMPFILE
|      rm $TEMPFILE
|  fi
 \_____________________________________________________________________


Greetings
Michelle

-- 
Registered Linux-User #280138 with the Linux Counter, http://counter.li.org/