diff options
Diffstat (limited to 'Mu4e.org')
-rw-r--r-- | Mu4e.org | 124 |
1 files changed, 0 insertions, 124 deletions
diff --git a/Mu4e.org b/Mu4e.org deleted file mode 100644 index 21ad1b7..0000000 --- a/Mu4e.org +++ /dev/null | |||
@@ -1,124 +0,0 @@ | |||
1 | #+TITLE: MU4E Configuration | ||
2 | #+PROPERTY: header-args:emacs-lisp :tangle .config/emacs/jd/jd-mu4e.el | ||
3 | |||
4 | * jd-mu4e.el | ||
5 | #+begin_src emacs-lisp | ||
6 | |||
7 | (add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e") | ||
8 | |||
9 | |||
10 | (use-package org-msg | ||
11 | :ensure t) | ||
12 | |||
13 | (use-package mu4e | ||
14 | :defer 20 | ||
15 | :ensure nil | ||
16 | :config | ||
17 | (require 'org-mu4e) | ||
18 | |||
19 | (setq mu4e-update-interval (* 10 60)) | ||
20 | (setq mu4e-get-mail-command "mbsync -a") | ||
21 | (setq mu4e-maildir "~/Mail") | ||
22 | |||
23 | (setq mu4e-completing-read-function #'ivy-completing-read) | ||
24 | |||
25 | (setq mu4e-change-filenames-when-moving t) | ||
26 | |||
27 | (setq mu4e-contexts | ||
28 | `(,(make-mu4e-context | ||
29 | :name "Abaks" | ||
30 | :match-func (lambda (msg) (when msg | ||
31 | (string-prefix-p "/abaks" (mu4e-message-field msg :maildir)))) | ||
32 | :vars '( | ||
33 | (user-full-name . "Jakub Dlugosz") | ||
34 | (user-mail-address . "jakub@abaks.pl") | ||
35 | (mu4e-sent-folder . "/abaks/Sent Items") | ||
36 | (mu4e-trash-folder . "/abaks/Trash") | ||
37 | (mu4e-drafts-folder . "/abaks/Drafts") | ||
38 | (mu4e-refile-folder . "/abaks/Archive") | ||
39 | (mu4e-sent-messages-behavior . sent) | ||
40 | )) | ||
41 | ,(make-mu4e-context | ||
42 | :name "Gmail" | ||
43 | :match-func (lambda (msg) (when msg | ||
44 | (string-prefix-p "/gmail" (mu4e-message-field msg :maildir)))) | ||
45 | :vars '( | ||
46 | (user-full-name . "Jakub Dlugosz") | ||
47 | (user-mail-address . "jdlugosz963@gmail.pl") | ||
48 | (mu4e-sent-folder . "/gmail/\[Gmail\]/Wys\&AUI-ane") | ||
49 | (mu4e-trash-folder . "/gmail/\[Gmail\]/Kosz") | ||
50 | (mu4e-drafts-folder . "/gmail/\[Gmail\]/Wersje\ robocze") | ||
51 | (mu4e-refile-folder . "/gmail/Archive") | ||
52 | (mu4e-sent-messages-behavior . sent) | ||
53 | )))) | ||
54 | |||
55 | (setq mail-user-agent 'mu4e-user-agent | ||
56 | message-send-mail-function 'smtpmail-send-it | ||
57 | smtpmail-smtp-server "smtp.abaks.pl" | ||
58 | smtpmail-local-domain "pl" | ||
59 | smtpmail-smtp-service 465 | ||
60 | smtpmail-stream-type 'ssl) | ||
61 | |||
62 | (mu4e t)) | ||
63 | |||
64 | (jd/leader-key-def | ||
65 | "m" '(:ignore t :which-key "mail") | ||
66 | "mm" 'mu4e | ||
67 | "mc" 'mu4e-compose-new) | ||
68 | |||
69 | |||
70 | (provide 'jd-mu4e) | ||
71 | |||
72 | #+end_src | ||
73 | |||
74 | * mbsyncrc | ||
75 | |||
76 | #+begin_src conf :tangle .mbsyncrc | ||
77 | IMAPStore abaks-remote | ||
78 | Host imap.abaks.pl | ||
79 | Port 143 | ||
80 | SSLType None | ||
81 | AuthMechs LOGIN | ||
82 | User jakub@abaks.pl | ||
83 | PassCmd "pass email/jakub@abaks.pl" | ||
84 | CertificateFile /etc/ssl/certs/ca-certificates.crt | ||
85 | |||
86 | MaildirStore abaks-local | ||
87 | Path ~/Mail/abaks/ | ||
88 | Inbox ~/Mail/abaks/INBOX | ||
89 | Subfolders Verbatim | ||
90 | |||
91 | Channel abaks | ||
92 | Far :abaks-remote: | ||
93 | Near :abaks-local: | ||
94 | Patterns INBOX * !Sync* | ||
95 | Expunge None | ||
96 | CopyArrivalDate yes | ||
97 | Sync All | ||
98 | Create Near | ||
99 | SyncState * | ||
100 | |||
101 | IMAPStore gmail-remote | ||
102 | Host imap.gmail.com | ||
103 | Port 993 | ||
104 | SSLType IMAPS | ||
105 | AuthMechs LOGIN | ||
106 | User jdlugosz963@gmail.com | ||
107 | PassCmd "pass email/jdlugosz963@gmail.com" | ||
108 | CertificateFile /etc/ssl/certs/ca-certificates.crt | ||
109 | |||
110 | MaildirStore gmail-local | ||
111 | Path ~/Mail/gmail/ | ||
112 | Inbox ~/Mail/gmail/INBOX | ||
113 | Subfolders Verbatim | ||
114 | |||
115 | Channel gmail | ||
116 | Far :gmail-remote: | ||
117 | Near :gmail-local: | ||
118 | Patterns INBOX * !Sync* | ||
119 | Expunge None | ||
120 | CopyArrivalDate yes | ||
121 | Sync All | ||
122 | Create Near | ||
123 | SyncState * | ||
124 | #+end_src | ||