Up to [cvs.NetBSD.org] / pkgsrc / mail / rss2email
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
rss2email: cope with poetry instability. Bump PKGREVISION.
rss2email: convert egg.mk to wheel.mk. Bump PKGREVISION. This fixes a recent regression where r2e's shebang path had become an unqualified "python". While here, bump feedparser dependency for Python 3.13 support.
*: update for Python base package change Instead of depending on one of the removed packages (that are now included in the base Python packages), include batteries-included.mk to require a Python version that supplies them. Remove now included packages. Bump PKGREVISION.
*: recursive bump for Python 3.11 as new default
Update to 3.14. From the changelog:
* New `digest-type` configuration adds optional more widely supported
`multipart/mixed` format
* New argument `--only-new` on the `add` command to ignore entries in
feed when added, so only new entries will be sent.
* Fix exception when parsing a feed with a linebreak in its title
* Add a new `subject-format` setting, customise the subject line
* Removed '$' interpolation in config file to allow URLs containing
dollar signs. Interpolation was not fully supported, and the
placeholder would not survive a second save. Config files with ${...}
placeholders will need to be manually edited after upgrading, or a
save forced by adding and removing a fake feed before upgrading.
* Fix default HTTP User-Agent to use `rss2email` instead of
`feedparser`, and fix `user-agent` setting to consistently apply to
both outgoing emails and HTTP requests. This introduces a couple of
potentially breaking changes:
* Configurations that came to rely on the `feedparser` UA string
should adjust to the updated UA string going forward.
* Configurations that came to rely on the unintended behaviour, that
configuring the User-Agent header in emails does not affect HTTP
requests, should use a custom `post-process` hook instead.
*: Revbump packages that use Python at runtime without a PKGNAME prefix
*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS
Update to 3.13.1. From the changelog: * Fix crash on html-mail entries with no URL
Update to 3.13. From the changelog: * Drop support for Python 3.5, add support for Python 3.9 * Switch to feedparser 6 * Switch to poetry instead of requirements.txt * Make the `verbose` flag in the config file actually have an impact, and have it default to `info` * Improve log messages * Remove documentation of `smtp-ssl-protocol` as this option was dropped in 2016 * Stop forging SMTP and sendmail envelope sender (#134) * Add sendmail_config option * Log sendmail output * Support multipart/alternative emails with both HTML and plain text parts with option `multipart-html` * Add inline-links option, allowing links to be sent to the bottom of the paragraph * Add wrap-links option, preventing links from be wrapped over multiple lines * Stop looking in $XDG_DATA_DIRS for the database, and only look in $XDG_DATA_HOME * Warnings about HTTP content-type being unexpected now properly display * Make the proxy parameter also affect https connections * Add a --clean argument on the run command to reduce the database size * Set body element attribute dir=auto in HTML mail * Store the lock file in XDG_RUNTIME_DIR instead of /tmp
Update to 3.12.3. From the changelog: * Make dependency on feedparser have an upper bound so that `pip install` works again
Revbump packages with a runtime Python dep but no version prefix. For the Python 3.8 default switch.
Move the final 2.7-compatible py-feedparser to py-feedparser5.
Update to 3.12.2. From the changelog: * Fix bug `AttributeError: 'NoneType' object has no attribute 'close'` (#126)
Update to 3.12.1. From the changelog: * Fix calling opmlexport without arguments
Update to 3.12. From the changelog: * Drop support for EOL Python 3.4, add support for Python 3.8 * Add List_ID and List_Post headers to the generated emails * Add a new `reply-changes` setting * Improve configurability of text wrapping for the emails * Use `platform.node()` instead of "dev.null.invalid" in "Message-ID" header * Improve locking support for when multiple rss2email instances are run in parallel * Fix handling of __VERSION__ and __URL__ in user-agent strings * Fix opmlexport
Update to 3.11. From the changelog: - Add new `user-agent` attribute for configuring email User-Agent
Update to 3.10. From the changelog: * Catch and warn for invalid Content-Types * Add a manually extracted list of config options to r2e.1 * Add a redirect post-process module * Follow symlinks of datafiles * Add zsh completion * Add support for maildir * Fix `r2e new` overwriting an existing config * Add new `feed-name` and `feed-url` attributes for the `name-format` setting * Change logging format * Allow multiple SMTP recipients * Fix SMTP security issues * Fix test suite * Drop support for Python 3.2 and 3.3 * Remove `__contributors__` from the `rss2email` module * Stop using deprecated `html2text.unescape` * Fix locking issues when data file is on NFS * Add `same-server-fetch-interval` setting for rate-limiting fetches to a server * Update setup.py to setuptools pkgsrc changes: simplify GITHUB_*, from leot@.
Fix WRKSRC definition.
Switch to new upstream, and apply its patch to work around html2text having gotten rid of unescape(). Mollify pkglint. Bump PKGREVISION.
PKGREVISION bump for anything using python without a PYPKGPREFIX. This is a semi-manual PKGREVISION bump.
Add a patch to properly honor html2text options via rss2email's configuration file. While here also simplify MASTER_SITES (convert it to MASTER_SITE_GITHUB) and delete DIST_SUBDIR and WRKSRC that are no longer needed with that change. Bump PKGREVISION Discussed with <schmonz>
Removing python26. EOL'd quite some ago and discussed a couple times on tech-pkg@ and pkgsrc-users@.
Remove 34 from PYTHON_VERSIONS_INCOMPATIBLE, as suggested by Jean-Yves Moulin (and agreed by the README).
Update to 3.9. From the changelog:
* Catch and error out if a user adds a feed with a duplicate name.
* Split sender into both sendmail's -F and -f.
* Fix an error with SMTPConnectionError inhertence order ("does not
take keyword arguments").
* Add a new `smtp-ssl-protocol` setting, to select acceptable
protocols for SMTP connections.
* Fix non-compliant User-Agent header for HTTP/1.1.
* Fix an error in the NoToEmailAddress invocation.
* Add a new `trust-link` setting, to prefer the `link` attribute
over the `id` attribute for identifying entries.
Bump applications PKGREVISIONs for python users that might be using python3, since the default changed from python33 to python34. I probably bumped too many. I hope I got them all.
Depend on latest py-html2text to make patching unnecessary. Bump PKGREVISION.
Mark packages as not ready for python-3.x where applicable; either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary.
Update to 3.8. From the changelog: * Sluggify feed names on opmlimport. * Allow Unicode letters and digits in feed names, instead of just ASCII lettters and digits.
Update to 3.7. From the changelog: * Fix fallback for titles that contain malformed HTML. * Fix atomic saves to avoid garbling config and data files if the disk is full. * Convert the `friendly-name` boolean to the new `name-format` setting. This allow users to customize how the friendly name is constructed. * Demote guessed encodings logs from 'error' to 'warning'.
Update to 3.6. From the changelog: * Fix missing port argument for IMAPAuthenticationError. * Fix `<div id="entry>` syntax error in HTML mail.
Update to 3.5 (new upstream). From the changelog: v3.5 (2013-06-05) * Added digest generation and post-processing hooks. * Fix html2text configuration (ignored since 2012-10-04). * Fix opmlexport crash due to orphaned feed data. * Use feed names in OPML 'text' attributes. v3.4 (2013-05-14) * Added post-processing hooks for user-specified message manipulation. * Added settings for IMAP delivery. The old `use-smtp` boolean has been replaced by a new `email-protocol` setting. Non-IMAP users should adjust their configuration to set `email-protocol` to either `sendmail` or `smtp`. v3.3 (2013-04-13) * Fix SMTP message submission logic. * Fix error inheritence (super() calls). * Convert html2text parsing errors to `ProcessingError`s. * Cleanup html2text error handling. * Drop Google Reader rel-via manipulation. * Drop the wrapping <table> elements from HTML mail v3.2 (2013-03-13) * Use extended interpolation in configuration files, to allow percent signs (%). * Added .as_string() fallback to email flattening (only used if `use-smtp = False` and `use-8bit = True`). * Added sendmail configuration option. Change this if you want to use an alternative, sendmail-compatible mailer. v3.1 (2013-02-14) * Import __url__, __author__, and __email__ in rss2email.error, which fixes bugs in formatting a number of errors. v3.0 (2013-02-13) * Changed project email (rss2email@tremily.us) and homepage (http://github.com/wking/rss2email). * Split static configuration parameters into a ConfigParser-read config file (rss2email.cfg). Data that depends on the feed state is recorded using JSON (rss2email.json). * Use the XDG Base Directory Specification for standardized configuration and data file locations. * Converted the command line interface to argparse, with some restructuring along the way. * Added the r2e.1 man page (based on one from the Debian package). * Added setup.py and a PyPI page for simpler installation (http://pypi.python.org/pypi/rss2email). * Added Message-ID headers to outgoing email. * Added a test suite. * Upgraded to Python 3.2 to take advantage of cleaner Unicode handling and argparse. * Require Signed-off-by lines in new commit messages, following the Linux and Git projects.
Document how to prep for upgrade to 3.x, and bump PKGREVISION.
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.
Remove duplicate part of man page. Bump PKGREVISION.
Bump PKGREVISION from default python to 2.7.
Update to 2.71. From the changelog: * Potentially safer method for writing feeds.dat on UNIX * Handle via links with no title attribute * Handle attributes more cleanly with OVERRIDE_EMAIL and DEFAULT_EMAIL
Fix not-really-a-parse-error when OVERRIDE_EMAIL and DEFAULT_EMAIL aren't set to anything fancy. Bump PKGREVISION.
Update to 2.70. From the changelog:
2.70 (2010-12-21)
* Improved handling of given feed email addresses to prevent mail
servers rejecting poorly formed Froms
* Added X-RSS-TAGS header that lists any tags provided by an entry,
which will be helpful in filtering incoming messages
2.69 (2010-11-12)
* Added support for connecting to SMTP server via SSL, see SMTP_SSL option
* Improved backwards compatibility by fixing issue with listing
feeds when run with older Python versions
* Added selective feed email overrides through OVERRIDE_EMAIL and
DEFAULT_EMAIL options
* Added NO_FRIENDLY_NAME to from from address only without the friendly name
* Added X-RSS-URL header in each message with the link to the original item
2.68 (2010-10-01)
* Added ability to pause/resume checking of individual feeds through
pause and unpause commands
* Added ability to import and export OPML feed lists through
importopml and exportopml commands
2.67 (2010-09-21)
* Fixed entries that include an id which is blank (i.e., an empty
string) were being resent
* Fixed some entries not being sent by email because they had bad From headers
* Fixed From headers with HTML entities encoded twice
* Compatibility changes to support most recent development versions
of feedparser
* Compatibility changes to support Google Reader feeds
2.66 (2009-12-21)
* Complete packaging of all necessary source files (rss2email,
html2text, feedparser, r2e, etc.) into one bundle
* Included a more complete config.py with all options
* Default to HTML mail and CSS results
* Added 'reset' command to erase history of already seen entries
* Changed project email and homepage
* Made exception and error output text more useful
* Added X-RSS-Feed and X-RSS-ID headers to each email for easier filtering
* Improved enclosure handling
* Fixed MacOS compatibility issues
Bump revision for PYTHON_VERSION_DEFAULT change.
Update to 2.65. From the changelog:
* Fixed warnings caused by Python v2.6 (using hashlib, removing
mimify, etc.)
* Deprecated QP_REQUIRED option as this is more than likely no
longer needed and part of what triggered Python warnings
* Fixed unicode errors in certain post headers
* Attempted to incorporate Debian/Ubuntu patches into the mainstream
release
* Support img type enclosures
* No file locking for SunOS
* Gracefully handle missing charsets
* Friendlier and more useful message if sendmail isn't installed
Switch to Python 2.5 as default. Bump revision of all packages that have changed runtime dependencies now.
Update to 2.63. From the changelog: * Licensed under GPL 2 & 3 now * Display feed number in warning and error message lines * Fix for unicode handling problem with certain entry titles
Update PYTHON_VERSIONS_COMPATIBLE - assume that Python 2.4 and 2.5 are compatible and allow checking for fallout. - remove PYTHON_VERSIONS_COMPATIBLE that are obsoleted by the 2.3+ default. Modify the others to deal with the removals.
Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target.
Fixed pkglint warnings.
Update to 2.62. From the changelog:
* Local feeds (/home/user/file.xml) should work
* Now really compatible with SunOS
* Don't wrap long subject headers
* New parameter CHARSET_LIST to override or supplement the order
in which charsets are tried against an entry
* Don't use blank content to generate id
* Using GMail as mail server should work
Update to 2.60. From the changelog: * Now compatible with SunOS * Correctly handle international character sets in email From Plus changes from Debian: * Document more options in config.py * Flesh out manual page * Check exit status of sendmail, and die if it fails * Use fcntl even on non-Sunos-Unix
Instead of creating files from patches, place them readably in
${FILESDIR} for easier tracking of external changes (e.g., Debian,
whence they came). No functional change.
Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.
Fixes PR 35265, although I did not use the patch provided therein.
Update to 2.59. From the changelog:
- Total rewrite of email code that should fix encoding problems
- Added configurable timeout for nonresponsive feeds
- Fixed incorrectly using text summary_detail instead of html content
- Fixed bug with deleting feed 0 if no default email was set
- Print name of feed that is being deleted
- Finally added oft-requested support for enclosures. Any enclosures,
such as a podcast MP3, will be listed under the entry URL
- Made feed timeout compatible with Python versions 2.2 and higher,
instead of v2.4 only
- Added optional, configurable CSS styling to HTML mail. Set
USE_CSS_STYLING=1 in your config.py to enable this. If you want
to tweak the look, modify STYLE_SHEET.
- Improved empty feed checking
- Improved invalid feed messages
- Unfortunately, rss2email is no longer compatible with Python v2.1.
Two of the most serious lingering issues with rss2email were
waiting forever for non-responsive feeds and its inablility to
properly handle feeds with international characters. To properly
fix these once and for all, rss2email now depends on functionality
that was not available until Python v2.2. Hopefully this does
not unduly inconvenience anyone that has not yet upgraded to a
more current version of Python.
Update to 2.57. From the changelog: * Merge various patches for reliability * Clean up error messages and typos * Only log into SMTP server once * SMTP AUTH * Windows support * HTML in titles
Recursive revision bump / recommended bump for gettext ABI change.
Depend on py-html2text rather than downloading our own copy. Bump PKGREVISION.
The r2e shell script now has a versioned filename. No user-visible change.
Update to rss2email 2.55 (fixed datetime parsing). While here, update to html2text 2.23 (fix for Python 2.1).
Create directories before installing files into them.
Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
Update to 2.54 (and html2text-2.21). Bug fixes.
Update to 2.53 (and to html2text 2.2). Changes in 2.52: Fixes include better error handling and support for HTML descriptions, Unicode headers, and Python 2.1. The most notable new feature is that textwrapping is back. To turn it on: echo "BODY_WIDTH = 78" >> config.py Other new options include BONUS_HEADER (for mailing lists) and OVERRIDE_FROM. (Check the top of rss2email.py for details on usage.) Thanks to Peter Vangorp, Lars Wizenius, Martin "Joey" Schulze, Ricardo Reyes, and everyone else who contributed a suggestion or bug report. Changes in 2.53: Fix a mistake left in 2.52 by accident.
Update to 2.511. From the changelog: * Typo bug with emails.
Update to 2.51. From the changelog for 2.5: * An HTML mail option. * SMTP support. * html2text 2.0. * A gaggle of bug fixes. * A gaggle of small improvements. And for 2.51: * Fixes a crash in older versions of Python on slow feeds. pkgsrc changes: * Set the versions of rss2email.py and html2text.py in one place.
Import rss2email 2.32. rss2email is a simple Python script that lets you subscribe to a list of XML newsfeeds and get new items sent to you by email. The man page and sample config file are from the Debian package.
Initial revision