|
|
@ -952,8 +952,13 @@ As an alternative if I'm not happy with selectrum & co |
|
|
|
* Emails |
|
|
|
Requires on system |
|
|
|
- isync to sync emails between host and local |
|
|
|
- notmuch to index emails |
|
|
|
- mu4e (if using mu4e) |
|
|
|
- mu / mu4e4e (apt nstall mu4e/bookworm-backports) |
|
|
|
|
|
|
|
After installing mu4e it needs to be initialized |
|
|
|
#+begin_src shell :tangle no |
|
|
|
mu init --maildir=/path/to/mail/folder --my-address=mu@adress.com --my-address=another@adress.com... |
|
|
|
mu index |
|
|
|
#+end_src |
|
|
|
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
;(use-package notmuch |
|
|
@ -961,27 +966,43 @@ Requires on system |
|
|
|
(use-package mu4e |
|
|
|
:if *sys/linux* |
|
|
|
:ensure nil |
|
|
|
:after (org)) |
|
|
|
#+end_src |
|
|
|
* COMMENT mu4e |
|
|
|
#+begin_src emacs-lisp |
|
|
|
;;https://github.com/progfolio/.emacs.d#mu4e |
|
|
|
(use-package mu4e |
|
|
|
:ensure `(mu4e :host github :files ("mu4e/*.el" "build/mu4e/mu4e-meta.el" "build/mu4e/mu4e-config.el" "build/mu4e/mu4e.info") :repo "djcb/mu" |
|
|
|
:main "mu4e/mu4e.el" |
|
|
|
:pre-build (("./autogen.sh" "-Dtests=disabled") |
|
|
|
("ninja" "-C" "build") |
|
|
|
(make-symbolic-link (expand-file-name "./build/mu/mu") |
|
|
|
(expand-file-name "~/bin/mu") 'ok-if-exists)) |
|
|
|
:build (:not elpaca--compile-info) |
|
|
|
:post-build (("mu" "init" "--quiet" "--maildir" ,(concat (getenv "HOME") "/Documents/emails") |
|
|
|
; "--my-address=" ,secret-personal-email-address |
|
|
|
; "--my-address=" ,secret-work-email-address) |
|
|
|
; "--my-address=" ,secret-personal-email-address |
|
|
|
"--my-address=marc.pohling@mail.de") |
|
|
|
("mu" "--quiet" "index"))) |
|
|
|
:commands (mu4e mu4e-update-index)) |
|
|
|
:after (org) |
|
|
|
:config |
|
|
|
;; this is set to 't' to avoid mail syncing issues when using mbsync |
|
|
|
(setq mu4e-change-filenames-when-moving t) |
|
|
|
|
|
|
|
(setq mu4e-update-interval (* 10 60)) |
|
|
|
(setq mu4e-get-mail-command "mbsync -a") |
|
|
|
(setq mu4e-maildir "/mnt/archiv/Dokumente/email") |
|
|
|
|
|
|
|
(setq mu4e-contexts |
|
|
|
`( ,(make-mu4e-context |
|
|
|
:name "mail.de" |
|
|
|
:enter-func (lambda () (mu4e-message "switch to mail.de context")) |
|
|
|
:match-func (lambda (msg) |
|
|
|
(when msg |
|
|
|
(string-match-p "^/mailde" (mu4e-message-field msg :maildir)))) |
|
|
|
:vars '((user-mail-address . "marc.pohling@mail.de") |
|
|
|
(user-full-name . "Marc Pohling") |
|
|
|
(mu4e-drafts-folder . "/mailde/drafts") |
|
|
|
(mu4e-sent-folder . "/mailde/sent") |
|
|
|
(mu4e-refile-folder . "/mailde/archive") |
|
|
|
(mu4e-trash-folder . "/mailde/trash"))) |
|
|
|
,(make-mu4e-context |
|
|
|
:name "web.de" |
|
|
|
:enter-func (lambda () (mu4e-message "switch to web.de context")) |
|
|
|
:match-func (lambda (msg) |
|
|
|
(when msg |
|
|
|
(string-match-p "^/mailde" (mu4e-message-field msg :maildir)))) |
|
|
|
:vars '((user-mail-address . "marc.pohling@web.de") |
|
|
|
(user-full-name . "Marc Pohling") |
|
|
|
(mu4e-drafts-folder . "/webde/drafts") |
|
|
|
(mu4e-sent-folder . "/webde/sent") |
|
|
|
(mu4e-refile-folder . "/webde/archive") |
|
|
|
(mu4e-trash-folder . "/webde/trash"))))) |
|
|
|
) |
|
|
|
#+end_src |
|
|
|
|
|
|
|
* outlook |
|
|
|
In outlook a macro is necessary, also a reference to FM20.DLL |
|
|
|
(Microsoft Forms 2.0 Object Library, in c:\windows\syswow64\fm20.dll) |
|
|
|