From 7079d459a129b9f355fc9fcf216d80b96c5c63a8 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Thu, 15 Sep 2016 02:02:55 +0800 Subject: [PATCH] emacs - mu4e headers view --- emacs.d/config.org | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/emacs.d/config.org b/emacs.d/config.org index 9150bb0..be49e29 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -2430,6 +2430,36 @@ Refer [[http://www.kirang.in/2014/11/13/emacs-as-email-client-with-offlineimap-a sslcacertfile = /usr/local/etc/openssl/cert.pem #+END_SRC +#+BEGIN_SRC conf + [general] + ui=TTYUI + accounts = Gmail + autorefresh = 5 + + [Account Gmail] + localrepository = Gmail-Local + remoterepository = Gmail-Remote + + [Repository Gmail-Local] + type = Maildir + localfolders = ~/.Mail/seudut@gmail.com + + [Repository Gmail-Remote] + type = Gmail + remotehost = imap.gmail.com + remoteuser = seudut@gmail.com + remotepass = xxxxxxxx + realdelete = no + ssl = yes + #cert_fingerprint = + sslcacertfile = /usr/local/etc/openssl/cert.pem + maxconnections = 1 + folderfilter = lambda folder: folder not in ['[Gmail]/Trash', + '[Gmail]/Spam', + '[Gmail]/All Mail', + ] +#+END_SRC + Then, run =offlineimap= to sync the mail ** Mu - fast search, view mails and extract attachments. @@ -2495,6 +2525,13 @@ config from [[http://www.kirang.in/2014/11/13/emacs-as-email-client-with-offline ;; fetch mail every 10 mins (setq mu4e-update-interval 600) + + ;; mu4e view + (setq-default mu4e-headers-fields '((:flags . 6) + (:from . 22) + (:mailing-list . 10) + (:thread-subject . 50) + (:human-date . 16))) #+END_SRC ** Smtp - send mail -- 2.11.0