aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/overlays/kookie/emacs/notmuch-rules/default.el
blob: 46175152acac7689cce66d4d63fa77c3dcf79e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
;; kookie-rules.el
;;   Configure notmuch searches and settings required to send mail
;;
;;
;; This file is part of LIBKOOKIE, a collection of nix expressions.
;; LIBKOOKIE is licensed under the GPL-3.0 (or later) -- see LICENSE

(provide 'notmuch-rules)

(setq mail-host-address "kookie.space")
(setq mml-enable-flowed t)
(setq mml-secure-openpgp-sign-with-sender t)
(setq mml-secure-smime-sign-with-sender t)

(setq notmuch-address-internal-completion '(received nil))
(setq notmuch-draft-save-plaintext nil)
(setq notmuch-fcc-dirs "Sent")
(setq notmuch-identities
      [
       '("Katharina Sabel <katharina.sabel@mailbox.org>")
       '("Katharina Fey <kookie@spacekookie.de")
       ])

;;; Configure saved searches
;; TODO: make this nicer?
(setq notmuch-saved-searches
      '((:name "INBOX" :query "folder:INBOX AND NOT tag:trash" :key "i" :count-query "folder:INBOX AND tag:unread AND NOT tag:trash")
        (:name "Sent" :query "folder:Sent OR from:kookie@spacekookie.de OR from:katharina.*@mailbox.org AND NOT tag:trash")
        (:name "Kookie" :query "folder:Collection/kookie AND NOT tag:trash" :count-query "folder:Collection/kookie tag:unread")
        (:name "Github*" :query "folder:Collection/github" :count-query "folder:Collection/github tag:unread")
        (:name "AfRA" :query "folder:Lists/afra" :count-query "folder:Lists/afra tag:unread")
        (:name "Hacklab" :query "folder:Lists/hacklab" :count-query "folder:Lists/hacklab tag:unread")
        (:name "Misc" :query "folder:Collection/misc AND NOT tag:trash" :count-query "folder:Collection/misc tag:unread")
        (:name "qaul-devel" :query "to:~qaul/community@lists.sr.ht AND NOT tag:trash" :count-query "to:~qaul/community@lists.sr.ht tag:unread")
        (:name "public-inbox" :query "folder:Lists/public-inbox AND NOT tag:trash" :count-query "folder:Lists/public-inbox AND tag:unread")
        (:name "dev-suite" :query "folder:Lists/dev-suite AND NOT tag:trash" :count-query "folder:Lists/dev-suite AND tag:unread")
        (:name "rust-cli" :query "folder:Lists/rust/cli-wg AND NOT tag:trash" :count-query "folder:Lists/rust/cli-wg AND tag:unread")
        (:name "Shopping" :query "folder:Collection/shopping" :count-query "folder:Collection/shopping AND tag:unread")))

;;; Search result format
(setq notmuch-search-result-format
      '(("date" . "%16s ")
        ("count" . "%-10s ")
        ("authors" . "%-24s")
        ("subject" . "      %s ")
        ("tags" . "(%s)")))

(setq notmuch-show-empty-saved-searches t)
(setq notmuch-show-logo nil)
(setq notmuch-wash-wrap-lines-length 80)
(setq send-mail-function 'sendmail-send-it)