Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2018 11:55:58 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r484444 - in head/mail/rss2email2: . files
Message-ID:  <201811081155.wA8Btwvg082855@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Thu Nov  8 11:55:58 2018
New Revision: 484444
URL: https://svnweb.freebsd.org/changeset/ports/484444

Log:
  mail/rss2email2: Add workaround for filtering out bad tags
  
  This can apparently be triggered with malformed RSS feeds.
  
  Traceback (most recent call last):
    File "/usr/share/rss2email/rss2email.py", line 711, in run
      tagline = ",".join(taglist)
  TypeError: sequence item 1: expected string or Unicode, NoneType found
  
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734327
  
  - Reset maintainer due to the long timeout
  
  PR:		214934
  Submitted by:	jonathan@invertedearth.net
  Approved by:	srg@guglielmo.us (maintainer timeout, ~2 years)

Added:
  head/mail/rss2email2/files/patch-rss2email.py   (contents, props changed)
Modified:
  head/mail/rss2email2/Makefile

Modified: head/mail/rss2email2/Makefile
==============================================================================
--- head/mail/rss2email2/Makefile	Thu Nov  8 11:05:52 2018	(r484443)
+++ head/mail/rss2email2/Makefile	Thu Nov  8 11:55:58 2018	(r484444)
@@ -3,12 +3,12 @@
 
 PORTNAME=	rss2email
 PORTVERSION=	2.71
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	mail python
 MASTER_SITES=	http://www.allthingsrss.com/rss2email/
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	srg@guglielmo.us
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Emails posts from subscribed RSS/Atom newsfeeds
 
 LICENSE=	GPLv2 GPLv3

Added: head/mail/rss2email2/files/patch-rss2email.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/rss2email2/files/patch-rss2email.py	Thu Nov  8 11:55:58 2018	(r484444)
@@ -0,0 +1,13 @@
+https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734327
+
+--- rss2email.py.orig	2018-01-14 00:42:27 UTC
++++ rss2email.py
+@@ -694,7 +694,7 @@ def run(num=None):
+ 							for tag in tags:
+ 								taglist.append(tag['term'])
+ 						if taglist:
+-							tagline = ",".join(taglist)
++							tagline = ",".join(filter(None, taglist))
+ 					
+ 					extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr, 'X-RSS-Feed': f.url, 'X-RSS-ID': id, 'X-RSS-URL': link, 'X-RSS-TAGS' : tagline}
+ 					if BONUS_HEADER != '':



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811081155.wA8Btwvg082855>