~tardypad/dotfiles

ref: 7dd5e02494e2821ff6b4fd5758a590ef03b5403b dotfiles/packages/neomutt/config.d/general.mutt -rw-r--r-- 2.2 KiB
7dd5e024 — Damien Tardy-Panis add mako package config 3 years ago
                                                                                
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
# define credentials variables for each account
source "gpg --quiet --decrypt ~/.config/neomutt/config.d/accounts/gmail_work.gpg |"
source "gpg --quiet --decrypt ~/.config/neomutt/config.d/accounts/gmail_perso.gpg |"
source "gpg --quiet --decrypt ~/.config/neomutt/config.d/accounts/gandi.gpg |"

# set config per account
account-hook "$my_gmail_perso_email" "set imap_user=$my_gmail_perso_email imap_pass=$my_gmail_perso_password"
account-hook "$my_gmail_work_email" "set imap_user=$my_gmail_work_email imap_pass=$my_gmail_work_password"
account-hook "$my_gandi_email" "set imap_user=$my_gandi_email imap_pass=$my_gandi_password"
folder-hook . unmailboxes *
folder-hook "$my_gmail_perso_email" source "~/.config/neomutt/config.d/accounts/gmail_perso.mutt"
folder-hook "$my_gmail_work_email" source "~/.config/neomutt/config.d/accounts/gmail_work.mutt"
folder-hook "$my_gandi_email" source "~/.config/neomutt/config.d/accounts/gandi.mutt"

# switch to default account
source "~/.config/neomutt/config.d/accounts/gmail_perso.mutt"

# define some files and folders location
set header_cache = "~/.cache/neomutt/headers"
set message_cachedir = "~/.cache/neomutt/bodies"
set mailcap_path = "~/.config/neomutt/config.d/mailcap"
set tmpdir = "~/.cache/neomutt/tmp"

# view html mail directly in pager
auto_view text/html

# prefer plain text over html
alternative_order text/plain text/enriched text/html

# don't wait for a key press after external commands
set wait_key = no

# don't ask for confirmation to delete mail on closing or synchronizing
set delete = yes

# do not pause to display informational message when switching folder
set sleep_time = 0

# periodically calculate message statistics of mailbox
# (needed for sidebar display of new mails count)
set mail_check_stats = yes

# Better display of message
set text_flowed = yes

# show headers while composing message
set edit_headers = yes

# skip recipients and subject directly to compose when replying
set fast_reply = yes

# ask fo CC before editing
set askcc = yes

# subject format for forwards
set forward_format = "Fwd: %s"

# include message in replies
set include = yes

# include message in forwards
set forward_quote = yes

# automatically apply index function to all tagged messages if any
set auto_tag = yes