I am trying mu4u
for Gmail and an Exchange account.
;;; Mail directory shortcuts
(setq mu4e-maildir-shortcuts
'(("/Gmail/INBOX" . ?g)
("/Exchange/INBOX" . ?a)))
;;; Bookmarks
(setq mu4e-bookmarks
`(("flag:unread AND NOT flag:trashed AND NOT (maildir:/[Gmail].Trash OR maildir:/Trash)" "Unread messages" ?u)
("date:today..now" "Today's messages" ?t)
("date:7d..now" "Last 7 days" ?w)
("mime:image/*" "Messages with images" ?p)
(,(mapconcat 'identity
(mapcar
(lambda (maildir)
(concat "maildir:" (car maildir)))
mu4e-maildir-shortcuts) " OR ")
"All inboxes" ?i)))
)
On mu4e
main view, hitting bu
brings me unread email from all over places including Trash folders.
How do I change it so that I don't see messages that are trashed in Trash folders or marked spam?