Thufir wrote: > Ok, progress :) > > some sort of error relating to specific rss feed? I tried a few, so > that seems unlikely. I think it's some error caused by bad data in the feed list. Maybe that got there somehow while you were trying various things? > [root@benetleilax .rss2email]# whoami > root ::shudders and tries not to look:: > [root@benetleilax .rss2email]# cat config.py > # Find some common used config options below; all can be found all and > # descriptions in the section titled "### Vaguely Customizable Options ###" > # near the top of /usr/share/rss2email/rss2email.py > > DEFAULT_FROM="bozo@xxxxxxxxxxxxxxxx" > HTML_MAIL=1 > SMTP_SEND=1 > SMTP_SERVER="smtp.gmail.com" > AUTHREQUIRED=0 > SMTP_USER="hawat.thufir" > SMTP_PASS="password" > #no, that's not my password :) > DATE_HEADER=0 > # PROXY="" Mostly that looks sane. I don't know if you'll get errors from gmail if you connect with the default from. Perhaps that should be changed to something legitimate. Also, with AUTHREQUIRED=0, I don't think that the SMTP_USER and SMTP_PASS will be used (just guessing, as I haven't poked at the code much). Of course, these are only potential issues once you get past the error below. :) > [root@benetleilax .rss2email]# r2e list > default email: hawat.thufir@xxxxxxxxx > 1: feedparser (default: hawat.thufir@xxxxxxxxx) > 2: 4.1 (default: hawat.thufir@xxxxxxxxx) > 3: http://vancouver.craigslist.org/mcy/index.rss (default: hawat.thufir@xxxxxxxxx) #1 and #2 look wrong. Perhaps those got in there during other experiments? Maybe try moving the conf dir and starting fresh? mv ~/.rss2email ~/.rss2email.bak r2e new hawat.thufir@xxxxxxxxx Edit ~/.rss2email/config.py to contain # Find some common used config options below; all can be found all and # descriptions in the section titled "### Vaguely Customizable Options ###" # near the top of /usr/share/rss2email/rss2email.py DEFAULT_FROM="bozo@xxxxxxxxxxxxxxxx" HTML_MAIL=1 SMTP_SEND=1 SMTP_SERVER="smtp.gmail.com" AUTHREQUIRED=1 SMTP_USER="hawat.thufir" SMTP_PASS="password" #no, that's not my password :) DATE_HEADER=0 # PROXY="" Then add a test feed: r2e add http://vancouver.craigslist.org/mcy/index.rss r2e run > [root@benetleilax .rss2email]# r2e run > E: error in "feedparser" feed (<unknown>:2:-1: Document is empty) > E: error in "4.1" feed (<unknown>:2:-1: Document is empty) > === SEND THE FOLLOWING TO rss2email@xxxxxxxxxxx === > E: could not parse http://vancouver.craigslist.org/mcy/index.rss > Traceback (most recent call last): > File "/usr/share/rss2email/rss2email.py", line 644, in run > smtpserver = send(fromhdr, tohdr, subjecthdr, content, contenttype, > extraheaders, smtpserver) > File "/usr/share/rss2email/rss2email.py", line 178, in send > smtpserver.sendmail(sender, recipient, msg_as_string) > File "/usr/lib/python2.4/smtplib.py", line 684, in sendmail > raise SMTPSenderRefused(code, resp, from_addr) > SMTPSenderRefused: (530, '5.7.0 Must issue a STARTTLS command first > 40sm6172305nzf', u'"craigslist | motorcycles/scooters in vancouver, BC" > <webmaster@xxxxxxxxxxxxxx>') This looks like an error caused while trying to connect to gmail. Possibly this is due to AUTHREQUIRED being set to 0 instead of 1 in your config? There are certainly many variables and places things could be going awry. FWIW, I added that feed and did r2e run without errors. So it does seem to work. > It comes across as a bug, but it seems more likely to be user error, > I must admit. :) I think you're not far from having things working, but there might be some junk left in your config from getting to this point. Hopefully a fresh config file might get you better results. -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ====================================================================== People try to live within their income so they can afford to pay taxes to a government that can't live within its income. -- Robert Half
Attachment:
pgpFtG74i68al.pgp
Description: PGP signature