summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README1
-rw-r--r--sfeed_tail.14
-rw-r--r--sfeed_tail.c4
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;
};