CLOSED: [2015-02-01 Sun 13:37] SCHEDULED: <2015-02-01 Sun> :PROPERTIES: :CREATED: [2015-02-01 Sun 13:26] :ID: 2015-02-01-muttfilter :END: :LOGBOOK: - State "DONE" from "NEXT" [2015-02-01 Sun 13:37] :END: I'd like to describe a neat feature of my email set-up. Whenever I write an email to a specific address, I would like to use a different ~FROM~-address for this email recipient instead of my standard email address. This way, I can give away contact-specific email addresses. That's quite handy when you've got a [[https://en.wikipedia.org/wiki/Catch-all][catch-all email domain]] or you are using [[http://gmailblog.blogspot.co.at/2008/03/2-hidden-ways-to-get-more-from-your.html][some more or less hidden features of cloud-based email services]]. ---------------- Having this possibility, enables me to use ~FROM~-addresses like ~Microsoft@MYDOMAIN.at~ for emails that I write to Microsoft, event-related addresses like ~chi09@MYDOMAIN.at~ when I write to people I met at this conference back then, and so on. For this purpose, I wrote [[https://github.com/novoid/muttfilter.py][muttfilter.py]] which does the trick for me fully automatically. Let's take a look at an example [[http://orgmode.org][Emacs Org-mode]] [[https://julien.danjou.info/projects/emacs-packages#org-contacts][Org-contacts]] entry which looks like that: : ** Bob Simpson :research:chi09:BobSimpson: : :PROPERTIES: : :TYPE: : :TITLE: Dr. : :EMAIL: Bob.Simpson@example.com : :oldEMAIL: Bob.Simpson@outdated.example.com : :URL: http://example.com/bob : :MOBILE: : :HOMEPHONE: : :WORKPHONE: : :COMPANY: This cool research company : :STREET: 42 Weirdstreet : :POSTALCODE: 12345 : :CITY: Denver : :COUNTRY: USA : :PHOTOGRAPH: [[photo:BobSimpson.jpg]] : :BORN: 1970-12-31 : :ITOLDTHEM_EMAIL: chi09@MYDOMAIN.at : :ITOLDTHEM_ADDRESS: : :ITOLDTHEM_PHONE: : :ADDRESS_CHANGE_METHOD: email : :CREATED: [2015-01-30 Fri 17:51] : :END: : : - first contact: CHI conference 2009 : - we had a nice lunch time together Whenever I write an email to Bob (property ~:EMAIL:~), I would like to use ~chi09@MYDOMAIN.at~ (property ~:ITOLDTHEM_EMAIL:~) instead of my standard email address. The [[https://github.com/novoid/muttfilter.py][README file on the GitHub-page]] explains how to install and set-up this script. I'm using it with [[http://www.mutt.org/][mutt]] and [[http://www.vim.org/][gVim]] but it should work with any [[https://en.wikipedia.org/wiki/Email_client][MUA]]/Editor combination which allows a wrapper script to be called before composing an email.