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