Mail setup

This commit is contained in:
Martin Sukany
2026-02-12 12:52:50 +01:00
parent 84329b6a7c
commit 3543f2f23d
4 changed files with 64 additions and 0 deletions

8
README Normal file
View File

@@ -0,0 +1,8 @@
# instalace mailu:
brew install mu isync msmtp
pak mbsync personal (musi existovat .mbsyncrc)
pak
mu init --maildir=~/.mail --my-address=martin@sukany.cz
mu index

View File

@@ -357,3 +357,42 @@ Funguje v libovolném textu, včetně Markdown linků (např. [x](./...))."
(setq org-idle-time 1.0) (setq org-idle-time 1.0)
;; mu4e
(add-to-list 'load-path (expand-file-name "/opt/homebrew/opt/mu/share/emacs/site-lisp/mu/mu4e"))
(after! mu4e
(setq mu4e-maildir "~/.mail"
mu4e-get-mail-command "mbsync personal"
mu4e-update-interval 300
mu4e-change-filenames-when-moving t
mu4e-view-show-images t))
(after! mu4e
(setq mu4e-maildir (expand-file-name "~/.mail")
mu4e-get-mail-command "mbsync personal"
mu4e-update-interval 300
mu4e-change-filenames-when-moving t
mu4e-view-show-images t
;; TADY je to důležité:
mu4e-sent-folder "/personal/Sent"
mu4e-drafts-folder "/personal/Drafts"
mu4e-trash-folder "/personal/Trash"
mu4e-refile-folder "/personal/Archive"))
(after! mu4e
(setq sendmail-program "msmtp"
message-send-mail-function #'message-send-mail-with-sendmail
mail-specify-envelope-from t
message-sendmail-envelope-from 'header))
(setq user-mail-address "martin@sukany.cz"
user-full-name "Martin Sukany")
(map! :map mu4e-view-mode-map
:localleader
"l l" #'org-store-link
"l i" #'org-insert-link)
(map! :map mu4e-headers-mode-map
:localleader
"l l" #'org-store-link
"l i" #'org-insert-link)

14
custom.el Normal file
View File

@@ -0,0 +1,14 @@
;;; -*- lexical-binding: t -*-
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(smtpmail-smtp-server "mailu.apps.sukany.cz")
'(smtpmail-smtp-service 465))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)

View File

@@ -52,6 +52,9 @@
tmux tmux
upload upload
:email
mu4e
:os :os
(:if (featurep :system 'macos) macos) (:if (featurep :system 'macos) macos)