fdm.conf - sfeed_tests - sfeed tests and RSS and Atom files
HTML git clone git://git.codemadness.org/sfeed_tests
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
fdm.conf (733B)
---
1 set unmatched-mail keep
2
3 account "sfeed" mbox "%[home]/p/sfeed_tests/input/sfeed_mbox/fdm/mbox"
4 $cachepath = "%[home]/p/sfeed_tests/input/sfeed_mbox/fdm/fdm.cache"
5 cache "${cachepath}"
6 $maildir = "%[home]/p/sfeed_tests/input/sfeed_mbox/fdm/maildir/"
7
8 # Check if message is in the cache by Message-ID.
9 match case "^Message-ID: (.*)" in headers
10 action {
11 tag "msgid" value "%1"
12 }
13 continue
14
15 # If it is in the cache, stop.
16 match matched and in-cache "${cachepath}" key "%[msgid]"
17 action {
18 keep
19 }
20
21 # Not in the cache, process it and add to cache.
22 match case "^X-Feedname: (.*)" in headers
23 action {
24 # Store to local maildir.
25 maildir "${maildir}%1"
26
27 add-to-cache "${cachepath}" key "%[msgid]"
28 keep
29 }