Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
emacs_and_email [2016-04-08 16:18] – created nikemacs_and_email [2016-04-08 17:20] nik
Line 4: Line 4:
   * mail delivery - ''getmail'' via IMAP with ''maildrop'' for filtering/filing into local subfolders   * mail delivery - ''getmail'' via IMAP with ''maildrop'' for filtering/filing into local subfolders
   * mail reading/writing - ''mu4e'' in ''emacs''   * mail reading/writing - ''mu4e'' in ''emacs''
-  * sending - from within ''emacs'' using ''smtpmail'' (and ''smtpmail-stream-type 'ssl'')+  * sending - from within ''emacs'' using ''smtpmail'' (and ''smtpmail-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''
 +<code>
 +[retriever]
 +type = SimpleIMAPSSLRetriever
 +server = example.com
 +username = xxxxxxx
 +password = xxxxxxx
 +
 +[destination]
 +type = MDA_external
 +path = /opt/local/bin/maildrop
 +</code>
 +
 +
 +''~/.mailfilter''
 +<code>
 +# 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...]    
 +</code>
 +
 +
 +====mail reading/writing====
 +
 +mu4e
 +
 +====mail sending====
 +
 +<code>
 +(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
 +)
 +</code>
  • emacs_and_email.txt
  • Last modified: 2016-11-25 11:39
  • by nik