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