From fddb44b76944d8aa107260f83daedd0c9a98f6dc Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sat, 27 Feb 2016 16:24:40 +0100 Subject: sfeed_tail --- README | 1 + sfeed_tail.1 | 4 ++++ sfeed_tail.c | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README b/README index b104aae..fcb36b5 100644 --- 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 index 3259dbc..a9b5f57 100644 --- 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 index 1608ce7..ecc0278 100644 --- 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; }; -- cgit v1.2.3