sfeed

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

commit fddb44b76944d8aa107260f83daedd0c9a98f6dc
parent 13927fc6083c3d134e456ccfafb953c6cea17662
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 27 Feb 2016 16:24:40 +0100

sfeed_tail

Diffstat:
MREADME | 1+
Msfeed_tail.1 | 4++++
Msfeed_tail.c | 4++--
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/README b/README @@ -102,6 +102,7 @@ sfeed_opml_export - Generate an OPML XML file from a sfeedrc config file. sfeed_opml_import - Generate a sfeedrc config file from an OPML XML file. sfeed_mbox - Format feed data (TSV) to mbox. sfeed_plain - Format feed data (TSV) to a plain-text list. +sfeed_tail - Format unseen feed data (TSV) to a plain-text list. sfeed_update - Update feeds and merge with old feeds in the directory $HOME/.sfeed/feeds by default. sfeed_web - Find urls to RSS/Atom feed from a webpage. diff --git a/sfeed_tail.1 b/sfeed_tail.1 @@ -33,6 +33,10 @@ Unseen items are printed per line in a similar format to .Xr sfeed_plain 1 , duplicate items are ignored. The list of unique items is determined by the fields: feedname, item id and UNIX timestamp of the item date. +.Sh IMPLEMENTATION NOTES +Keep in mind that because +.Nm +keeps a list of all the items it can consume much memory. .Sh SEE ALSO .Xr sfeed 1 , .Xr sfeed_plain 1 , diff --git a/sfeed_tail.c b/sfeed_tail.c @@ -14,8 +14,8 @@ static char *line; static size_t linesize; struct line { - char *timestamp; - char *id; + char *s; + size_t len; struct line *next; };