--- - branch: MAIN date: Mon Aug 21 13:07:15 UTC 2023 files: - new: '1.27' old: '1.26' path: pkgsrc/news/sfeed/Makefile pathrev: pkgsrc/news/sfeed/Makefile@1.27 type: modified - new: '1.26' old: '1.25' path: pkgsrc/news/sfeed/distinfo pathrev: pkgsrc/news/sfeed/distinfo@1.26 type: modified id: 20230821T130715Z.ac0c4f4fff031bde17ddf93909c337bb64492b8d log: | sfeed: Update to 1.9 Changes: 1.9 --- Features: * sfeed_{curses,frames,gopher,html,plain}: add $SFEED_NEW_MAX_SECS By introducing the new environment variable $SFEED_NEW_MAX_SECS in some sfeed_* utilities marking feeds as new based on comparing their age, it is now possible to override this age limit. The default limit was the last day (86400 seconds). This allows, for example, to be notified about new feeds within the last hour with by prefixing new items with " N ": SFEED_NEW_MAX_SECS=3600 sfeed_plain ~/.sfeed/feeds/* While creating a web report for last week's news by: SFEED_NEW_MAX_SECS=604800 sfeed_html ~/.sfeed/feeds/* This marks the items of the last week as bold in HTML. Based on the initial patch by Alvar Penning, thanks! * sfeed_update/sfeedrc: add url a as parameter to the filter() and order() function This makes it easier to set filters or ordering by pattern matching on a group of feeds by the feed URL. For example for Youtube or Reddit feeds. * sfeed_curses: move one line down when marking an item as read or unread. I don't mind either behaviour, but it has been suggested by a few people. For example the mutt mail client also has this behaviour. Fixes: * Improve to use proper includes. Reduce using some of the unneeded sys/* headers too. Using the C99 includes. * sfeed_atom: for gmtime_r() make the error message consistent with sfeed_mbox. * Makefile: change Gentoo commented example from -lcurses to -lncurses. * sfeed_markread: fail early if creating a temporary file failed. Code-cleaning / pedantic fixes: * sfeed: datetounix: code-style, change , to separate lines (-Wcomma). * sfeed_curses: make struct urls static like the other variables. * sfeed_gopher: reduce scope and shadowing of a variable (no effective change though). * xml.h: _XML_H_: macro name with an underscore is a reserved identifier. Documentation: * Improve note about CDNs and HTTP User-Agent blocking and change the example in sfeedrc.5 by setting a User-Agent. * sfeedrc.example: add comment to reference to the man pages and README file. * README: RSS 0.90+ is supported (not 0.91+). * Typo fixes, consistency and structure fixes and some rewording. module: pkgsrc subject: 'CVS commit: pkgsrc/news/sfeed' unixtime: '1692623235' user: leot