Hi. RSS feed url is very useful for procmail and other mail filters/processors. So +1 for this one.
I'm attaching patch, that adds RSS feed url as well as RSS feed title (NOT same as message titile) to headers. -- WBR,ls. Dmitry
--- /usr/share/rss2email/rss2email.py.orig 2008-05-29 00:48:13.000000000 +0300 +++ /usr/share/rss2email/rss2email.py 2008-06-20 21:38:27.000000000 +0300 @@ -140,7 +140,7 @@ msg['To'] = formataddr((recipient_name, recipient_addr)) msg['Subject'] = Header(unicode(subject), header_charset) for hdr in extraheaders.keys(): - msg[hdr] = Header(unicode(extraheaders[hdr], header_charset)) + msg[hdr] = Header(unicode(extraheaders[hdr]), header_charset) fromhdr = formataddr((sender_name, sender_addr)) msg['From'] = fromhdr @@ -544,6 +544,7 @@ continue r.entries.reverse() + rsstitle=r.feed.get('title', '') for entry in r.entries: id = getID(entry) @@ -591,7 +592,7 @@ subjecthdr = title datehdr = time.strftime("%a, %d %b %Y %H:%M:%S -0000", datetime) useragenthdr = "rss2email" - extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr} + extraheaders = {'Date': datehdr, 'User-Agent': useragenthdr, 'X-RSS-Url': f.url, 'X-RSS-Title': rsstitle} if BONUS_HEADER != '': for hdr in BONUS_HEADER.strip().splitlines(): pos = hdr.strip().find(':')
signature.asc
Description: Digital signature