aboutsummaryrefslogtreecommitdiff
path: root/+email.el
blob: df06bea982910c9d4209cec5d2e5b0df615cb1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
;;; $DOOMDIR/+email.el -*- lexical-binding: t; -*-
(setq auth-sources '("~/.authinfo.gpg")
      auth-source-cache-expiry nil)
(setq gnus-permanently-visible-groups ".")
(setq gnus-select-method
      '(nnimap "migadu"
        (nnimap-address "imap.migadu.com")
        (nnimap-server-port 993)
        (nnimap-stream ssl)))
(setq smtpmail-smtp-server "smtp.migadu.com"
      smtpmail-smtp-service 465
      smtpmail-stream-type 'ssl
      message-send-mail-function #'smtpmail-send-it)

(setq user-mail-address "hi@roughlynamed.net"
      user-full-name "Magdalena Szweda")

(setq gnus-message-archive-method '(nnimap "migadu")
      gnus-message-archive-group "Sent")

(setq gnus-large-newsgroup nil
      gnus-fetch-old-headers t
      nnmail-expiry-target "Trash")

(setq mml-secure-openpgp-signers
      '("3258B28C124AB0891D6C9E929B72909EEF00CBD0")
      mml-secure-openpgp-sign-with-sender t)

(add-hook 'message-send-hook #'mml-secure-message-sign-pgpmime)
(with-eval-after-load "mm-decode"
  (add-to-list 'mm-discouraged-alternatives "text/html")
  (add-to-list 'mm-discouraged-alternatives "text/richtext"))
(setq message-signature-file "~/.signature")
(map! :map message-mode-map
      :localleader
      "s" #'message-send-and-exit
      "S" #'message-send)