Hello, because of reading email with mutt for a long time, I've traditionally kept mail for each addressee in a separate folder. For work mail (e.g. foo....@work.com) I save to =work/foo.bar. Problem is, there's quite a few of these work addresses, and I have to add each one manually to my save_hook file. Is there a way to use patters to achieve this automatically? Here's roughly what I would write it in regexp language:
fcc-save-hook "([a-z\.]+)@work.com" "=work/\1" That syntax probably doesn't fly with mutt (or does it), but you probably get the idea. I'd like to match the part before @ and use that after =work/. Could I achieve this by somehow changing the "default base folder" where mutt saves email? Any other tricks to make this work? If it won't work like this I'll consider an automatic script which writes a full list of fcc-save-hooks based on our ldap server entries. *Sigh* Perhaps it's time to switch to more generic mailboxes ("=work", "=friends") and use limits to filter by user. Webmail, phone email and others all seem to dislike my 300+ imap folders. Mutt is one of the only mail clients which handles this well. Kind regards, Hein Zelle -- Unix is user friendly. It's just very particular about who it's friends are. Hein Zelle h...@icce.rug.nl http://www.icce.rug.nl/~hein