summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2015-08-05README: sort program names and write more clearlyHiltjo Posthuma
2015-08-05config.mk: dont use VERSION except for make distHiltjo Posthuma
2015-08-05Makefile: remove old broken rules, fix make distHiltjo Posthuma
2015-08-05sfeed_xmlenc: simplify and kill some linesHiltjo Posthuma
2015-08-05improve man-pages and documentationHiltjo Posthuma
2015-08-05sfeed_web: separate by tab, url<tab>contenttype, simplifyHiltjo Posthuma
2015-08-05sfeed_mbox: combine date check conditionHiltjo Posthuma
2015-08-05sfeed_update, opml_export: slightly safer comparisonHiltjo Posthuma
2015-08-05sfeed_opml_import: change to new config (feeds directory) + simplifyHiltjo Posthuma
2015-08-05sfeed_plain: save a character before statusHiltjo Posthuma
2015-08-05README: improveHiltjo Posthuma
2015-08-05xml.h: sort callbacks and improve commentsHiltjo Posthuma
2015-08-05sfeed: consistency, use XMLParser instead of struct xmlparserHiltjo Posthuma
2015-08-05sfeed: cleanup code a bit, shorten element to el + cleanupHiltjo Posthuma
- end element, restructure control flow - simplify and some code cleanups
2015-08-02sfeed_plain: remove control char check, assume input is sanitized for format ↵Hiltjo Posthuma
programs
2015-08-02sfeed_frames: wrap plain-text, encode as XML/HTML 2.0Hiltjo Posthuma
2015-08-02sfeed: add support for media:description and media:title (used by youtube et al)Hiltjo Posthuma
2015-08-02sfeed: cleanup a bit and improve checking if in contentHiltjo Posthuma
2015-08-02sfeed_frames: limit titles and feednames to 128 chars for filenamesHiltjo Posthuma
This prevents unnecessary path-truncation in some cases, with the side-effect it can overwrite items with the same title more often. We handle path truncation as a fatal error, so this was annoying.
2015-08-02sfeed_frames: normalizepath: dont start with replaced -, just ignoreHiltjo Posthuma
2015-08-02README: remove awk/gawk archive example, add C program (more portable aswell)Hiltjo Posthuma
2015-08-02config.mk: make optimized the defaultHiltjo Posthuma
2015-08-02util: simplify parseline() and check t for strtotime().Hiltjo Posthuma
2015-08-02refactor print, decodefield into xmlencodeHiltjo Posthuma
... put specific formatting-logic per program (printcontent()).
2015-08-02sfeed_mbox: improvementsHiltjo Posthuma
- don't xmlencode HTML, show as is. - mangle "From " mboxrd-style. Content-Length would be cleaner but would require extra buffering.