File: anubisrc.guile

package info (click to toggle)
anubis 4.1.1%2Bdfsg1-3.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 4,896 kB
  • sloc: ansic: 17,484; sh: 4,923; yacc: 1,432; exp: 912; lisp: 698; lex: 415; makefile: 364; perl: 223; awk: 62; sed: 16
file content (46 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# A sample user configuration file for GNU Anubis with Guile support.
# Copy this file to your HOME directory as `.anubisrc' file. To protect
# your passwords in this configuration file, use the 0600 (u=rw,g=,o=)
# permissions, otherwise GNU Anubis won't accept this file. Hash-marked
# comments (#) and white lines are ignored.
#

#
# The "CONTROL" section.
# User configuration file.
#

---BEGIN CONTROL---
logfile "/tmp/anubis.log"
loglevel ALL
remote-mta localhost
termlevel debug
---END---

---BEGIN GUILE---
guile-output "/tmp/anubis.out"
guile-debug yes
guile-load-path-append <path-to-anubis-directory>/examples
guile-load-program rot-13.scm
guile-load-program anubis.scm
---END---

---BEGIN RULE---

if header [Subject] = "Odp:.*"
 guile-rewrite-line rewrite-subject
fi

trigger :basic "^rot13.*subj"
 guile-process anubis-rot-13-header
 add [X-Comment] "Subject encoded with ROT-13"
done

trigger :basic "^rot13.*body"
 guile-process anubis-rot-13-body
 add [X-Comment] "Body encoded with ROT-13"
done

---END---