Updated email config to allow for better organization in mu4e
This commit is contained in:
parent
83d6f3d02f
commit
6d15eaae89
@ -75,6 +75,9 @@ From here, I can continue onto configuring the ~mu4e~ emacs package.
|
|||||||
;; Avoids syncing issues.
|
;; Avoids syncing issues.
|
||||||
(setq mu4e-change-filenames-when-moving t)
|
(setq mu4e-change-filenames-when-moving t)
|
||||||
|
|
||||||
|
;; Extend header view max message count.
|
||||||
|
(setq mu4e-search-results-limit 10000)
|
||||||
|
|
||||||
;; Fix message citation style for gmail.
|
;; Fix message citation style for gmail.
|
||||||
(setq message-cite-style message-cite-style-gmail)
|
(setq message-cite-style message-cite-style-gmail)
|
||||||
(setq message-citation-line-format "On %a, %b %d, %Y at %H:%M %p %f wrote:")
|
(setq message-citation-line-format "On %a, %b %d, %Y at %H:%M %p %f wrote:")
|
||||||
@ -86,21 +89,36 @@ From here, I can continue onto configuring the ~mu4e~ emacs package.
|
|||||||
(setq mu4e-maildir "~/.mail")
|
(setq mu4e-maildir "~/.mail")
|
||||||
|
|
||||||
;; Config mu4e folders and bookmarks
|
;; Config mu4e folders and bookmarks
|
||||||
(setq mu4e-drafts-folder "/[Gmail]/Drafts"
|
(setq mu4e-drafts-folder "/Drafts"
|
||||||
mu4e-sent-folder "/[Gmail]/Sent Mail"
|
mu4e-sent-folder "/Sent"
|
||||||
mu4e-refile-folder "/[Gmail]/All Mail"
|
mu4e-trash-folder "/Trash"
|
||||||
mu4e-trash-folder "/[Gmail]/Trash")
|
mu4e-refile-folder
|
||||||
|
(lambda (msg)
|
||||||
|
(cond
|
||||||
|
((mu4e-message-contact-field-matches msg :from "no-reply@piazza.com") "/UCSC")
|
||||||
|
((mu4e-message-contact-field-matches msg :from "notifications@instructure.com") "/UCSC")
|
||||||
|
((mu4e-message-contact-field-matches msg :from "no-reply@gradescope.com") "/UCSC")
|
||||||
|
((mu4e-message-contact-field-matches msg :from "notification@edstem.org") "/UCSC")
|
||||||
|
((mu4e-message-contact-field-matches msg :from "onlinebanking@ealerts.bankofamerica.com") "/Finance")
|
||||||
|
((s-starts-with-p "[SlugSec" (mu4e-message-field msg :subject)) "/Club")
|
||||||
|
(t "/Archive"))))
|
||||||
|
|
||||||
(add-to-list 'mu4e-bookmarks
|
(setq mu4e-bookmarks
|
||||||
'(:name "Flagged messages" :query "flag:flagged" :key ?f)
|
'((:name "Filtered unread messages" :query "flag:unread AND maildir:/Archive AND NOT flag:trashed" :key ?u)
|
||||||
t)
|
(:name "All unread messages" :query "flag:unread" :key ?U)
|
||||||
|
(:name "Today's messages" :query "date:today..now" :key ?t)
|
||||||
|
(:name "Last 7 days" :query "date:7d..now" :hide-unread t :key ?w)
|
||||||
|
(:name "Flagged messages" :query "flag:flagged" :key ?f)))
|
||||||
|
|
||||||
(setq mu4e-maildir-shortcuts
|
(setq mu4e-maildir-shortcuts
|
||||||
'((:maildir "/Inbox" :key ?i)
|
'((:maildir "/Inbox" :key ?i)
|
||||||
(:maildir "/[Gmail]/Sent Mail" :key ?s)
|
(:maildir "/Archive" :key ?a)
|
||||||
(:maildir "/[Gmail]/Trash" :key ?t)
|
(:maildir "/Drafts" :key ?d)
|
||||||
(:maildir "/[Gmail]/Drafts" :key ?d)
|
(:maildir "/Sent" :key ?s)
|
||||||
(:maildir "/[Gmail]/All Mail" :key ?a))))
|
(:maildir "/Trash" :key ?t)
|
||||||
|
(:maildir "/Finance" :key ?f)
|
||||||
|
(:maildir "/Club" :key ?c)
|
||||||
|
(:maildir "/UCSC" :key ?u))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Adding some configuration to correct ~mu4e~'s default values.
|
Adding some configuration to correct ~mu4e~'s default values.
|
||||||
|
@ -19,6 +19,6 @@ Inbox ~/.mail/Inbox
|
|||||||
Channel gmail
|
Channel gmail
|
||||||
Far :gmail-remote:
|
Far :gmail-remote:
|
||||||
Near :gmail-local:
|
Near :gmail-local:
|
||||||
Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" "[Gmail]/Trash"
|
Patterns * ![Gmail]*
|
||||||
Create Both
|
Create Both
|
||||||
SyncState *
|
SyncState *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user