]> git.donarmstrong.com Git - lib.git/commitdiff
add header and rawbody rules
authorDon Armstrong <don@donarmstrong.com>
Wed, 21 Feb 2018 19:42:18 +0000 (11:42 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 21 Feb 2018 19:42:18 +0000 (11:42 -0800)
emacs_el/snippets/spamassassin-mode/header
emacs_el/snippets/spamassassin-mode/rawbody [new file with mode: 0644]

index 768263dff9229c03ae70b90fcbc56efcfac79af8..9cb2cc1f5a6710239709c7c1b79360b447a041e3 100644 (file)
@@ -2,6 +2,7 @@
 # name: header ... ...
 # key: header
 # --
-header ${1:RULE_NAME} ${2:Subject} =~ /$3/i
-describe $1 ${4}
-score $1 ${5:1.0}
\ No newline at end of file
+# don `(format-time-string "%Y-%m-%d")`
+header ${1:RULENAME} ${2:Subject} =~ /${3:Regex}/i
+describe $1 ${4:Description}
+score $1 ${5:0.1}
diff --git a/emacs_el/snippets/spamassassin-mode/rawbody b/emacs_el/snippets/spamassassin-mode/rawbody
new file mode 100644 (file)
index 0000000..08fc941
--- /dev/null
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: rawbody
+# key: rawbody
+# --
+# don `(format-time-string "%Y-%m-%d")`
+rawbody ${1:RULENAME} /${2:Regex}/
+describe $1 ${3:Description}
+score $1 ${4:0.1}