]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add spam to index_format; not working yet
authormartin f. krafft <madduck@madduck.net>
Mon, 20 Aug 2007 23:14:31 +0000 (01:14 +0200)
committermartin f. krafft <madduck@madduck.net>
Mon, 20 Aug 2007 23:14:31 +0000 (01:14 +0200)
muttrc
spam [new file with mode: 0644]

diff --git a/muttrc b/muttrc
index 4d6c23f41196a64fe47d0bf23a0bbca286c42183..3247f5db2a35717fdf185a469af367ea46febb0d 100644 (file)
--- a/muttrc
+++ b/muttrc
@@ -1450,7 +1450,7 @@ set include=yes
 # 
 # See also: ``$to_chars''.
 # 
-set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %s"
+set index_format="%4C %Z %{%b %d} %-15.15F (%?l?%4l&%4c?) %?H?[%H] ?%s"
 # 
 # set ispell="ispell"
 #
@@ -4436,6 +4436,7 @@ source $my_confdir/headers
 source $my_confdir/alternates
 source $my_confdir/keybindings
 source $my_confdir/lists
+source $my_confdir/spam
 source $my_confdir/hooks
 
 set my_mailboxes = `ls ~/.var/offlineimap/mailboxes 2>/dev/null || echo /dev/null`
diff --git a/spam b/spam
new file mode 100644 (file)
index 0000000..7a7c140
--- /dev/null
+++ b/spam
@@ -0,0 +1,6 @@
+#nospam *
+spam "." "all"
+spam "^X-Spam-Status: Yes, score=([-.0-9]+)/" "SA:%1"
+spam "^X-CRM114-Status: SPAM  \( [-.0-9]+ \)" "crm:%1"
+
+# vim:ft=muttrc