summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-08-23simplify field map code (add list tagid -> field.Hiltjo Posthuma
also: - parse tag media:description for RSS. - be more strict about using the order of fields, this is more consistent now. - remove buffer_init: don't allocate buffers on start. - realloc, be slightly more aggresive with memory allocating: initial buffer size 16 to 64 bytes.
2015-08-23README.xml: remove example, just check examples listedHiltjo Posthuma
2015-08-22xml: fix includesHiltjo Posthuma
2015-08-22xml: simplify XML readerHiltjo Posthuma
2015-08-22improve READMEHiltjo Posthuma
2015-08-22sfeed_update: simplify path (only $sfeedpath now)Hiltjo Posthuma
2015-08-22sfeed: use <title>, it is required, never use media:titleHiltjo Posthuma
2015-08-22sfeed_opml_import: does not need util but may need compat.h for strlcpy, strlcatHiltjo Posthuma
2015-08-22util: absuri: simplify + fix port in url with prefix "//"Hiltjo Posthuma
use the port specified in the link for urls starting with "//" (use protocol).
2015-08-22use HOST_NAME_MAX for hostnameHiltjo Posthuma
2015-08-22sfeed_opml_import: improve importHiltjo Posthuma
- support attribute entities better. - escape some characters (it's still recommended to check the output ofcourse).
2015-08-22sfeed_xmlenc: code-styleHiltjo Posthuma
2015-08-22config.mk: build compat strlcpy, strlcat by default (synced from OpenBSD)Hiltjo Posthuma
2015-08-22README.xml: update exampleHiltjo Posthuma
2015-08-22util: absuri handle port separatelyHiltjo Posthuma
2015-08-22util: support ipv6 address, parse port separatelyHiltjo Posthuma
2015-08-21sfeed: xml_entitytostr returns ssize_tHiltjo Posthuma
2015-08-18update README, add basic info at the topHiltjo Posthuma
hopefully this will make it easier to see the most important info first.
2015-08-18update READMEHiltjo Posthuma
2015-08-16code-style + no need to zero static variablesHiltjo Posthuma
2015-08-16xml: change xml_parse_string to xml_parse_bufHiltjo Posthuma
In the parser itself allow reading '\0' in the XML itself. Add a length parameter to specify the buffer size.
2015-08-16code-style, wrap some lines, etcHiltjo Posthuma
2015-08-14sfeed_opml_import: does not need util functionsHiltjo Posthuma
2015-08-14Makefile: install README and README.xml, it contains useful examplesHiltjo Posthuma
2015-08-14minor code-style improvementsHiltjo Posthuma
2015-08-14sfeed_update: don't redirect, use only the feed url specified.Hiltjo Posthuma
It could mess up urls in items (redirect http to https). It is also safer.
2015-08-14xml: whoops, remove leftover xml_getnext_stdinHiltjo Posthuma
2015-08-14xml: separate reader context from parserHiltjo Posthuma
also: - rename xmlparser_ prefix to xml_. - make xml_parse public, this allows a custom reader like a direct mmap, see: XMLParser.getnext and (optionall) XMLParser.getnext_data. - improve the README text.
2015-08-10util: parseuri: nul-terminate, bug introduced by ↵Hiltjo Posthuma
7f11ef506465896705f15c39bd0416d96ca651a8
2015-08-10update READMEHiltjo Posthuma
2015-08-08sfeed_mbox: use feedname in message-idHiltjo Posthuma
2015-08-08util: just zero strings by null-terminating first byteHiltjo Posthuma
2015-08-08Revert "sfeed: set TZ=UTC at start, use mktime() not the deprecated timegm()."Hiltjo Posthuma
Some libc implementations like musl provide a heavy optimized version of timeg() which mktime() cannot provide. We use -D_BSD_SOURCE anyway (also for strlcpy, strlcat), so just keep using this for now. This reverts commit f7c579c3b8e77215d60f1948367221b738823585.
2015-08-08sfeed: use snprintf -> strlcpy for some caseHiltjo Posthuma
2015-08-08xml: move entity to namedentitystr()Hiltjo Posthuma
2015-08-07sfeed: set TZ=UTC at start, use mktime() not the deprecated timegm().Hiltjo Posthuma
... timegm() is also -D_BSD_SOURCE.
2015-08-07update documentationHiltjo Posthuma
2015-08-07util: strtotime: stricter time parsingHiltjo Posthuma
as input: an empty string or non-digit characters are digits are considered an error now. Still, for the format tools output the formatted time string as time_t 0 on a parse error.
2015-08-07sfeed_update: just use the feed name as the temporary filenameHiltjo Posthuma
the base temporary directory is random. The directory is cleaned afterwards or on SIGTERM etc so remove this unneeded line.
2015-08-07sfeed_mbox: use simple hash for Message-IdHiltjo Posthuma
2015-08-07sfeed: only handle tags in HTML content, strip tags from type "text"Hiltjo Posthuma
2015-08-06xml: remove forced __inline__ attributeHiltjo Posthuma
2015-08-06sfeed: proper sort order for comparing tagHiltjo Posthuma
2015-08-06general cleanupsHiltjo Posthuma
2015-08-06sfeed: fix, skip milliseconds for: %Y-%m-%dT%H:%M:%S.000ZHiltjo Posthuma
2015-08-05sfeed: minor cleanupHiltjo Posthuma
2015-08-05sfeed: gettag: simplifyHiltjo Posthuma
2015-08-05sfeedrc.example: updateHiltjo Posthuma
2015-08-05update TODOHiltjo Posthuma
2015-08-05sfeed_update: fix time modified on feed first runHiltjo Posthuma
A feeds file was created with touch when it didnt exist. This confuses curl -z since it uses that file for If-Modified-Since. Now it just copies the temporary file to the new file without merging if it doesn't exist. The warning for curl for a non-existant file is already suppressed with curl -s.