Added shortcuts for some mail directories

This commit is contained in:
syl20bnr 2013-01-13 23:11:45 -05:00
parent 44e32749f1
commit 664f2b0c3a
2 changed files with 38 additions and 4 deletions

View File

@ -10,3 +10,18 @@
user-mail-address "sylvain.benner@gmail.com"
user-full-name "Sylvain Benner"
message-signature "syl20bnr")
;; setup some handy shortcuts
;; you can quickly switch to your Inbox -- press ``ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ``ma''.
(setq mu4e-maildir-shortcuts '(
("/Coding" . ?c)
("/INBOX" . ?i)
("/News" . ?n)
("/Personal" . ?p)
("/sent" . ?s)
("/spam" . ?m)
("/trash" . ?t)
("/Work" . ?w)
))

View File

@ -13,6 +13,23 @@
(setq mu4e-drafts-folder "/draft")
(setq mu4e-sent-folder "/sent")
(setq mu4e-trash-folder "/trash")
(setq mu4e-refile-folder
(lambda (msg)
(cond
;; ;; messages to the mu mailing list go to the /mu folder
;; ((mu4e-message-contact-field-matches msg :to
;; "mu-discuss@googlegroups.com")
;; "/mu")
;; ;; messages sent directly to me go to /archive
;; ;; also `mu4e-user-mail-address-regexp' can be used
;; ((mu4e-message-contact-field-matches msg :to "me@example.com")
;; "/private")
;; ;; messages with football or soccer in the subject go to /football
;; ((string-match "football\\|soccer" (or (mu4e-message-field msg :subject) ""))
;; "/football")
;; everything else goes to /archive
;; important to have a catch-all at the end!
(t "/archive"))))
;; don't save message to Sent Messages, Gmail/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)
@ -31,10 +48,12 @@
;; you can quickly switch to your Inbox -- press ``ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ``ma''.
(setq mu4e-maildir-shortcuts
'( ("/INBOX" . ?i)
("/sent" . ?s)
("/trash" . ?t)))
(setq mu4e-maildir-shortcuts '(
("/INBOX" . ?i)
("/sent" . ?s)
("/spam" . ?m)
("/trash" . ?t)
))
;; inline images
(setq mu4e-view-show-images t