aboutsummaryrefslogtreecommitdiff
path: root/+email.el
blob: ade568c0ce9e92333ec5bc42d548408a709b8e7f (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
;;; $DOOMDIR/+email.el -*- lexical-binding: t; -*-
(setq auth-sources '("~/.authinfo.gpg")
      auth-source-cache-expiry nil)

(setq gnus-select-method
      '(nnimap "disroot"
        (nnimap-address "disroot.org")
        (nnimap-server-port 993)
        (nnimap-stream ssl)))

(setq smtpmail-smtp-server "disroot.org"
      smtpmail-smtp-service 587
      smtpmail-stream-type 'starttls
      message-send-mail-function #'smtpmail-send-it)

(setq user-mail-address "roughlynamed@disroot.org"
      user-full-name "Magdalena Szweda")

(setq gnus-message-archive-method '(nnimap "disroot")
      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-setup-hook #'message-insert-signature)
(add-hook 'message-send-hook #'mml-secure-message-sign-pgpmime)

(setq message-signature
      "\n--\nMagdalena Szweda\nhttps://roughlynamed.net\nPGP: 3258 B28C 124A B089 1D6C  9E92 9B72 909E EF00 CBD0")