l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
July 21: Defensive computing: Information security for individuals
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2003 Mar 01 04:34

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] mutt and mail folders...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] mutt and mail folders...



Hi all,

  So I've been wondering how to get mutt to work with a bunch of mail
folders, which procmail is so willing to make for me.  I used to keep a
screen session running X copies of mutt, one for each folder and I would
toggle between them.  With how quickly lugod is expanding it's mail list
collection in the last few months I've run out of available windows, and
had to find a different solution.

  I've never read the mutt manual, now have it on my list todo...
this stuff is from skimming.


  So here is what I started doing today... anyone else have suggestions?

~/.mutt/muttrc
===
mailboxes ! =list/calteg =list/cgiwrap =list/cvbig =list/java \
  =list/mm =list/picnix =list/sc2 =list/va =list/vo =list/vout =list/vt
# more boxes, etc...

set mbox=!       # leave mail in incoming spool

set mark_old=no  # do *NOT* mark as 'old' when leaving a folder
bind  index \'  next-unread   # a way to move among old mail
===


  When starting mutt use '-q' it will bring you to a menu allowing
you to pick which folder to enter.  The folders come for the mailboxes
list.

  When in a folder 'c', then TAB, then TAB will bring you back to this
folder list.

  The following grepmail tells me how many 'New' messages I have in each
folder.


alias mc="grepmail -r -h -v '^Status: RO$' ~/Mail/list/* /var/mail/msimons | grep -v ' 0$'"
===
msimons@moria:~$ mc
/home/msimons/Mail/list/vo: 7
/home/msimons/Mail/list/vt: 2
/var/mail/msimons: 40
===

  The down side is that it changes the access timestamp of the files so
that things like mutt don't think there is "new mail" until it opens the
file.

  I'll follow up with a revised perl version that sets the time stamp
in when I get a chance.

    Later,
      Mike
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.