2023-02-08 10:08:51 +01:00
|
|
|
(setq smtpmail-smtp-server "smtp.mailbox.org"
|
2023-01-31 16:25:55 +01:00
|
|
|
smtpmail-smtp-service 465
|
2023-02-11 16:57:18 +01:00
|
|
|
smtpmail-stream-type 'ssl
|
|
|
|
smtpmail-auth-credentials (expand-file-name "~/.authinfo.gpg")
|
2023-02-07 15:51:56 +01:00
|
|
|
mml-default-sign-method "pgpmime"
|
2023-02-07 22:10:26 +01:00
|
|
|
mml-default-encrypt-method "pgpmime"
|
|
|
|
mail-user-agent 'message-user-agent
|
2023-02-11 16:57:18 +01:00
|
|
|
message-directory "~/Maildir"
|
|
|
|
message-auto-save-directory "~/Maildir/Drafts"
|
|
|
|
message-send-mail-function 'smtpmail-send-it
|
2023-02-07 22:10:26 +01:00
|
|
|
compose-mail-user-agent-warnings nil)
|
2023-01-31 16:25:55 +01:00
|
|
|
|
|
|
|
;; (setq mml-secure-openpgp-signers '("86DB0F30F9F1661A54E21664C374817BE285268F"))
|
|
|
|
;; (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)
|
2021-12-24 16:21:16 +01:00
|
|
|
|
2023-01-31 16:25:55 +01:00
|
|
|
(defun mk/sign-email ()
|
|
|
|
;; Sign an Email using the key of the sender.
|
|
|
|
(interactive)
|
|
|
|
(setq mml-secure-openpgp-sign-with-sender t)
|
2023-02-07 22:10:26 +01:00
|
|
|
(mml-secure-message-sign-pgpmime))
|
2022-09-03 11:39:18 +02:00
|
|
|
|
2023-01-31 16:25:55 +01:00
|
|
|
(defun mk/encrypt-email ()
|
|
|
|
;; Encrypt an Email using the key of the recipient.
|
|
|
|
(interactive)
|
2023-02-07 22:10:26 +01:00
|
|
|
(mml-secure-message-encrypt-pgpmime))
|
|
|
|
|
2023-02-08 10:08:51 +01:00
|
|
|
(defvar mk/signature-name
|
2023-02-09 19:02:39 +01:00
|
|
|
(concat "Cheers, " user-full-name " " user-full-location "\n"))
|
2023-02-08 10:08:51 +01:00
|
|
|
|
2023-02-11 22:25:29 +01:00
|
|
|
(defvar mk/signature-gpg "GnuPG Key: https://meta.sr.ht/~marcuskammer.pgp\nFingerprint: 86DB 0F30 F9F1 661A 54E2 1664 C374 817B E285 268F")
|
|
|
|
|
|
|
|
(defvar user-full-location "(Nuremberg . Germany)")
|
|
|
|
|
2023-02-08 10:08:51 +01:00
|
|
|
(defun mk/signature-time ()
|
2023-02-07 22:10:26 +01:00
|
|
|
(format-time-string
|
2023-02-08 10:08:51 +01:00
|
|
|
"Written on: %a, %d %b %Y %T %z\n"
|
2023-02-07 22:10:26 +01:00
|
|
|
(org-time-string-to-time
|
|
|
|
(format-time-string
|
|
|
|
(cdr org-time-stamp-formats)))))
|
|
|
|
|
2023-02-08 10:08:51 +01:00
|
|
|
(defun mk/signature ()
|
|
|
|
(concat mk/signature-name (mk/signature-time) mk/signature-gpg))
|
|
|
|
|
2023-02-07 22:10:26 +01:00
|
|
|
(use-package message
|
|
|
|
:ensure nil
|
2023-02-08 10:08:51 +01:00
|
|
|
:hook (message-signature-setup . (lambda () (setf message-signature (mk/signature)))))
|
2023-02-07 22:10:26 +01:00
|
|
|
|
2023-02-11 18:38:14 +01:00
|
|
|
(add-hook 'mail-send-hook #'ispell-message)
|
|
|
|
(add-hook 'message-send-hook #'ispell-message)
|
|
|
|
|
2023-02-07 22:10:26 +01:00
|
|
|
(when (eq system-type 'gnu/linux)
|
|
|
|
(use-package mu4e
|
|
|
|
:ensure nil
|
2023-02-08 10:08:51 +01:00
|
|
|
:hook (mu4e-compose-pre . (lambda () (setf mu4e-compose-signature (mk/signature))))
|
2023-02-07 22:10:26 +01:00
|
|
|
:custom
|
|
|
|
(mu4e-change-filenames-when-moving t)
|
|
|
|
(mu4e-drafts-folder "/Drafts")
|
|
|
|
(mu4e-get-mail-command "mbsync -a")
|
|
|
|
(mu4e-headers-date-format "%Y-%m-%d %H:%M")
|
|
|
|
(mu4e-refile-folder "/Archive")
|
|
|
|
(mu4e-sent-folder "/Sent")
|
|
|
|
(mu4e-trash-folder "/Trash")
|
|
|
|
(mu4e-split-view 'horizontal)
|
|
|
|
(mu4e-update-interval (* 10 60))))
|
2023-02-09 10:08:10 +01:00
|
|
|
|
|
|
|
(use-package gnus
|
|
|
|
:ensure nil
|
|
|
|
:hook (gnus-summary-prepare . gnus-summary-sort-by-most-recent-date)
|
|
|
|
:custom
|
|
|
|
(gnus-inhibit-startup-message t)
|
|
|
|
(gnus-check-new-newsgroups nil)
|
|
|
|
(gnus-select-method '(nntp "news.individual.de"
|
|
|
|
(nntp-open-connection-function nntp-open-ssl-stream)
|
|
|
|
(nntp-port-number 563)))
|
|
|
|
:config
|
|
|
|
(add-to-list 'gnus-secondary-select-methods
|
|
|
|
'(nnimap "mailbox"
|
|
|
|
(nnimap-address "imap.mailbox.org")
|
2023-02-10 23:00:14 +01:00
|
|
|
(nnimap-inbox "INBOX")
|
2023-02-11 16:57:18 +01:00
|
|
|
(nnimap-server-port 993)
|
|
|
|
(nnimap-stream ssl)
|
2023-02-10 23:00:14 +01:00
|
|
|
(nnimap-authinfo-file "~/.authinfo.gpg"))))
|