.muttrc.addons: +R
[nethome.git] / .muttrc.addons
index f60e5e6..bd496e7 100644 (file)
@@ -4,12 +4,13 @@
 # '!' an '=' are expand only as the very first characters.
 # regexes are processed.
 # '$' must follow alpha or '{' to get interpreted as a variable.
-folder-hook "                  set sort=threads;set pager_index_lines=10
+folder-hook "."                  set sort=threads;set pager_index_lines=10
 folder-hook "!$"                 set sort=mailbox-order;push "*<Tab>";set pager_index_lines=0
 folder-hook "=(=|err|rhbug)"     set sort=mailbox-order;push "*<Tab>";set pager_index_lines=0
 folder-hook "=(sent|spam|input)" set sort=mailbox-order;push "*";set pager_index_lines=0
 bind index <Tab> next-new
 bind pager <Tab> next-new
+macro index <Esc>1 "/~N !~h^\"In-Reply-To:\"\n"
 bind index <Esc><Tab> previous-new
 bind pager <Esc><Tab> previous-new
 bind index \` next-unread
@@ -58,22 +59,26 @@ color body brightred default "^_______________________________________________\r
 macro index <Esc>m "l~N|~O\n"
 macro pager <Esc>f ":set pager_index_lines=0\n
 macro pager <Esc>g ":set pager_index_lines=10\n"
+set user_agent
 
 
 # Mail command
 ##############
 bind index \ca mail
-macro index M ":my_hdr X-Priority: 1\n:my_hdr Importance: high\n:set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^a" "DSN and Priority-1 classed compose of a new mail message"
-macro index m ":unmy_hdr X-Priority Importance\n:unset dsn_return dsn_notify\n^a" "Standard compose of a new mail message"
+macro index M ":set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^a" "DSN compose of a new mail message"
+macro index m ":unset dsn_return dsn_notify\n^a" "Standard compose of a new mail message"
+bind index \cb reply
+macro index R ":set dsn_return=hdrs\n:set dsn_notify=failure,delay,success\n^b" "DSN compose of a reply"
+macro index r ":unset dsn_return dsn_notify\n^b" "Standard compose of a reply"
 # quote 'macro' argument to prevent: macro: too many arguments
 # `spamassassin {--report|--revoke}' calls `sa-learn {--spam|--ham}' automatically.
 set pipe_split
-folder-hook "     "macro index S \":unset wait_key\n|spamassassin --report&\n:set wait_key\ns=spamo-mutt\n\""
+folder-hook "."     "macro index S \":unset wait_key\n|spamassassin --report&\n:set wait_key\ns=spamo-mutt\n\""
 folder-hook "=spam" "macro index S \":unset wait_key\n|spamassassin --report&\n:set wait_key\nWN\ct~T\n\""
-folder-hook "     "macro pager S \":unset wait_key\n|spamassassin --report&\n:set wait_key\ns=spamo-mutt\n\""
+folder-hook "."     "macro pager S \":unset wait_key\n|spamassassin --report&\n:set wait_key\ns=spamo-mutt\n\""
 folder-hook "=spam" "macro pager S \":unset wait_key\n|spamassassin --report&\n:set wait_key\n\""
-folder-hook "     "macro index H \":unset wait_key\n|spamassassin --revoke \n:set wait_key\nWN\ct~T\n\""
-folder-hook "     "macro pager H \":unset wait_key\n|spamassassin --revoke \n:set wait_key\n\""
+folder-hook "."     "macro index H \":unset wait_key\n|spamassassin --revoke \n:set wait_key\nWN\ct~T\n\""
+folder-hook "."     "macro pager H \":unset wait_key\n|spamassassin --revoke \n:set wait_key\n\""
 macro editor \ew "^a  [^e]^a"
 
 # GPG
@@ -99,7 +104,17 @@ ignore DKIM-Signature: DomainKey-Signature: X-RedHat-Spam-Score:
 ignore Authentication-Results: X-Virus-Found: X-Spam-SWARE-Status: X-HELO:
 ignore X-Google-DKIM-Signature: X-Gm-Message-State: X-Received: X-IsSubscribed:
 ignore ARC-Seal: ARC-Message-Signature: ARC-Authentication-Results: Received-SPF: DMARC-Filter: DKIM-Filter: Auto-Submitted: X-Greylist:
-color header brightyellow black ^(From|Subject|To|Cc|Bcc|Message-ID):
+ignore X-Spam-Status X-Spam-Checker-Version X-AuditID X-MTR Msgkey X-EPLocale X-EPWebmail-Msg-Type X-EPWebmail-Reply-Demand
+ignore X-EPApproval-Locale X-EPHeader X-EPTrCode X-EPTrName X-MLAttribute X-RootMTR X-ParentMTR X-ArchiveUser X-CPGSPASS
+ignore X-Brightmail-Tracker X-ClientProxiedBy X-MS-PublicTrafficType X-MS-Office365-Filtering-Correlation-Id X-Microsoft-Antispam
+ignore X-Microsoft-Exchange-Diagnostics X-MS-TrafficTypeDiagnostic X-Microsoft-Antispam-PRVS
+ignore X-Exchange-Antispam-Report-Test X-Exchange-Antispam-Report-CFA-Test SpamDiagnosticOutput SpamDiagnosticMetadata
+ignore X-Forefront-PRVS X-Forefront-Antispam-Report X-MS-Exchange-CrossTenant-OriginalArrivalTime
+ignore X-MS-Exchange-CrossTenant-FromEntityHeader X-MS-Exchange-Transport-CrossTenantHeadersStamped X-OriginatorOrg
+ignore X-Google-Smtp-Source Openpgp Autocrypt X-Auto-Response-Suppress X-Jive-Office X-SG-EID
+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
+ignore Thread-Index: Accept-Language: Content-Language: X-MS-
+color header brightyellow black ^(From|Subject|To|Cc|Bcc|Message-ID|Reply-To):
 
 # Colors
 ########