Package: rss2email Version: 1:2.60-6 Severity: wishlist Tags: patch With a large number of feeds received through rss2email, it is hard to see at an instant which feed has generated a particular message. The attached patch adds a configurable X-Feed-URL header that allows for easier debugging and filtering.
-- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages rss2email depends on: ii python 2.4.4-6 An interactive high-level object-o ii python-feedparser 4.1-9 Universal Feed Parser for Python ii python-support 0.7.4 automated rebuilding support for p rss2email recommends no packages. -- no debconf information
--- rss2email.py.orig 2007-10-18 14:15:35.000000000 +0200 +++ rss2email.py 2007-10-18 14:16:13.000000000 +0200 @@ -58,6 +58,10 @@ # 0: Just use the DEFAULT_FROM email instead. USE_PUBLISHER_EMAIL = 0 +# 1: Add the URL of the RSS feed to each message: X-Feed-URL: http://... +# 0: Don't add the feed URL +ADD_FEED_URL_HEADER = 1 + # 1: Use SMTP_SERVER to send mail. # 0: Call /usr/sbin/sendmail to send mail. SMTP_SEND = 0 @@ -585,6 +589,9 @@ datehdr = time.strftime("%a, %d %b %Y %H:%M:%S -0000", datetime) useragenthdr = "rss2email" extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr} + if ADD_FEED_URL_HEADER: + extraheaders['X-Feed-URL'] = f.url + if BONUS_HEADER != '': for hdr in BONUS_HEADER.strip().splitlines(): pos = hdr.strip().find(':')