summaryrefslogtreecommitdiff
path: root/procmailrc.example
blob: 5f0e517a6fac9a86162d36374ed7aa01eba6c867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"/
}