sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit eb586eda26967183de91c314a57d323b124110bb
parent b74be27d28d068af81ba7d9fce43f548b59d2513
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 31 Jul 2015 01:23:07 +0200

add fdm.conf example

... sfeed_maildir, procmailrc and fdm.conf will probably be removed
and moved to a documentation file for clarity. The ways to use
sfeed to output mail in any format is available (via sfeed_mbox).

I'll assume the person who uses this has enough knowledge to convert
mbox to the format he/she wants.

Diffstat:
Afdm.conf.example | 31+++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+), 0 deletions(-)

diff --git a/fdm.conf.example b/fdm.conf.example @@ -0,0 +1,31 @@ +# Convert mbox to separate maildirs per feed and filter duplicate messages. +# Usage: +# $ sfeed_mbox ~/.sfeed/feeds/* > ~/.sfeed/mbox +# $ fdm -f thisconfig fetch + +set unmatched-mail keep + +account "sfeed" mbox "%[home]/.sfeed/mbox" + $cachepath = "%[home]/.sfeed/mbox.cache" + cache "${cachepath}" + $feedsdir = "%[home]/feeds/" + + # check if in cache by message-id. + match case "^Message-ID: (.*)" in headers + action { + tag "msgid" value "%1" + } + continue + # if in cache, stop. + match matched and in-cache "${cachepath}" key "%[msgid]" + action { + keep + } + + # not in cache, process it and add to cache. + match case "^X-Feedname: (.*)" in headers + action { + maildir "${feedsdir}%1" + add-to-cache "${cachepath}" key "%[msgid]" + keep + }