summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-01-19sfeed: extend the time range, use long long instead of time_tHiltjo Posthuma
This allows to parse the time as a number in the 64-bit range, even on 32-bit platforms. Note that the sfeed formatting tools can still truncate/wrap the value to time_t, which can be 32-bit.
2022-01-19sfeed_curses.1: clarify an exception with SIGINTHiltjo Posthuma
SIGTERM is the best way to quit the program, because SIGINT can cancel only the line editor prompt when using it.
2022-01-19sfeed_curses: consistency: mousereport: use off_t like the other functionsHiltjo Posthuma
2022-01-19sfeed_curses: line editor: add more clear comments of signal handlingHiltjo Posthuma
2022-01-19sfeed: parsetime: allow leap second like 23:59:60Hiltjo Posthuma
Specified in RFC2822 Section 3.3. Date and Time Specification "[...] the time-of-day MUST be in the range 00:00:00 through 23:59:60 (the number of seconds allowing for a leap second; see [STD12]) [...]" To test: <entry><updated>2016-12-31T23:59:60Z</updated></entry>
2022-01-14util: strtotime: expand on comment about 2038-readinessHiltjo Posthuma
Also tested on MIPS32BE which has 32-bit time_t and which wraps the time value.
2022-01-14util: parsetime(): fix comment, long long supports atleast 64-bit rangeHiltjo Posthuma
2022-01-14sfeed_curses: pedantic fix for UB with an empty URL fileHiltjo Posthuma
When a new URL file is used with no URL entries then NULL is passed to qsort() and bsearch(). This is reported by clang UBsan as undefined behaviour (debatable), but no issue in practise with many implementations. Fix it anyway. To reproduce with clang UBsan: Compile with clang or gcc with CFLAGS and LDFLAGS -fsanitize=undefined touch /tmp/urls # new file which should be empty. SFEED_URL_FILE=/tmp/urls sfeed_curses 2>/tmp/log ^D q cat /tmp/log
2022-01-06README: sfeed_download small changesHiltjo Posthuma
2022-01-06README: small typo and rewording for sfeed_download exampleHiltjo Posthuma
2022-01-06README: add a listing of the formats supportedHiltjo Posthuma
2022-01-06README: add sfeed_download example, parallel downloader/extractorHiltjo Posthuma
2022-01-04sfeed_markread: set all locale variables and use LC_ALLHiltjo Posthuma
2022-01-03Makefile: add comment for feature test macro on FreeBSDHiltjo Posthuma
Reported by Christos Margiolis and plasmoduck, thanks
2022-01-03Makefile: tiny typo: add space after SFEED_CURSES_CPPFLAGSHiltjo Posthuma
2021-12-24sfeed_content: allow to set HTML converter with env variableHiltjo Posthuma
This makes it a bit more easy to reuse the script and makes the run-time dependency on lynx more optional. For example with w3m: SFEED_HTMLCONV="w3m -I UTF-8 -O UTF-8 -T text/html -dump" \ sfeed_curses ~/.sfeed/feeds/* (of course this can be set in a wrapper script or shell profile too)
2021-12-23sfeed_markread: small white-space fixHiltjo Posthuma
2021-12-23README: improve newsboat export scriptHiltjo Posthuma
Performance improvements, use feed URL if the feed title is not (yet) set.
2021-12-23README: add GNU/HurdHiltjo Posthuma
tested for fun
2021-12-23sfeed_atom: add category field(s)Hiltjo Posthuma
2021-12-23LICENSE: bump yearHiltjo Posthuma
2021-11-27bump version to 1.1Hiltjo Posthuma
2021-11-26README: reword the part mentioning SFEED_THEMEHiltjo Posthuma
2021-11-26README: small rewordingHiltjo Posthuma
2021-11-26sfeed.1: add sfeed_curses exampleHiltjo Posthuma
2021-11-26Makefile: merge contents of sfeed_curses MakefileHiltjo Posthuma
sfeed_curses can be optionally compiled. Separate flags can be passed for example for the curses library. Also pass CFLAGS and LDFLAGS as a suffix. See commit 0a9c4460c15e90113607ff1928858dfa940df725 of sfeed_curses This is useful when passing -Wl,--as-needed or hardening flags.
2021-11-26sfeed_curses: reuse some functions in utilHiltjo Posthuma
2021-11-26README: merge the contents of the README of sfeed_cursesHiltjo Posthuma
2021-11-26import sfeed_cursesHiltjo Posthuma
Import sfeed_curses into sfeed. The files are based of the commit 8e151ce48b503ad0ff0e24cb1be3bc93d6fbd895
2021-11-24sfeed_mbox: escape the link and enclosure text when using HTML contentHiltjo Posthuma
commit ed8079dc3e8ce513c788a5ab11444aac221cbc5b added an option $SFEED_MBOX_CONTENT with a content-type text/html to include the content. However in this context the link and enclosure were not fully escaped.
2021-11-23sfeed.1: improve a comment for string_appendHiltjo Posthuma
2021-11-23sfeed.1: add a basic usage example for using the sfeed packageHiltjo Posthuma
"man sfeed" now hopefully more quickly gives a better overview how the tools work together. Reference the README for extended examples and use-cases.
2021-11-23sfeed.{1,5}: small rewording improvementHiltjo Posthuma
2021-11-23sfeed.{1,5}: the first author is parsedHiltjo Posthuma
The Atom RFC standard supports multiple authors, but this is usually one. The first author is parsed.
2021-11-23code-style: define fieldmap in the same order as the enum declarationHiltjo Posthuma
2021-10-25sfeed.{1,5}: small rewording for the '|' characterHiltjo Posthuma
2021-10-25sfeed_mbox: add link as base URL for HTML contentHiltjo Posthuma
This is useful for HTML viewers (like lynx -dump) in mail clients to use the base href as the base URL for relative links in the HTML content.
2021-10-25sfeed_mbox: use 64-bit for the checksum numberHiltjo Posthuma
This makes the checksum number atleast 64-bit and makes the Message-ID header consistent across mixed 32-bit and 64-bit systems. Tested on amd64 and MIPS32BE.
2021-10-24README: tested with the compiler chibicc and RISCV64 VM (OpenBSD and Linux)Hiltjo Posthuma
chibicc (amd64): https://github.com/rui314/chibicc
2021-10-05Makefile: consistency and pedantic change: use ar -rc instead of ar rcHiltjo Posthuma
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ar.html This was changed in the below commit but should have been changed consistently: commit 3d2cd7cf4a4052f3db6e13af4f22835b457bdeb3 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed Jun 10 14:40:06 2020 +0200 Makefile: pedantic change: use ar -rc instead of ar rc
2021-08-06bump version to 1.0Hiltjo Posthuma
2021-08-06sfeed_opml_export: fix typo: opml -> OPMLHiltjo Posthuma
2021-08-06sfeedrc.5: fix typosHiltjo Posthuma
2021-08-04sfeed_mbox.1: add examples to this man page aswellHiltjo Posthuma
2021-08-03man page improvementsHiltjo Posthuma
2021-08-03code-style: use a newline before return in main()Hiltjo Posthuma
2021-07-25man page improvementsHiltjo Posthuma
- Some rewording and typo fixes. - Specify in more detail how sfeed_web detects links from HTML code.
2021-07-24sfeed_{web,xmlenc}.1: use my site as an exampleHiltjo Posthuma
2021-07-22sfeed_update.1: just use ~/ instead of $HOME consistently in examplesHiltjo Posthuma
2021-07-19code-style: change gmtime to the reentrant/thread-safe gmtime_rHiltjo Posthuma
No functional or performance difference (intended) because these programs are not threaded.