[Gllug] mutt

Pete Ryland pdr at createservices.com
Mon Mar 15 15:19:56 UTC 2004


On Sun, Mar 14, 2004 at 11:51:12PM +0000, Ben Fitzgerald wrote:
> On Sun, Mar 14, 2004 at 11:11:10PM +0000, gllug at minty.org wrote:
> > 
> > i've got procmail filtering everything into (nested sub) folders ...
> > 
> > ... how do I get mutt to show all folders, and which have new messages,
> > all on one screen?
> 
> Put your mailboxes in like this:
> 
> mailboxes /var/mail/ben
> mailboxes =mbox
> mailboxes =gllug
> 
> Then use the following macro:
> 
> macro index <left> 'c?<toggle-mailboxes>'
> 
> The toggle-mailboxes is a predefined function in mutt.

I use:

mailboxes `find ~/.mutt/Mail/IN* -printf "%p "`
macro   index   <left>  ":mailboxes \`find ~/.mutt/Mail/IN* -printf \"%p \"\`\nc?<toggle-mailboxes>"  "Regenerate & View Mailboxes"
set folder_format="%3C %t%N %f%> %d %10s %F %u/%g "

My procmailrc sends incoming mail to various IN.something files, mostly
covered by:

:0
* ^((List-Id|X-(Mailing-)?List):(.*[<]\/[^>]*))
{
        LISTID=$MATCH
   
        :0:
        * LISTID ?? ^\/[^@\.]*
        IN.$MATCH
}

which will automatically handle most lists.

If you usually receive mail locally, another nice procmail rule is:

DISPLAY=:0.0
XAUTHORITY=$HOME/.Xauthority

:0 ich
* ^Subject:.*\/.*
| echo "$MATCH" | osd_cat -p bottom -A center -l 2 --delay=2 --font=-*-postantiquaroman-*-*-*-*-*-200-*-*-*-*-*-* --color=#cccccc --outline=1
                                                                                
which writes the subject of each message received with the on-screen display
program (the font I use is in sharefonts iirc).

Most of my procmail/mutt config I've borrowed from other people, so credit
to them.

Pete
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list