A simple RSS feed downloader that saves items in a Maildir
Go to file
Shokara Kou 6fe3d8dc04 parse date format without timezone 2023-01-05 16:03:19 -05:00
.gitignore save items in a Maildir/ 2022-12-10 22:34:54 -05:00
LICENSE relicense back under the ISC license 2021-06-07 12:42:21 -04:00
LICENSE.xmlparser prepare to use codemadness's xmlparser instead of yxml 2022-11-17 17:02:46 -05:00
Makefile add strlcpy compatibility file for non-openbsd 2022-12-11 20:11:59 -05:00
README add support for dc:date with sed's help 2023-01-04 14:21:53 -05:00
atom_content.sed added a sed file to wrap the inside of <content> in a CDATA 2022-12-11 19:42:05 -05:00
config.mk add strlcpy compatibility file for non-openbsd 2022-12-11 20:11:59 -05:00
main.c save items in a Maildir/ 2022-12-10 22:34:54 -05:00
parse.c parse date format without timezone 2023-01-05 16:03:19 -05:00
parse.h save items in a Maildir/ 2022-12-10 22:34:54 -05:00
rssdl.1 update manual page 2022-02-12 22:33:35 -05:00
save.c save items in a Maildir/ 2022-12-10 22:34:54 -05:00
save.h save items in a Maildir/ 2022-12-10 22:34:54 -05:00
strlcpy.c add strlcpy compatibility file for non-openbsd 2022-12-11 20:11:59 -05:00
strlcpy.h add strlcpy compatibility file for non-openbsd 2022-12-11 20:11:59 -05:00
xml.c save items in a Maildir/ 2022-12-10 22:34:54 -05:00
xml.h prepare to use codemadness's xmlparser instead of yxml 2022-11-17 17:02:46 -05:00

README

rssdl
=====
Simple RSS/Atom feed downloader that saves items in a Maildir that can be read
with a MUA that supports Maildirs like (neo)mutt or aerc.

Dependencies
------------
- C99 compatible compiler
- POSIX-compliant libc
- a way to pipe the feed data to rssdl

Usage
-----
curl rss_url | rssdl maildir
rssdl maildir <feed.rss

For atom feeds, pipe the feed through atom_content.sed and then through rssdl.

curl atom_url | sed -f atom_content.sed rssdl maildir
sed -f atom_content.sed feed.atom | rssdl maildir

For certain feeds that use Dublin Core for specifying the published date, you
can use sed to change the timezone portion of the date to workaround strftime(3)
not recognizing colons in timezone offsets (%z).

curl rss_url | sed '/dc:date/s,:,,4' | rssdl maildir
sed '/dc:date/s,:,,4' feed.rss | rssdl maildir