--- rss2email-2.55/r2e +++ rss2email-2.55/r2e @@ -1,3 +1,17 @@ -#!/bin/sh +#!/usr/bin/env sh +if [ ! -e ~/.rss2email ]; +then + echo -n "initialising ~/.rss2email... " + # if this fails (because we don't use -p) then something is really + # wrong + mkdir ~/.rss2email + # make the directory only accessible, readable and writable to the + # user + chmod 700 ~/.rss2email + cp /usr/share/rss2email/config.py.sample ~/.rss2email/config.py + echo "done" + echo "You should now configure rss2email by editing ~/.rss2email/config.py" +fi + cd ~/.rss2email/ -python rss2email.py feeds.dat $* +python /usr/share/rss2email/rss2email.py feeds.dat $* --- rss2email-2.55/rss2email.py +++ rss2email-2.55/rss2email.py @@ -387,6 +387,7 @@ "\nSubject: " + header7bit(title) + "\nDate: " + time.strftime("%a, %d %b %Y %H:%M:%S -0000", datetime) + "\nUser-Agent: rss2email" + # really should be X-Mailer + "\nX-rss-feed: " + header7bit(f.url) + BONUS_HEADER + "\nContent-Type: ") # but backwards-compatibility