Gentoo Archives: gentoo-user

From: Willie Wong <wwong@×××××××××.EDU>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] any gentoo mutt users?
Date: Sat, 02 May 2009 18:03:59
Message-Id: 20090502180022.GA30259@princeton.edu
In Reply to: [gentoo-user] any gentoo mutt users? by James
1 On Sat, May 02, 2009 at 12:24:00PM -0400, Penguin Lover James squawked:
2 > I've recently discovered the awesomeness of mutt. (I may be a little
3 > late, but better late than never!)
4
5 7 year user of Mutt, and I cannot agree more.
6
7 > I'm use it for my work email. I have a rather complex and lengthy set
8 > of folders, and an equally complex procmail to go along with it. Mutt
9 > is blazing fast at opening mail folders and sorting things, but I'm
10 > wondering how to check when a new messages comes into a folder and
11 > skips the inbox.
12
13 > Any other suggestions? Something very lightweight would be awesome --
14 > even text based would be okay. What are you mutt users to check email
15 > in all your folders?
16
17 In your .bashrc (if you you bash) insert
18
19 unset MAIL
20 export MAILCHECK=15
21 export MAILPATH='<colon separated list of Mailboxes>'
22
23 This will make bash check for new mail in your MAILPATH every 15
24 seconds, and will display something about you having new mail before
25 showing the next primary prompt.
26
27 If you want to get fancier, try something like mine
28
29 export MAILPATH='~/Mail/inbox?You have mail from unknown sender.:~/Mail/gentoo-ml?New mail from Gentoo Mailing List.:~/Mail/work?New mail from office mates.:~/Mail/family?New mail from a family member.'
30
31 (I trimmed it a bit, so you don't get the names of all my friends.)
32 The idea is simple, and I think the syntax is self-evident.
33
34 Also, in your .muttrc, you should set (if you use mbox type boxes. For
35 maildirs the syntax is similar, but your should check the mutt manual
36 to be sure) something like the following snip
37
38 set mbox_type=mbox
39 set folder=/home/wwong/Mail
40 set spoolfile=/home/wwong/Mail/inbox
41 unset mbox
42 mailboxes =gentoo-ml =work =family
43
44 This way mutt will know about your mailboxes. The spoolfile will be
45 the default box that mutt opens. If you have bash-completion enabled,
46 you can just type 'mutt -f =<mailbox name>' for any mailbox listed
47 under mailboxes in .muttrc to open that mailbox.
48
49 While in mutt, hitting 'c' will now first check all your mailboxes
50 listed under the mailboxes entry in order to see if there are any new
51 mails in those boxes, if so, it will default to the box, and you can
52 just hit <Return> to open the box and read your new mail. If no
53 mailbox has new mail, 'c' will bring up a prompt for the mailbox you
54 want to change to as usual.
55
56 I hope my explanation is clear enough... if you need more help, feel
57 free to ask!
58
59 Best,
60
61 W
62 --
63 "Pages one and two [of Zaphod's presidential speech] had
64 been salvaged by a Damogran Frond Crested Eagle and had
65 already become incorporated into an extraordinary new form
66 of nest which the eagle had invented. It was constructed
67 largely of papier mache and it was virtually impossible for
68 a newly hatched baby eagle to break out of it. The Damogran
69 Frond Crested Eagle had heard of the notion of survival of
70 the species but wanted no truck with it."
71
72 - An example of Damogran wildlife.
73 Sortir en Pantoufles: up 876 days, 16:33

Replies

Subject Author
Re: [gentoo-user] any gentoo mutt users? James <jtp@×××××.com>