rss2email-like

Read from mbox and filter duplicate messages using the fdm program and deliver
it to a SMTP server. fdm config file (~/.sfeed/fdm.conf), from the sfeed
README:

	set unmatched-mail keep

	account "sfeed" mbox "%[home]/.sfeed/mbox"
		$cachepath = "%[home]/.sfeed/fdm.cache"
		cache "${cachepath}"

		match case "^Message-ID: (.*)" in headers
			action {
				tag "msgid" value "%1"
			}
			continue

		match matched and in-cache "${cachepath}" key "%[msgid]"
			action {
				keep
			}

		match case "^X-Feedname: (.*)" in headers
			action {
				smtp server "codemadness.org" to "hiltjo@codemadness.org"
				add-to-cache "${cachepath}" key "%[msgid]"
				keep
			}

Now you can run:

	$ sfeed_mbox ~/.sfeed/feeds/* > ~/.sfeed/mbox
	$ fdm -f ~/.sfeed/fdm.conf fetch

There is also a script from 20h: gopher://gopher.r-36.net/1/scm/sfeed_sendmail
