-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfastmail.muttrc
63 lines (54 loc) · 3.07 KB
/
fastmail.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
set ssl_force_tls
set imap_user="$my_fastmail_user"
set imap_pass="$my_fastmail_pass"
# See <https://www.fastmail.com/help/technical/servernamesandports.html#email>.
set folder='imaps://imap.fastmail.com:993/'
# From <https://wiki.archlinux.org/title/Mutt#spoolfile>: "The spoolfile is the folder
# where your (unfiltered) e-mail arrives." Setting this to "+Inbox" or "+INBOX" both
# works. I think the empty string works as well. Not setting it at all doesn't. The "+"
# in something like "+Inbox" is expanded to the value of "$folder". It's also possible to
# use "=" instead of "+". See <https://neomutt.org/guide/advancedusage.html#shortcuts>.
set spoolfile='+INBOX'
set postponed='+Drafts'
set trash='+Trash'
# The "!" is expanded to "$spoolfile", i.e., "+INBOX". I previously used the
# `imap_check_subscribed` setting and didn't use the `mailboxes` command, but I ran into
# some problems once I started using multiple accounts.
mailboxes ! +Archive +Drafts +Sent +Spam +Trash
# Configure native SMTP support.
set smtp_url="smtps://[email protected]:465"
set smtp_pass="$my_fastmail_pass"
# Set the default "from" address (file:///usr/share/doc/neomutt/manual.html#from).
set from="$my_fastmail_from"
# When replying to a message that was sent to [email protected], ignore the "from"
# configuration variable and reply from [email protected]. See
# <file:///usr/share/doc/neomutt/manual.html#reverse-name> and
# <file:///usr/share/doc/neomutt/manual.html#reverse-realname> and
# <file:///usr/share/doc/neomutt/manual.html#alternates>.
set reverse_name
# file:///usr/share/doc/neomutt/manual.html#reverse-name
unset reverse_realname
# file:///usr/share/doc/neomutt/manual.html#alternates
alternates '@meribold.org$'
# We set `copy` here even though that's the default because we unset it in the Gmail
# configuration file (Gmail copies sent messages to "[Gmail]/Sent Mail" on its own).
set copy
# The default, "~/sent", means that a big text file called "sent" will be created in $HOME
# and all sent messages will simply be appended to it. "+Sent" is very different because
# "+" is expanded to the value of $folder.
set record='+Sent'
macro index,pager e "<save-message>=Archive<enter><enter>"
macro index,pager i "<save-message>=INBOX<enter><enter>"
macro index,pager gi "<change-folder>=INBOX<enter>"
macro index,pager gs "<change-folder>=Starred<enter>"
macro index,pager gt "<change-folder>=Sent<enter>"
macro index,pager gd "<change-folder>=Drafts<enter>"
macro index,pager ga "<change-folder>=Archive<enter>"
# This is invoked *very* often so it's best to avoid backtick expansion for performance
# reasons. It's better to use <file:///usr/share/doc/neomutt/manual.html#set-myvar>. On
# the other hand, using double quotes around the hook's command means that backtick
# expansion would happen when this file is read, not when the hook is executed, and the
# file is not read very often. Expansion is only shifted to hook execution when single
# quotes are used around the hook's command.
account-hook $folder "set imap_user='$my_fastmail_user' imap_pass='$my_fastmail_pass'"
# vim: ft=neomuttrc