This is an old revision of the document!
Emacs And Email
current setup (as of March 2016)
- mail delivery -
getmail
via IMAP withmaildrop
for filtering/filing into local subfolders - mail reading/writing -
mu4e
inemacs
- sending - from within
emacs
usingsmtpmail
(andsmtpmail-stream-type 'ssl
) to connect to remote smtp server
some notes…
mail delivery
using getmail
to deliver mail from remote server[s] to local maildir folders, with maildrop
as a way of filing (filtering) messages into subfolders on the local machine.
configs
~/.getmail/imap.conf
[retriever] type = SimpleIMAPSSLRetriever server = example.com username = xxxxxxx password = xxxxxxx [destination] type = MDA_external path = /opt/local/bin/maildrop
~/.mailfilter
# filtering with maildrop DEFAULT="$HOME/Maildir/INBOX" MAILDIR="$HOME/Maildir" logfile "$HOME/.mailfilter.log" # archive list messages if (/^List-id:.*/) to $MAILDIR/archiv-0201x # sysadmin for the sysadmin if (/^From:.*MAILER-DAEMON/) to $MAILDIR/sysadmin # [etc...]
mail reading, writing and referencing
- mu4e manual http://www.djcbsoftware.nl/code/mu/mu4e/
- still to sort out
- templates (e.g mindrot)
- clearer org-mu4e integration
- images in html mail (c.f. w3m, eww/shr, html2text)
- refiling to specified targets (e.g. 'a', 'j' and 's' in thunderbird/nostalgy)
- searches, constrained searches, searches as actions
- flow
mail sending
(setq message-send-mail-function 'smtpmail-send-it smtpmail-stream-type 'ssl smtpmail-default-smtp-server "mail.example.com" smtpmail-smtp-server "mail.example.com" smtpmail-smtp-service 465 )