-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.muttrc
111 lines (93 loc) · 4.2 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
############################################################
# Neomutt Configuration 2024.10.10
# ~/.muttrc
# @author Minoru Yamada <[email protected]>
# Sources for Auth Configuration ---------------------------
source "~/.mutt/password.rc"
# For japanese Environment
# see "https://emaillab.org/mutt/1.4/doc/usage-japanese.ja.html#id2432623"
set send_charset="iso-2022-jp:utf-8"
set thorough_search=yes ## enable body search in Japanese
set rfc2047_parameters=yes ## filename for japanese
# Basic Configuration --------------------------------------
set ssl_starttls = yes
set ssl_force_tls = yes
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set imap_check_subscribed
set hostname = gmail.com
set mail_check = 60
set timeout = 300
set imap_keepalive = 300
set postponed = "+[Gmail]/Drafts"
set record = "+[Gmail]/Sent Mail"
set header_cache=~/.mutt/cache/headers
set certificate_file=~/.mutt/certificates
set signature =~/.mutt/signature
set move = no
set include
set sort = 'threads'
set sort_aux = 'reverse-last-date-received'
set auto_tag = yes
ignore "Authentication-Results:"
ignore "DomainKey-Signature:"
ignore "DKIM-Signature:"
hdr_order Date From To Cc
set pager_index_lines=8
bind editor ^T complete
bind editor <space> noop
# mailcap
set mailcap_path = ~/.mutt/mailcap
# Print Command
set print_command="nkf -em | e2ps -size 11 -head muttmail | lpr"
# notify-send ----------------------------------------------
set new_mail_command="notify-send --icon=mail-message-new 'New Email' '%n new messages, %u unread.' &"
# Open URL using w3m ---------------------------------------
macro index,pager \cb ": unset wait_key; set pipe_decode\n|w3m\n: \
set wait_key; unset pipe_decode\n" "call w3m to extract URLs out of a message"
# Change the following line to a different editor you prefer.
set editor="emacsclient"
#set editor="vim"
# addressbook use Abook
set query_command= "abook --mutt-query '%s'"
macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to Abook"
bind editor <Tab> complete-query
# Sidebar Patch --------------------------------------------
set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
# set sidebar_visible = yes
set sidebar_width = 28
# Status Bar -----------------------------------------------
set status_chars = " *%A"
set status_format = "---[ Folder: %f ]---[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]---%>-%?p?( %p postponed )?---"
# Index View Options ---------------------------------------
set index_format="%4C %Z %<[y?%<[d?%[%H:%M ]&%[%m/%d (%a) %H:%M]>&%[%Y/%m/%d %H:%M]> %-15.15L (%?l?%4l&%4c?) %s"
set sort = threads # like gmail
set sort_aux = reverse-last-date-received # like gmail
set uncollapse_jump # don't collapse on an unread message
set sort_re # thread based on regex
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
# Pager View Options ---------------------------------------
set pager_index_lines = 8 # number of index lines to show
set pager_context = 3 # number of context lines to show
set pager_stop # don't go to next message automatically
set menu_scroll # scroll in menus
set tilde # show tildes like in vim
unset markers # no ugly plus signs
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html
# Saner copy/move dialogs
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
# Sidebar Navigation ---------------------------------------
bind index,pager ] sidebar-next
bind index,pager [ sidebar-prev
bind index,pager ^ sidebar-open
bind index,pager \cv sidebar-toggle-visible
# Index Key Bindings ---------------------------------------
bind index,attach g first-entry # Go to first entry
bind index,attach G last-entry # Go to last entry
bind index,pager b previous-page # Go to previous page
# Color settings for mutt --------------------------------
source ~/.mutt/dracula.muttrc
# .muttrc ends here
############################################################