Version 2.71 Release plus Other Major Updates

Good news everyone! Two important tools that rss2email depends on have recently received major upgrades: feedparser and html2text. These should improve rss2email’s ability to handle feeds with poorly formed HTML and other weirdness.

The rss2email application itself also needed to be upgraded some to support these. Changes in this version:

  • Upgraded to feedparser v5.01! (http://code.google.com/p/feedparser/)
  • Upgraded to html2text v3.01! (https://github.com/aaronsw/html2text)
  • 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
You can leave a response, or trackback from your own site.

59 Responses to “Version 2.71 Release plus Other Major Updates”

  1. Mehmedov says:

    === rss2email encountered a problem with this feed ===
    === See the rss2email FAQ at http://www.allthingsrss.com/rss2email/ for assistance ===
    === If this occurs repeatedly, send this to lindsey@allthingsrss.com ===
    E: could not parse http://www.scriptlance.com/cgi-bin/freelancers/rss_projects.cgi?show=300
    Traceback (most recent call last):
    File “/usr/share/rss2email/rss2email.py”, line 683, in run
    name = h2t.unescape(getName(r, entry))
    File “/usr/share/rss2email/rss2email.py”, line 416, in getName
    if hasattr(r, “url”) and r.url in OVERRIDE_FROM.keys():
    AttributeError: ‘set’ object has no attribute ‘keys’
    rss2email 2.70
    feedparser 5.0.1
    html2text 3.02
    Python 2.7.1 (r271:86832, Apr 12 2011, 16:15:16)
    [GCC 4.6.0 20110331 (Red Hat 4.6.0-2)]
    === END HERE ===

  2. Mehmedov: try the most recent version and let me know if that doesn’t fix the problem

  3. George Yong says:

    Hi,

    Great program, I’ve been using it for as long as I can remember.
    I recently started getting this error, with my feeds.dat at about 13MB:

    Traceback (most recent call last):
    File “rss2email.py”, line 911, in
    else: run()
    File “rss2email.py”, line 544, in run
    feeds, feedfileObject = load()
    File “rss2email.py”, line 487, in load
    feeds = pickle.load(feedfileObject)
    EOFError

    From what I can find online (http://stackoverflow.com/questions/664444/how-to-recover-a-broken-python-cpickle-dump), its due to a problem with my feeds.dat, but I have no clue what to do.

    It’s the same with the debian version (1:2.65-1) and 2.71 from here.

    Can you help?

  4. George,

    Hmm. That’s really big for a feeds.dat file. I have around 200 feeds in mine and the .dat file is only around 2MB. The biggest I’ve seen mine is around 8MB.

    If feeds.dat somehow gets corrupted it can be possible to repair in a text editor though.

    In any case, do you have a backup of feeds.dat or an OPML export of your feeds list?

  5. George Yong says:

    Hi Lindsey,

    Thanks for the quick reply!

    At last count there were 304 items on my feeds list.

    I have an old copy of feeds.dat from December 1 that’s about 8MB, and an opml export from just before then. I should also be able to rebuild my feeds list from a cached web page when I last ran r2eui.

  6. George Yong says:

    How would I go about repairing feeds.dat with a text editor?

  7. Viqsi says:

    Today I discovered to my slight horror that while rss2email does just fine with authenticated feeds (“http://username:password@site.com/feed”), it’ll also happily include the authentication credentials in the emails it generates (particularly in the extra headers) – and if you run updates via an unattended cron job, there’s a good chance that if something goes wrong with those feeds, printed warnings will also get emailed to you with that same information. Which is just *wonderful* if you’re, say, picking up email via unsecured pop3 and you’re the paranoid type…

    So I’ve changed a password or two ;) and implemented a quick-and-dirty patch. See: http://nwcs.com/~jvc/rss2email-2.71_strip-auth-credentials.diff

    (This would be my first time ever actually making any change to anything Python-related, incidentally. Daddy raised me on Perl, so this is an alien and frightening experience for me. “Unexpected indent? What kind of warning is that?” ;) )

    Hope this helps! :D

  8. RazielTD says:

    How is it possible to set a list of email addreses to a single feed??

    Thx

  9. Raziel: rss2email itself doesn’t support sending entries from RSS feeds to multiple email addresses. But you could setup an email alias or email list and have rss2email use that address. Should accomplish the same thing.

Leave a Reply