This is

as days pass by, by Stuart Langridge

. Here I write about many things. In the past I wrote about other things but the past is past. I write code for people to play with, I write about my life on Twitter, and I write here.

On I wrote Mail client idea, on the subject of Uncategorized.

Everyone in my mail client’s address book should get their own saved-mail folder, so mail from them goes into that folder by default (either on delivery or after I’ve read it). Can I do this in mutt? Can I do it in GUI clients? Is this a VFolder sort of job?

Marius Gedminas

Mutt has something fairly close: read about its save_address, save_name and force_name options.  If is not what you want, you can use save-hooks, although that will be more manual.

Jeff Hodges

A vFolder could do it easily, but that requires using evolution which might not to be your taste.

Roberto

You could do it on the server side, if you use IMAP. Use procmail or mailfilter to forward the message to a Python/Perl script. The script checks if the address is on you address book, and if there's already a mail folder for the person, and saves the message on the folder.


The only problem is that IMAP is slow with mutt, since there's no cache of the folders.

sil

Can't do it on the server, because the server hasn't got your address book :)

Roberto

My address book is on my mail server -- I use LDAP. :)


I even made a Python script to query the LDAP server from inside mutt... works flawlessly.

sil

Ah, well, flash people with LDAP might handle this differently :) My head hurts even thinking about IMAP, let alone storing my address book remotely!

Roberto

Oops, that should be "Building...", inside a Textile link. Sorry.

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.