process fetched sfeeds with mblaze
This commit is contained in:
parent
d11b585ecb
commit
bd70c1247c
3 changed files with 17 additions and 33 deletions
|
@ -1,25 +0,0 @@
|
|||
set unmatched-mail keep
|
||||
|
||||
account "sfeed" mbox "%[home]/.sfeed/feeds.mbox"
|
||||
$cachepath = "%[home]/.sfeed/feeds.mbox.cache"
|
||||
cache "${cachepath}"
|
||||
$feedsdir = "/data/mail/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 all action {
|
||||
maildir "${feedsdir}"
|
||||
add-to-cache "${cachepath}" key "%[msgid]"
|
||||
keep
|
||||
}
|
|
@ -2,14 +2,14 @@ feeds() {
|
|||
# feed <name> <feedurl> [basesiteurl] [encoding]
|
||||
# get youtube Atom feed: curl -s -L 'https://www.youtube.com/user/gocoding/videos' | sfeed_web | cut -f 1
|
||||
|
||||
feed "Giant in the Playground" "http://www.giantitp.com/comics/oots.rss"
|
||||
feed "Giant in the Playground" "https://www.giantitp.com/comics/oots.rss"
|
||||
feed "XKCD" "https://xkcd.com/atom.xml" "https://xkcd.com"
|
||||
feed "Ulyssis" "https://ulyssis.org/feed/"
|
||||
feed "Schneier on Security" "https://www.schneier.com/blog/atom.xml"
|
||||
feed "Schneier on Security" "https://www.schneier.com/feed/atom/"
|
||||
feed "PHD Comics" "https://phdcomics.com/gradfeed.php" "https://www.phdcomics.com"
|
||||
feed "Void news" "https://voidlinux.org/atom.xml" "https://voidlinux.org"
|
||||
feed "Uniprot" "https://www.uniprot.org/news/?format=rss"
|
||||
feed "qutebrowser" "http://blog.qutebrowser.org/feeds/all.rss.xml"
|
||||
feed "qutebrowser" "https://blog.qutebrowser.org/feeds/all.rss.xml"
|
||||
feed "This week in Rust" "https://this-week-in-rust.org/rss.xml"
|
||||
feed "Saturday Morning Breakfast Cereal" "https://www.smbc-comics.com/comic/rss"
|
||||
feed "Minute Physics" "https://www.youtube.com/feeds/videos.xml?channel_id=UCUHW94eEFW7hkUMVaZz4eDg"
|
||||
|
@ -24,7 +24,7 @@ feeds() {
|
|||
feed "Leah Neukirchen" "https://leahneukirchen.org/blog/index.atom"
|
||||
feed "Infogroep" "https://infogroep.be/feed.xml"
|
||||
feed "Zeus" "https://zeus.ugent.be/feed.xml"
|
||||
feed "FOSDEM" "https://fosdem.org/2020/rss.xml"
|
||||
feed "Iris" "https://irisgent.be/atom.xml"
|
||||
feed "FOSDEM" "https://fosdem.org/2021/rss.xml"
|
||||
feed "BE-Alert" "https://www.be-alert.be/nl/rss.xml"
|
||||
feed "Martanne" "https://www.brain-dump.org/blog/index.xml"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue