From 3e96aaa793e6bccc89006d55b0b6f49ac56907ec Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 30 Jul 2015 16:15:20 +0200 Subject: sfeed_maildir: initial version, needs more work --- procmailrc.example | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 procmailrc.example (limited to 'procmailrc.example') diff --git a/procmailrc.example b/procmailrc.example new file mode 100644 index 0000000..5f0e517 --- /dev/null +++ b/procmailrc.example @@ -0,0 +1,17 @@ +# Example for use with sfeed_maildir. +# The header X-Feedname is used to split into separate maildirs. It is assumes +# this name is sane. + +MAILDIR="$HOME/feeds/" + +:0 +* ^X-Feedname: \/.* +{ + FEED="$MATCH" + + :0 Wh: "msgid_$FEED.lock" + | formail -D 1024000 ".cache/msgid_$FEED.cache" + + :0 + "$FEED"/ +} -- cgit v1.2.3