summaryrefslogtreecommitdiffstats
path: root/Mail.org
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-07-02 15:52:32 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-02 15:52:32 +0200
commit47a2b2c8caff2a59ab6d67ffae837811fc24ccf5 (patch)
tree4cc884e518367f75440e20d075af94a3c480b90f /Mail.org
parente14390858839d7fd56b579d6489ea7bc88a5e530 (diff)
downloaddotfiles-47a2b2c8caff2a59ab6d67ffae837811fc24ccf5.tar.gz
dotfiles-47a2b2c8caff2a59ab6d67ffae837811fc24ccf5.zip
Remove old org config files.
Diffstat (limited to 'Mail.org')
-rw-r--r--Mail.org142
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
95IMAPStore abaks-remote
96Host imap.abaks.pl
97Port 143
98SSLType None
99AuthMechs LOGIN
100User jakub@abaks.pl
101PassCmd "pass email/jakub@abaks.pl"
102CertificateFile /etc/ssl/certs/ca-certificates.crt
103
104MaildirStore abaks-local
105Path ~/Mail/abaks/
106Inbox ~/Mail/abaks/INBOX
107Subfolders Verbatim
108
109Channel abaks
110Far :abaks-remote:
111Near :abaks-local:
112Patterns INBOX * !Sync*
113Expunge None
114CopyArrivalDate yes
115Sync All
116Create Near
117SyncState *
118
119IMAPStore gmail-remote
120Host imap.gmail.com
121Port 993
122SSLType IMAPS
123AuthMechs LOGIN
124User jdlugosz963@gmail.com
125PassCmd "pass email/jdlugosz963@gmail.com"
126CertificateFile /etc/ssl/certs/ca-certificates.crt
127
128MaildirStore gmail-local
129Path ~/Mail/gmail/
130Inbox ~/Mail/gmail/INBOX
131Subfolders Verbatim
132
133Channel gmail
134Far :gmail-remote:
135Near :gmail-local:
136Patterns INBOX * !Sync*
137Expunge None
138CopyArrivalDate yes
139Sync All
140Create Near
141SyncState *
142#+end_src