Francois Marier: Handling multiple identities/accounts in mutt
Since mutt seems to be all the rage these days at work, I might as well document here a few things about my .muttrc that might be useful to others.
(I recommend that you start off with the Debian or Ubuntu package for mutt since a large chunk of necessary customization work has already been done by the Debian maintainers.)
Here is how I handle two user accounts. Let's start off by listing both of these addresses so that mutt can recognize emails using these as being sent by me:
Finally, I've got this convenient shortcut which allows me to switch to my inbox quickly and to go from one inbox to the next:
(I recommend that you start off with the Debian or Ubuntu package for mutt since a large chunk of necessary customization work has already been done by the Debian maintainers.)
Here is how I handle two user accounts. Let's start off by listing both of these addresses so that mutt can recognize emails using these as being sent by me:
alternates "(fmarier@gmail\.com) (francois@debian\.org)"Now this is to allow me to change the From address within the editor, in case I forgot to set the right one before pressing 'm':
set use_fromHere are the two settings that I'm going to change when switching to a different identity (from address and status bar display).
# default profileHere are the macros I use to switch from one account to the next (bound to ESC-1 and ESC-2):
set from="fmarier@gmail.com"
set status_format="-%r-fmarier@gmail.com: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
macro index \e1 ":set from=fmarier@gmail.com\n:set status_format=\"-%r-fmarier@gmail.com: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---\"\n" "Switch to fmarier@gmail.com"And this is the code that uses these macros to switch to the right identity automatically:
macro index \e2 ":set from=francois@debian.org\n:set status_format=\"-%r-francois@debian.org: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---\"\n" "Switch to francois@debian.org"
folder-hook =inbox 'push \e1oi'(The 'oi' part at the end is there to restore the default sort order.)
folder-hook =debian-inbox 'push \e2oi'
Finally, I've got this convenient shortcut which allows me to switch to my inbox quickly and to go from one inbox to the next:
macro index I "c=inbox\n" "Switch to inbox"Next up: indexing your emails using mairix.
folder-hook =inbox 'macro index I "c=debian-inbox\n" "Switch to debian-inbox"'
folder-hook =debian-inbox 'macro index I "c=inbox\n" "Switch to inbox"'
I have been using Arch to package my Debian packages since 2003;
which means that Arch has had a good long run as my SCM of choice.
I have been using CVS for a few years before I moved to arch, and
the migration took me about six months, since it involved a while
new philosophy of packaging; I am hoping that migrating to git
would not involve such a major paradigm shift, and thus be less
disruptive and time consuming. What follows is a narrative of my
efforts to get educated about Git.
I wrote an essay several years ago called
The usability experts of Ubuntu have finally started to handle the single
most mentioned usability issue with Linux: the top level directory names.Quoting Finn C. Tional from the Ubuntu Usability Group:
This weekend I did a hack session with Alan McGovern on Monson. You don't know what Monsoon is? It's the sexy GTK# driven bittorrent client based on the MonoTorrent library developed by Alan McGovern.
I created
Slow sunday afternoon? Choose a 
OK, been quiet for a few days, at least on the blog, but in accordance with typical behaviour (for me at least) a quiet blog means a lot of things going on elsewhere. The smallest was a fix for 


As I type this my internet connection is being once again powered by my
DG834G. It's also very dark, but that's because I'm observing
There are many reasons to hate Java, it's like shooting fish in a barrel.
But in the last weeks I found some more, half of them aren't even fault of the
standard API (the usual culprit), and I want to share my frustration with the
rest of the world.
It has no unsigned types
Say you want to manage binary protocols, files, etc. You'd like to
store and retrieve bytes and words in machine format, of course, but
you'll have a hard time finding the right value because you can't have
a goddamn unsigned byte!
So if you want —for example— to read the length of a string
which can be bigger than 127 as a single byte, you'll end doing some
aberration like this:
I always thought it would be interesting to write an essay on why exactly
this article is relevant to Debian, but since I never got around to it, I
should just share the link:
Today we had the opportunity to be part of a very important event: Venezuela’s final meeting on DIS 29500 fast-tracking. Even though we’re working on this matter since 2007, and we weren’t approved official participation as a community, we managed to be there today. There was a strong discussion; and we had our chance to participate. I believe we were welcomed by the NB and hopefully we, as a community, can be part of future discussions in a very constructive way. Thanks again to all the committee members and our NB who made it possible for us to participate today.