+.config/yt-dlp.conf
[nethome.git] / .muttrc.addons
1 # System-wide personalization for Mutt
2 ######################################
3
4 # '!' an '=' are expand only as the very first characters.
5 # regexes are processed.
6 # '$' must follow alpha or '{' to get interpreted as a variable.
7 folder-hook "."                  set sort=threads;set pager_index_lines=10
8 folder-hook "!$"                 set sort=mailbox-order;push "*<Tab>";set pager_index_lines=0
9 folder-hook "=(=|err|rhbug)"     set sort=mailbox-order;push "*<Tab>";set pager_index_lines=0
10 folder-hook "=(sent|spam|input)" set sort=mailbox-order;push "*";set pager_index_lines=0
11 bind index <Tab> next-new
12 bind pager <Tab> next-new
13 macro index <Esc>1 "/~N !~h^\"In-Reply-To:\"\n"
14 bind index <Esc><Tab> previous-new
15 bind pager <Esc><Tab> previous-new
16 bind index \` next-unread
17 bind pager \` next-unread
18 bind index <Esc>\` previous-unread
19 bind pager <Esc>\` previous-unread
20 unset strict_threads
21 # tw=78 is for gq and RFC 2822 section 2.1.1.
22 set editor="vim -c 'set noai' -c 'set ts=8' -c 'set tw=78'"
23 set send_charset="us-ascii:utf-8"
24 set charset="utf-8"
25 set autoedit
26 set auto_tag
27 set history=100
28 set include=yes
29 unset metoo
30 set mime_fwd
31 set forward_format="Fwd: [%a] %s"
32 set move=no
33 set pager_context=1
34 set pager_stop
35 set pop_delete
36 set record=+sent
37 set reverse_alias
38 set status_format="---%h:%f [%M %nN %tT %dD %lB]%>-%v---"
39 #set web_browser="lynx %s"
40 set pager_format="-%S- [%l lines, %c] %C/%T: %-20.20n   %s"
41 set status_on_top
42 set fcc_clear
43 set rfc2047_parameters
44 unset save_empty
45 set read_inc=1000
46 set write_inc=1000
47 unset confirmappend
48 unset confirmcreate
49 set reply_to=ask-yes
50 set thorough_search
51 set abort_unmodified=no
52 set date_format="!%a, %d %b %Y %H:%M:%S %z"     # RFC 2822: 3.3.
53 # FIXME: %D not needed: RFC 2822: 3.3: "converted" can IMO incl. timezone
54 # but %d will place +0000 for %z and thus brokes the timestamp
55 set attribution="On %D, %n wrote:"
56 unset markers
57 # Mailman; FIXME: Patch Mutt to extend it multiline.
58 color body brightred default "^_______________________________________________\r?\n$"
59 macro index <Esc>m "l~N|~O\n"
60 macro pager <Esc>f ":set pager_index_lines=0\n
61 macro pager <Esc>g ":set pager_index_lines=10\n"
62 set user_agent
63 set abort_noattach=ask-yes
64
65 # https://unix.stackexchange.com/a/42714/296319
66 auto_view text/html                                   # view html automatically
67 alternative_order text/plain text/enriched text/html  # save html for last
68 bind attach <return>    view-mailcap
69
70 # Mail command
71 ##############
72 bind index \ca mail
73 macro index M ":set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^a" "DSN compose of a new mail message"
74 macro index m ":unset dsn_return dsn_notify\n^a" "Standard compose of a new mail message"
75 bind index \cb reply
76 macro index R ":set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^b" "DSN compose of a reply"
77 macro index r ":unset dsn_return dsn_notify\n^b" "Standard compose of a reply"
78 # quote 'macro' argument to prevent: macro: too many arguments
79 # `spamassassin {--report|--revoke}' calls `sa-learn {--spam|--ham}' automatically.
80 set pipe_split
81 folder-hook "."     "macro index S \":unset wait_key\n|spamassassin --report&\n:set wait_key\ns=spamo-mutt\n\""
82 folder-hook "=spam" "macro index S \":unset wait_key\n|spamassassin --report&\n:set wait_key\nWN\ct~T\n\""
83 folder-hook "."     "macro pager S \":unset wait_key\n|spamassassin --report&\n:set wait_key\ns=spamo-mutt\n\""
84 folder-hook "=spam" "macro pager S \":unset wait_key\n|spamassassin --report&\n:set wait_key\n\""
85 folder-hook "."     "macro index H \":unset wait_key\n|spamassassin --revoke \n:set wait_key\nWN\ct~T\n\""
86 folder-hook "."     "macro pager H \":unset wait_key\n|spamassassin --revoke \n:set wait_key\n\""
87 macro editor \ew "^a  [^e]^a"
88
89 # GPG
90 #####
91 source ~/.muttrc-gpg.rc
92 unset pgp_show_unusable
93 set pgp_replyencrypt
94 set pgp_replysignencrypted
95
96 # Ignore headers
97 ################
98 unignore *
99 ignore received: content-transfer-encoding: content-length: Content-Disposition:
100 ignore mime-version: status: x-status: sender:
101 ignore references: lines: x-authentication-warning:
102 ignore list-help: list-subscribe: list-unsubscribe: list-post:
103 ignore x-loop: errors-to: x-beenthere: X-Mailman-Version: X-Sieve:
104 ignore x-mimetrack: priority: x-priority: importance: precedence: x-mime-autoconverted:
105 ignore x-accept-language: x-sender: x-antirelay:
106 ignore x-msmail-priority: x-mimeole: x-pop3-rcpt: delivered-to:
107 ignore face: organization: x-scanned-by: x-bugzilla-
108 ignore DKIM-Signature: DomainKey-Signature: X-RedHat-Spam-Score:
109 ignore Authentication-Results: X-Virus-Found: X-Spam-SWARE-Status: X-HELO:
110 ignore X-Google-DKIM-Signature: X-Gm-Message-State: X-Received: X-IsSubscribed:
111 ignore ARC-Seal: ARC-Message-Signature: ARC-Authentication-Results: Received-SPF: DMARC-Filter: DKIM-Filter: Auto-Submitted: X-Greylist:
112 ignore X-Spam-Status X-Spam-Checker-Version X-AuditID X-MTR Msgkey X-EPLocale X-EPWebmail-Msg-Type X-EPWebmail-Reply-Demand
113 ignore X-EPApproval-Locale X-EPHeader X-EPTrCode X-EPTrName X-MLAttribute X-RootMTR X-ParentMTR X-ArchiveUser X-CPGSPASS
114 ignore X-Brightmail-Tracker X-ClientProxiedBy X-MS-PublicTrafficType X-MS-Office365-Filtering-Correlation-Id X-Microsoft-Antispam
115 ignore X-Microsoft-Exchange-Diagnostics X-MS-TrafficTypeDiagnostic X-Microsoft-Antispam-PRVS
116 ignore X-Exchange-Antispam-Report-Test X-Exchange-Antispam-Report-CFA-Test SpamDiagnosticOutput SpamDiagnosticMetadata
117 ignore X-Forefront-PRVS X-Forefront-Antispam-Report X-MS-Exchange-CrossTenant-OriginalArrivalTime
118 ignore X-MS-Exchange-CrossTenant-FromEntityHeader X-MS-Exchange-Transport-CrossTenantHeadersStamped X-OriginatorOrg
119 ignore X-Google-Smtp-Source Openpgp Autocrypt X-Auto-Response-Suppress X-Jive-Office X-SG-EID
120 ignore X-Phabricator-Mail-Tags X-Herald-Rules X-Phabricator-Projects X-Phabricator-To X-Phabricator-Cc X-Phabricator-Mail-ID X-Phabricator-Send-Attempt X-Phabricator-Stamps
121 ignore Thread-Index: Accept-Language: Content-Language: X-MS-
122 color header brightyellow black ^(From|Subject|To|Cc|Bcc|Message-ID|Reply-To):
123
124 # Colors
125 ########
126 color hdrdefault brightcyan black
127 color quoted cyan black
128 color signature brightred black
129 color indicator brightyellow red
130 color error brightred black
131 color status brightyellow blue
132 color tree brightmagenta black  # the thread tree in the index menu
133 color tilde brightmagenta black
134 color message brightcyan black
135 color normal brightwhite black
136 color attachment brightmagenta black
137 color search black green  # how to hilite search patterns in the pager
138 color body brightyellow black "(ftp|http)://[^ ]+"  # point out URLs
139 color body brightcyan black [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
140 color underline brightgreen black
141 mono header underline ^(From|Subject):
142 mono quoted bold
143 macro index V ":color index black white .*\n:color header black white ^(From|Subject|To|Cc|Bcc|Message-ID):\n:color hdrdefault black white\n:color quoted cyan white\n:color signature brightred white\n:color indicator brightyellow red\n:color error brightred white\n:color status brightyellow blue\n:color tree brightmagenta white  # the thread tree in the index menu\n:color tilde brightmagenta white\n:color message brightcyan white\n:color normal black white\n:color attachment brightmagenta white\n:color search black green  # how to hilite search patterns in the pager\n:color body brightyellow white '(ftp|http)://[^ ]+'  # point out URLs\n:color body black white [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses\n:color underline brightgreen white\n\cl"