|
I've been using mutt religiously for a couple of years now and I am
still discovering little tweaks that I can add to make it
more usable. I will endeavour to put a description of the latest
thing to get me excited in this section...
03 Oct 2003: Attribution fun. I wanted to set up my email
so that when I replied to a message I get the following at the top of
my email:
G'day Nicolas,
* Nicolas Somebody <nobody@devnull.spamcop.net> [031003 11:41]:
and then the message I am replying to, correctly quoted.
This is simply done in mutt. I just change the attribution
variable. The tricky thing is that I want this to be my
default attribution, as I have different attributions based on
who i am mailing... Thus I need to use a send-hook
also, and get the quotes right:
send-hook . "set attribution=\"G'day %v,\n\n* %n <%a> [%(%y%m%d %H:%M)]:\""
I was having some trouble with the various quotes in this, but a
message to the mutt-users mailing list sorted it out in just 8
minutes!
28 Oct 2002: Digital Signatures. Email is one of the
easiest things to forge on the 'net, and yet we use it to conduct
business. The easiest way around the problem is to use digital
signatures [1][2][3].
However if this is to work you need to verify the messages received,
but equivalently if you are on mailing lists you don't want your
public keyring to become bloated with the keys of people you don't
know.
I got around this by telling GPG to
automatically download new keys when it needs to and to use a
different keyring (mutt-pubring.gpg) to store them. This is
all done in the simple script muttgpg:
#!/bin/sh
gpg --no-default-keyring \
--keyring mutt-pubring.gpg \
--keyring pubring.gpg \
--keyserver-options auto-key-retrieve "$@"
I then simply changed all the gpg calls in my
gpg.rc to muttgpg and Bjorn Stronginthearm is your
uncle. :-)
22 Oct 2002: Microsoft Outlook Fun. A couple of people who
mail me use that 'orrible program. When I found the Anti-Outlook Page I just had
to use the tools available to me. Using the my_hdr
command I can easily play with what they see... I've could set the
headers as:
my_hdr X-Message-Flag: Intolerant people should be shot.
my_hdr X-MSMail-Priority: High
and then the messages would appear as this in their Inbox, and
this when they read
it. (With different messages obviously...) The nice thing about these
headers is that the ONLY effect MS users, and no-one else. :-)
10 Oct 2002: Collapsed threads. I've been using the
threading
in mutt for a while now. However I wanted to get a bit more out of my
mailer.
In my Inbox I want strict threading (strict_threads)
so I know how each message relates to each other.
However in my saved mail folders I want a more relaxed approach
since some mailers (hello microshite) haven't understood the concept
of "In-Reply-To" and
"References" fields. In these other folders
I also want the threads collapsed unless there is a new message
(collapse_unread).
Finally, to make this all more difficult I want relaxed threading,
with all threads collapsed when I am reading mail from a mailing list
that I receive as a digest.
Whilst all of this is happening I want my list of mail to show me
(index_format)
either the number of messages in the collapsed thread, or the number
of lines in the message (if it is not part of a collapsed thread).
Pictures might be useful here...
- My Inbox will look something like this.
- My saved mail should look like this
- Finally digest mail should look like this. Previously this digest
would have been more disorganised.
See how in (2) and (3) the collapsed threads list the number of
messages in the thread? :-) When I read a collapsed thread in the
digest the thread then expands.
This is all find and dandy, but how difficult is it to put into
practice? I was somewhat surprised when it only took
6 lines in my muttrc and a new two line
file. Easy!!!
My index_format
variable is set as
set index_format="%4C %Z %{%b %d} %-15.15L %?M?(#%03M)&(%4l)? %s"
My folder-hooks
are set as
unset collapse_unread
# I want (slack) collapsed threading in general.
folder-hook "." unset strict_threads
folder-hook "." push "<collapse-all>"
# Except for my Inbox.
folder-hook "!" set strict_threads
folder-hook "!" push "<collapse-all>"
And I have the following ~/.mutt/metamuttrc
source ${HOME}/.mutt/muttrc
set collapse_unread
This is why I love my mutt. In 8 (simple) lines I have totally
reconfigured it to behave differently for three types of mailboxes.
What other mail program is so easy to work with? There isn't one!
|