LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] mutt + procmail...

[ILUG] mutt + procmail...

kevin lyda kevin at suberic.net
Fri Jan 4 18:28:09 GMT 2002


while i'm sure this can be done with imap folders, i snarf all mail to my
laptop as i almost always have access to it, but don't always have access
to the net.  so i get all my mail via fetchmail and then use procmail
to dump it into the appropriate folder.  an example from my procmailrc is:

    MAILDIR=$HOME/Mail	

    :0:				
    * ^TOilug*@linux.ie
    ilug

which means mail matching that rule goes into my ilug folder.  by default
mutt will only watch the $MAIL mailbox for new mail.  since procmail
routes a large amount of my incoming mail to mailboxes other then $MAIL,
i need mutt to check those mailboxes.  i do this with the following line
in my .muttrc:

    mailboxes /var/spool/mail/kevin ~/Mail/doolin ~/Mail/dlm-devel ~/Mail/ilug ~/Mail/gnome ~/Mail/rpm ~/Mail/indigo

what this means is that whenever i get new mail in any of those folders,
mutt will tell me.  then when i change folders (the c command), mutt
will then present the first folder in "mailboxes" that has new mail (and
the second time i press c, the next folder and so on).  for more info
on how this works you can see the mutt documentation by pressing <f1>
(which used to be labeled help on old ibm keyboards) in the address pane.

in addition, zsh has a similar feature as far as mail notification goes
(however it doesn't work with imap).  in this case you set the following
in your .zshrc:

    mailpath=(/var/spool/mail/kevin\?"You have new mail."
	      ~/Mail/doolin\?"You have new mail in doolin."
	      ~/Mail/ilug\?"You have new mail in ilug."
	      ~/Mail/gnome\?"You have new mail in gnome."
	      ~/Mail/rpm\?"You have new mail in rpm."
	      ~/Mail/indigo\?"You have new mail in indigo.")

this way if you route your mail automatically you can still be made
aware that new mail has come in no matter what folder it goes to.

kevin

-- 
kevin at suberic.net          buffy: come on, can't you put your foot down?!
fork()'ed on 37058400      giles: it *is* down.
meatspace place: orbit     buffy: one of these days you're going to have to
http://suberic.net/~kevin         get a grown up car.  --inca mummy girl




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell