Email

Francais: Utiliser mutt avec emacs. (Pas courant pour la page entiere.)

Emacs Modes

Don't Believe The Vile Propaganda

Try emacsclient or gnuclient for avoiding the Emacs startup/shutdown wait. If they don't do the trick, there's jed, which does an excellent job of emulating emacs while remaining lightweight. It uses S-Lang for customization, as in these files:

Mutt

My email program of choice is Mutt, originally chosen for its PGP/MIME support. Mutt also has many other nice features, though, such as syntax coloring, threading, and very extensive customizability. In general it's similar to elm or pine, but better. Here's a screenshot.

If you use UNIX but don't have Mutt, get it here, then come back.

Disabling Alternate Screen Switching (also handy for less)

Follow the script link below. It works for 80x86 Red Hat Linux, maybe all (80x86) Linuxes, but probably not much else.

Running or detecting multiple sessions of mutt

Running multiple sessions of Mutt can cause trouble when one of the instances writes (i.e. removes a message) a mailbox that the other mutt(s) are assuming they have complete control of. You can lose mail this way! (Or at least you used to be able to. Mutt seems to have improved on this, and now (0.93.2i) gives you a warning of "Mailbox externally modified. Flags may be incorrect.") It's easy to get people arguing over what the best way of solving this problem is, but I prefer renaming the Mutt binary to "realmutt" and using this script (improved 12/15/1998!) as a wrapper to detect if mutt is already being run, and start the new mutt in readonly mode if so. Thanks to Brian Salter-Duke for his comments and improvements.

Dealing with frequent colloquium announcements and reminders

Associated with any largish group of scientists is a steady stream of colloquia, seminars, meetings, and lunch talks. Multiply that with emails notices sent 1 month, 1 week, 1 day, 1 hour, and 1 minute before the event, and the result is a reluctance of those scientists to read, or at least remember, any of those emails.

collofilt is a perl script that tries to ensure the notices have a useful (i.e. event date and time) Subject: line. Use it by putting something like this in your ~/.procmailrc, which will also take care of duplicate emails! Both are optimized for the format of notices most often used around NRAO and UVa astro environment circa February 2008.

Dealing with many mailing lists and duplicate messages

Put something like this in your ~/.procmailrc (the same as above). (This is a common problem and I certainly didn't start from scratch. Credit is given where I've remembered it.)

Filter for Proofpoint's suspected spam reports

Proofpoint is a company that filters spam and sends its clients reports of the caught spam for them to inspect for false positives (I found 2 in the first few months, but none lately.) If you don't care about Proofpoint, you don't need this filter.

Unfortunately the text/plain part of the report is a real mess, so I wrote

pprfilter

to clean it up. It is a short PERL script with instructions in the comments. I use it as a display_filter in mutt, but since it is a simple text filter it should be generally useful to anyone.

NEWS:

Oct. 6, 2004 Now reads the Proofpoint report in paragraph mode to avoid problems with roving linebreaks.
Feb. 2, 2005 Now that Proofpoint has stopped using paragraphs, pprfilter breaks lines on every >.

Screenshot

Dynamic signatures

Note that I have nothing to do with these, like many things on this page. I've just placed them here to make them more accessible.

The above post mode for emacs lets one use several functions for selecting dynamic signatures, such as yow!, fortune, or randomly drawing (see below) or interactively picking one from a file or directory.

Mutt can also append a randomly chosen signature to your outgoing emails if you have a program to supply the signature. You do this by putting this in your .muttrc:

set signature="program|"
Here's a few suggestions for program:

Click here if you don't use mutt, and need a way of getting random snippets but all you can get the application you're using to do is read from a particular file.

Remember that the whole thing (quote + .fixedsig) should fit inside 4 lines of 80 characters each for it to be McQ, if you care about such things.

If you happen across Sven Guckes' Mutt manual, and notice the bit about Mutt having a builtin sig randomizer, sorry, it doesn't. That feature went missing, which is why the above was written.


Rob Reid, (Remove spaces+blah) blah  r o b.re  id@n  rc-cr nc.gc .c a

Last modified: Thu Feb 28 22:49:01 EST 2008 .