aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorAlexander Verbovetsky <alik@ejik.org>2022-10-19 06:44:20 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-10-19 06:44:20 +0700
commit07147931f63270ba62af9bd143ac99c9534b9d2a (patch)
treec288b81175f467b229bc2086f2c7b8a24e29c0c8 /network
parent9d22daaaf0fac506a33ca375593bd72b0cb91a03 (diff)
network/rss2email: Updated for version 3.14.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/rss2email/4b36e28.patch239
-rw-r--r--network/rss2email/README10
-rw-r--r--network/rss2email/rss2email.SlackBuild10
-rw-r--r--network/rss2email/rss2email.info6
-rw-r--r--network/rss2email/slack-desc2
5 files changed, 11 insertions, 256 deletions
diff --git a/network/rss2email/4b36e28.patch b/network/rss2email/4b36e28.patch
deleted file mode 100644
index 5b6a050c7eaa..000000000000
--- a/network/rss2email/4b36e28.patch
+++ /dev/null
@@ -1,239 +0,0 @@
-diff -Naur orig/CHANGELOG new/CHANGELOG
---- orig/CHANGELOG 2020-08-31 18:03:24.000000000 +0300
-+++ new/CHANGELOG 2020-09-05 16:09:45.000000000 +0300
-@@ -1,4 +1,7 @@
- UNRELEASED
-+ * Improve log messages
-+ * Remove documentation of `smtp-ssl-protocol` as this option was dropped in 2016
-+ * Stop forging SMTP and sendmail envelope sender (#134)
-
- v3.12.2 (2020-08-31)
- * Fix bug `AttributeError: 'NoneType' object has no attribute 'close'` (#126)
-diff -Naur orig/r2e.1 new/r2e.1
---- orig/r2e.1 2020-08-31 18:03:24.000000000 +0300
-+++ new/r2e.1 2020-09-05 16:09:45.000000000 +0300
-@@ -253,8 +253,6 @@
- SMTP server
- .IP smtp-ssl
- Connect to the SMTP server using SSL
--.IP smtp-ssl-protocol
--TLS/SSL version to use on STARTTLS when not using 'smtp-ssl'.
- .RE
- .SS IMAP configuration
- .IP imap-auth
-diff -Naur orig/rss2email/__init__.py new/rss2email/__init__.py
---- orig/rss2email/__init__.py 2020-08-31 18:03:24.000000000 +0300
-+++ new/rss2email/__init__.py 2020-09-05 16:09:45.000000000 +0300
-@@ -26,7 +26,7 @@
- import sys as _sys
-
-
--__version__ = '3.12.2'
-+__version__ = '3.12.1'
- __url__ = 'https://github.com/rss2email/rss2email'
- __author__ = 'The rss2email maintainers'
- __email__ = 'rss2email@tremily.us'
-diff -Naur orig/rss2email/config.py new/rss2email/config.py
---- orig/rss2email/config.py 2020-08-31 18:03:24.000000000 +0300
-+++ new/rss2email/config.py 2020-09-05 16:09:45.000000000 +0300
-@@ -83,11 +83,11 @@
- # Transfer-Encoding. For local mailing it is safe and
- # convenient to use 8bit.
- ('use-8bit', str(False)),
-- # True: Only use the 'from' address.
-+ # True: Only use the 'from' address. Overrides the use-publisher-email setting.
- # False: Use the email address specified by the feed, when possible.
- ('force-from', str(False)),
-- # True: Use the publisher's email if you can't find the author's.
-- # False: Just use the 'from' email instead.
-+ # True: Use author's email if found, or use publisher's email if found, or use the 'from' setting.
-+ # False: Use author's email if found, or use the 'from' setting.
- ('use-publisher-email', str(False)),
- # If empty, only use the feed email address rather than
- # friendly name plus email address. Available attributes may
-@@ -132,7 +132,7 @@
- # because the old entries will not be recorded under their new
- # link-based ids.
- ('trust-link', str(False)),
-- # If 'trust-guid' or 'trust-link' is True, this settings allows to receive
-+ # If 'trust-guid' or 'trust-link' is True, this setting allows to receive
- # a new email message in reply to the previous one when the post changes.
- ('reply-changes', str(False)),
- # To most correctly encode emails with international
-diff -Naur orig/rss2email/email.py new/rss2email/email.py
---- orig/rss2email/email.py 2020-08-31 18:03:24.000000000 +0300
-+++ new/rss2email/email.py 2020-09-05 16:09:45.000000000 +0300
-@@ -151,7 +151,7 @@
- message[key] = _Header(value, encoding)
- return message
-
--def smtp_send(sender, recipient, message, config=None, section='DEFAULT'):
-+def smtp_send(recipient, message, config=None, section='DEFAULT'):
- if config is None:
- config = _config.CONFIG
- server = config.get(section, 'smtp-server')
-@@ -190,7 +190,7 @@
- except Exception as e:
- raise _error.SMTPAuthenticationError(
- server=server, username=username)
-- smtp.send_message(message, sender, recipient.split(','))
-+ smtp.send_message(message, config.get(section, 'from'), recipient.split(','))
- smtp.quit()
-
- def imap_send(message, config=None, section='DEFAULT'):
-@@ -345,12 +345,12 @@
- else:
- return bytesio.getvalue()
-
--def sendmail_send(sender, recipient, message, config=None, section='DEFAULT'):
-+def sendmail_send(recipient, message, config=None, section='DEFAULT'):
- if config is None:
- config = _config.CONFIG
- message_bytes = _flatten(message)
- sendmail = config.get(section, 'sendmail')
-- sender_name,sender_addr = _parseaddr(sender)
-+ sender_name,sender_addr = _parseaddr(config.get(section, 'from'))
- _LOG.debug(
- 'sending message to {} via {}'.format(recipient, sendmail))
- try:
-@@ -366,11 +366,11 @@
- except Exception as e:
- raise _error.SendmailError() from e
-
--def send(sender, recipient, message, config=None, section='DEFAULT'):
-+def send(recipient, message, config=None, section='DEFAULT'):
- protocol = config.get(section, 'email-protocol')
- if protocol == 'smtp':
- smtp_send(
-- sender=sender, recipient=recipient, message=message,
-+ recipient=recipient, message=message,
- config=config, section=section)
- elif protocol == 'imap':
- imap_send(message=message, config=config, section=section)
-@@ -378,5 +378,5 @@
- maildir_send(message=message, config=config, section=section)
- else:
- sendmail_send(
-- sender=sender, recipient=recipient, message=message,
-+ recipient=recipient, message=message,
- config=config, section=section)
-diff -Naur orig/rss2email/error.py new/rss2email/error.py
---- orig/rss2email/error.py 2020-08-31 18:03:24.000000000 +0300
-+++ new/rss2email/error.py 2020-09-05 16:09:45.000000000 +0300
-@@ -42,15 +42,14 @@
-
-
- class TimeoutError (RSS2EmailError):
-- def __init__(self, time_limited_function, message=None):
-- if message is None:
-- if time_limited_function.error is not None:
-- message = (
-- 'error while running time limited function: {}'.format(
-- time_limited_function.error[1]))
-- else:
-- message = '{} second timeout exceeded'.format(
-- time_limited_function.timeout)
-+ def __init__(self, time_limited_function):
-+ if time_limited_function.error is not None:
-+ message = (
-+ 'error while running time limited function in {}: {}'.format(
-+ time_limited_function.name, time_limited_function.error[1]))
-+ else:
-+ message = '{} second timeout exceeded in {}'.format(
-+ time_limited_function.timeout, time_limited_function.name)
- super(TimeoutError, self).__init__(message=message)
- self.time_limited_function = time_limited_function
-
-@@ -148,8 +147,9 @@
- class InvalidFeedConfig (FeedError):
- def __init__(self, setting, feed, message=None, **kwargs):
- if not message:
-- message = "invalid feed configuration {}".format(
-- {setting: getattr(feed, setting)})
-+ message = (
-+ "invalid feed configuration '{setting}' in {feed}".format(
-+ setting=getattr(feed, setting), feed=feed))
- super(InvalidFeedConfig, self).__init__(
- feed=feed, message=message, **kwargs)
- self.setting = setting
-diff -Naur orig/rss2email/feed.py new/rss2email/feed.py
---- orig/rss2email/feed.py 2020-08-31 18:03:24.000000000 +0300
-+++ new/rss2email/feed.py 2020-09-05 16:09:45.000000000 +0300
-@@ -373,7 +373,7 @@
- kwargs = {}
- if proxy:
- kwargs['handlers'] = [_urllib_request.ProxyHandler({'http':proxy})]
-- f = _util.TimeLimitedFunction(timeout, _feedparser.parse)
-+ f = _util.TimeLimitedFunction('feed {}'.format(self.name), timeout, _feedparser.parse)
- return f(self.url, self.etag, modified=self.modified, **kwargs)
-
- def _process(self, parsed):
-@@ -773,9 +773,9 @@
- if entry.get('summary_detail', None):
- contents.append(entry.summary_detail)
- if self.html_mail:
-- types = ['text/html', 'text/plain']
-+ types = ['application/xhtml+xml', 'text/html', 'text/plain']
- else:
-- types = ['text/plain', 'text/html']
-+ types = ['text/plain', 'text/html', 'application/xhtml+xml']
- for content_type in types:
- for content in contents:
- if content['type'] == content_type:
-@@ -871,7 +871,7 @@
- section = self.section
- if section not in self.config:
- section = 'DEFAULT'
-- _email.send(sender=sender, recipient=self.to, message=message,
-+ _email.send(recipient=self.to, message=message,
- config=self.config, section=section)
-
- def run(self, send=True):
-diff -Naur orig/rss2email/feeds.py new/rss2email/feeds.py
---- orig/rss2email/feeds.py 2020-08-31 18:03:24.000000000 +0300
-+++ new/rss2email/feeds.py 2020-09-05 16:09:45.000000000 +0300
-@@ -239,11 +239,10 @@
- def load(self, require=False):
- _LOG.debug('load feed configuration from {}'.format(self.configfiles))
- if self.configfiles:
-- self.read_configfiles = self.config.read(self.configfiles)
-+ read_configfiles = self.config.read(self.configfiles)
- else:
-- self.read_configfiles = []
-- _LOG.debug('loaded configuration from {}'.format(
-- self.read_configfiles))
-+ read_configfiles = []
-+ _LOG.debug('loaded configuration from {}'.format(read_configfiles))
- self._load_feeds(require=require)
-
- def _load_feeds(self, require):
-diff -Naur orig/rss2email/util.py new/rss2email/util.py
---- orig/rss2email/util.py 2020-08-31 18:03:24.000000000 +0300
-+++ new/rss2email/util.py 2020-09-05 16:09:45.000000000 +0300
-@@ -35,19 +35,20 @@
- >>> def sleeping_return(sleep, x):
- ... time.sleep(sleep)
- ... return x
-- >>> TimeLimitedFunction(0.5, sleeping_return)(0.1, 'x')
-+ >>> TimeLimitedFunction('sleeping', 0.5, sleeping_return)(0.1, 'x')
- 'x'
-- >>> TimeLimitedFunction(0.5, sleeping_return)(10, 'y')
-+ >>> TimeLimitedFunction('sleeping', 0.5, sleeping_return)(10, 'y')
- Traceback (most recent call last):
- ...
-- rss2email.error.TimeoutError: 0.5 second timeout exceeded
-- >>> TimeLimitedFunction(0.5, time.sleep)('x')
-+ rss2email.error.TimeoutError: 0.5 second timeout exceeded in sleeping
-+ >>> TimeLimitedFunction('sleep', 0.5, time.sleep)('x')
- Traceback (most recent call last):
- ...
-- rss2email.error.TimeoutError: error while running time limited function: a float is required
-+ rss2email.error.TimeoutError: error while running time limited function in sleep: a float is required
- """
-- def __init__(self, timeout, target, **kwargs):
-+ def __init__(self, name, timeout, target, **kwargs):
- super(TimeLimitedFunction, self).__init__(target=target, daemon=True, **kwargs)
-+ self.name = name
- self.timeout = timeout
- self.result = None
- self.error = None
diff --git a/network/rss2email/README b/network/rss2email/README
index 1981e478bbb0..d21b699b7794 100644
--- a/network/rss2email/README
+++ b/network/rss2email/README
@@ -1,6 +1,6 @@
-A python script that converts RSS/Atom newsfeeds to email.
+A python script that forward RSS feeds to your email address. This
+allows you to view RSS feeds in an interface you are already familiar
+with and to apply filters to incoming feeds.
-It is the successor to the rss2email by Aaron Swartz, available on SBo
-as r2e.
-
-rss2email will conflict with r2e.
+It is the community maintained successor to the rss2email by Aaron
+Swartz.
diff --git a/network/rss2email/rss2email.SlackBuild b/network/rss2email/rss2email.SlackBuild
index 762952240a46..e5aa792998ef 100644
--- a/network/rss2email/rss2email.SlackBuild
+++ b/network/rss2email/rss2email.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for rss2email
-# Copyright 2020, Alexander Verbovetsky, Moscow, Russia
+# Copyright 2020-2022, Alexander Verbovetsky, Moscow, Russia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rss2email
-VERSION=${VERSION:-3.12.2} # Don't forget to remove the patch below!!!
+VERSION=${VERSION:-3.14}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -73,9 +70,6 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
-# For ver. 3.12.2 only
-patch -p1 < $CWD/4b36e28.patch
-
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
diff --git a/network/rss2email/rss2email.info b/network/rss2email/rss2email.info
index d5f116ba7005..8d14e4d85632 100644
--- a/network/rss2email/rss2email.info
+++ b/network/rss2email/rss2email.info
@@ -1,8 +1,8 @@
PRGNAM="rss2email"
-VERSION="3.12.2"
+VERSION="3.14"
HOMEPAGE="https://github.com/rss2email/rss2email"
-DOWNLOAD="https://github.com/rss2email/rss2email/archive/v3.12.2/rss2email-3.12.2.tar.gz"
-MD5SUM="9975f0c0f637daaa025d09ae54c33a8c"
+DOWNLOAD="https://github.com/rss2email/rss2email/archive/v3.14/rss2email-3.14.tar.gz"
+MD5SUM="68ed27825b1a7fb7fa7c3396954ed654"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="feedparser html2text"
diff --git a/network/rss2email/slack-desc b/network/rss2email/slack-desc
index 9c4d4fb883c8..63a31dbb532e 100644
--- a/network/rss2email/slack-desc
+++ b/network/rss2email/slack-desc
@@ -8,7 +8,7 @@
|-----handy-ruler------------------------------------------------------|
rss2email: rss2email (rss to email gateway)
rss2email:
-rss2email: A python script that converts RSS/Atom newsfeeds to email.
+rss2email: A python script that forward RSS feeds to your email address.
rss2email:
rss2email:
rss2email: