summaryrefslogtreecommitdiffstats
path: root/neomuttrc
blob: e7d93626f9c5b84c4a45d82b7cd08625c9da16fc (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#
# Starter neomuttrc file, with just a few suggestions and settings.
#
# This file purposely doesn't include hooks, keybinding, macros, colors, etc.
# Read the manual, explore, and have fun!
#

###############
# Identity
#
set realname = "Matthew Lemon"
set from = "matt@matthewlemon.com"

# If you have another address:
#alternates "^matthewlemon@fastmail\.fm$"

# Or, if you use the entire domain:
#alternates "@example\.com$"
#set reverse_name

###############
# Example: local mailboxes
#
# Some people use mbsync or getmail to retrieve their mail locally.
#
#set folder = ~/Mail           # This has the shortcut '+' or '='
#set spoolfile = "+inbox"      # This has the shortcut '!'
#set record = "+sent"
#set trash = "+trash"
#set postponed = "+drafts"
#
#mailboxes ! +neomutt +family +work

###############
#
set smtp_url = "smtps://matthewlemon@fastmail.com@smtp.fastmail.com:465/"
set smtp_pass = "f7undhfsaqztrhxp"
set imap_user = "matthewlemon@fastmail.fm"
set imap_pass = "f7undhfsaqztrhxp"
set folder = "imaps://imap.fastmail.com:993"
set smtp_authenticators = 'sasl:gssapi:cram-md5:login'
#set sendmail = "msmtp -a matthewlemon"
#set sendmail_wait = 0
set record = "Sent\ Items"

mailboxes "+INBOX +Archive"

# To avoid storing your password in the .neomuttrc:
# echo -n "$(read -s;echo -n "$REPLY")" | gpg --encrypt -r 0x1234567890ABCDEF > ~/.neomutt/account.gpg
# Previous command won't work in some shells. You can use the following:
# echo -n 'mypassword' | gpg --encrypt -r 0x1234567890ABCDEF > ~/.neomutt/account.gpg
# !!! But be warned your password will be saved to shell history.
#set imap_pass = "`gpg --batch -q --decrypt ~/.password-store/Logins/fastmail.com.gpg`"
#set imap_pass = "`pass Logins/fastmail-neomutt`"

#set folder = imaps://imap.fastmail.com/
set spoolfile = "+INBOX"
unset record                # Gmail auto-stores in "+[Gmail].Sent Mail"
unset trash                 # Unset, deletion will remove labels
set postponed = "[INBOX].Drafts"

source ~/neomutt/colours

set mail_check = 60

###############
# Pager settings
#
ignore *
unignore From Message-ID Date To Cc Bcc Subject

set pager_stop
unset markers

# Prefer plain text to html.
# However, for brain dead clients that bundle attachments inside a
# multipart/alternative, prefer that alternative.
alternative_order multipart/mixed multipart/related text/plain

# Consult mime.types for determining types of these attachments
mime_lookup application/octet-stream

# This requires a ~/.mailcap entry with the copiousoutput flag, such as:
# text/html; lynx -dump -width ${COLUMNS:-80} %s; nametemplate=%s.html; copiousoutput
auto_view text/html

###############
# Index settings
#
set quit = ask-yes
set sort = threads

# Remember to `mkdir -p ~/.neomutt/hcache` first:
set header_cache= "~/.neomutt/hcache"

###############
# Message composition settings
#
set edit_headers

# set editor = "emacsclient -a emacs -t"
# set editor = "vim"

set mime_type_query_command = "xdg-mime query filetype"

# msmtp is a solid SMTP client.
# neomutt also has built-in SMTP, or you can use an MTA like exim4 or postfix.
set sendmail = "/usr/bin/msmtp"

# lbdb is a versatile contact query tool.
# Invoke via ctrl-t in an address prompt
set query_command = "/usr/bin/lbdbq"

###############
# GnuPG
#
unset crypt_use_gpgme
#source /usr/local/share/doc/neomutt/samples/gpg.rc
set pgp_default_key = "0x1234567890ABCDEF"
set crypt_opportunistic_encrypt
set postpone_encrypt