Improved spam handling
authorshort <>
Sun, 6 Oct 2002 19:46:17 +0000 (19:46 +0000)
committershort <>
Sun, 6 Oct 2002 19:46:17 +0000 (19:46 +0000)
.muttrc.addons

index dd7ef89..dbad39a 100644 (file)
@@ -1,9 +1,12 @@
 # System-wide personalization for Mutt
 ######################################
 
-folder-hook ""      set sort=threads
-folder-hook "!"     set sort=mailbox-order
-folder-hook "=sent" set sort=mailbox-order
+folder-hook ""        set sort=threads
+folder-hook "!"       set sort=mailbox-order
+folder-hook "=sent"   set sort=mailbox-order
+folder-hook "=spam"   set sort=mailbox-order
+folder-hook "=err"    set sort=mailbox-order
+folder-hook "=input$" set sort=mailbox-order
 bind index \` next-unread
 bind index <Esc>\` previous-unread
 unset strict_threads
@@ -48,7 +51,9 @@ set attribution="On %D, %n wrote:"
 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 S ":unset wait_key\n:set pipe_split\n|/home/short/bin/razor-report\n:unset pipe_split\n:set wait_key\nd"
+# quote 'macro' argument to prevent: macro: too many arguments
+folder-hook ""      "macro index S \":unset wait_key\n:set pipe_split\n|/home/short/bin/razor-report\n:unset pipe_split\n:set wait_key\ns=spamo-mutt\n\""
+folder-hook "=spam" "macro index S \":unset wait_key\n:set pipe_split\n|/home/short/bin/razor-report\n:unset pipe_split\n:set wait_key\nWN\ct~T\n\""
 macro editor \ew "^a  [WAS: ^e]^a"
 
 # GPG