-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.muttrc
112 lines (98 loc) · 5.71 KB
/
.muttrc
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
# _ _
# _ __ ___ _ _| |_| |_ _ __ ___
# | '_ ` _ \| | | | __| __| '__/ __|
# | | | | | | |_| | |_| |_| | | (__
# |_| |_| |_|\__,_|\__|\__|_| \___|
#
source "~/.mutt/colorscheme"
source "~/.mutt/keybindings"
# Encrypted details
# Retrieve from lastpass
set my_exchange_user = `lpass show --user 'Exchange 365'`
set my_exchange_pass = `lpass show --password 'Exchange 365'`
set my_exchange_name = "`lpass show --field=fromName 'Exchange 365'`"
set my_exchange_domain = `lpass show --field=domainName 'Exchange 365'`
# General
set editor = "nvim +8" # start nvim after header
set mailcap_path = ~/.mutt/mailcap # tells mutt how to handle content types
set quit # don't ask, just quit
set delete # don't ask, just delete
# Index
set sort = reverse-last-date-received # sort last received at top
unset uncollapse_jump # don't collapse on an unread message
# Pager
set pager_index_lines = 10 # number of index lines to show
set pager_context = 5 # number of context lines to show
set pager_stop # don't go to next message automatically
set menu_scroll # scroll in menus
set smart_wrap # don't split words
set tilde # show tildes like in vim
unset markers # don't put '+' at the beginning of wrapped lines
set status_on_top # display status on top rather than bottom
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html
auto_view text/html
# Composing mail
set realname = $my_exchange_name # my name
set envelope_from # which from
set edit_headers # edit headers while composing
set fast_reply # skip to compose while replying
set include # include message in replies
set reply_to # reply to "reply-to" field
set reverse_name # reply as "to" name
set reverse_realname # use realname for reply if possible
set fcc_attach # save attachments with the body
set forward_quote # include message in forwards
unset mime_forward # forward attachments as part of the body
set mime_forward_rest # include attachments
set forward_format = "Fwd: %s" # string to use in subject
set attribution = "On %d, %n wrote:" # attribution in reply
set forward_decode # decode when forwarding
# Formats
set date_format = "%a %m/%d/%Y %I:%M %p"
set index_format = "%3C %?X?A& ? %S %D • %-25.25L %s %> %c"
set pager_format = "Reading message %C of %m %> %lL [%P]"
set folder_format = "%2C %t %N %8s %d %f"
set status_format = " %?M?%M/?%m Mails %?n?%n new, ?%?u?%u unread, ?%?p?%p drafts, ?%?t?%t +tagged, ?%?d?%d deleted, ?[%f %l] %?b?%b unread messages. ?%> %V [%P]"
set alias_format = "%4n %t %-20a %r"
set sidebar_format = "%B %* [%?N?%N / ?%S]"
# Headers to show
ignore * # ignore all headers
unignore from: to: cc: date: subject: # show only these
hdr_order from: to: cc: date: subject: # and in this order
# Sidebar
# set sidebar_visible # show sidebar
set sidebar_short_path # shorten path
set sidebar_folder_indent # indent folders
set sidebar_width = 25 # width in chars
set sidebar_divider_char = ' | ' # divider char
set sidebar_indent_string = ' '' # indent str
# Server config
## IMAP config
set imap_user = $my_exchange_user
set imap_pass = $my_exchange_pass
set folder = "imaps://outlook.office365.com/"
set spoolfile = "+INBOX"
set postponed = "+Drafts"
set record = "+Sent Items"
set trash = "+Deleted Items"
mailboxes
set imap_check_subscribed
set imap_list_subscribed
set imap_idle
set timeout = 15
set mail_check = 300
set imap_keepalive = 180
unset mark_old
set ssl_use_sslv3
## SMTP config
set from = $my_exchange_user
set smtp_pass = $my_exchange_pass
set hostname = $my_exchange_domain
set smtp_url = "smtp://[email protected]:587/"
set ssl_force_tls
set smtp_authenticators = "login"
# Cache/storage
set header_cache = "$XDG_CACHE_HOME/mutt/office365/headers"
set message_cachedir = "$XDG_CACHE_HOME/mutt/office365/bodies"
set certificate_file = "~/.mutt/certificates"