You are not logged in.

#1 2012-07-01 08:37:21

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

rss feeds to imap server?

Hi, I have a dovecot imap server to have mail synchronized on my desktop, laptop and smartphone. I'd like to also have news feeds synchronised the same way. What are you guys using for this? I tried feed2imap and rss2imap from the AUR but both seem pretty outdated and don't manage all feeds (http://www.ilfattoquotidiano.it/feed/ for example isn't read by both of them). rss2imap in particular seems sweet, but if it's unmaintained and partially broken it's not of much use...

Maybe I can write some simple python script using some module to fetch the rss, put it in mail format, and copy it to my maildir? Are there straightforward modules that would let me do this without too much hacking?

Offline

#2 2012-07-10 15:23:32

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: rss feeds to imap server?

So I'd like to try rss2email, which you simply give an smtp server and it sends you the feed by email.

I was wondering, since I currently fetch my mail with getmail and distribute it to my maildir with procmail, could I get rss2email to send the feeds localy (i.e. copy it to my maildir) instead of using say google's smtp, and having the feeds go out on the internet and then back home on my machine? Can I do it with procmail or do I have to install something like sendmail?

Offline

#3 2012-07-10 16:59:07

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: rss feeds to imap server?

This should help I hope smile I have postfix configured to deliver system mail, so rss2email uses sendmail, not gmail's SMTP server, to deliver the mail (via procmail) directly to the mail folder. Offlineimap takes care of syncing the News/ folder to gmail without cluttering the Sent/ folder.

Scott

~/.procmailrc

PATH=/bin:/usr/bin:/usr/local/bin
SHELL=/bin/sh
MAILDIR=$HOME/mail/myuserfolder/
DEFAULT=$HOME/mail/myuserfolder/INBOX/
LOGFILE=$HOME/.procmaillog
VERBOSE=off

:0
* ^User-Agent: rss2email
{
    foldername=News
    # First deliver to maildir so LASTFOLDER gets set
    :0c
    $foldername/

    # Mark as read
    :0 ai
    * LASTFOLDER ?? ()\/[^/]+^^
    | mv `echo $LASTFOLDER | sed -e 's:/tmp/:/new/:g'` "$foldername/cur/$MATCH:2,S"
}

:0:
${DEFAULT}

~/.config/r2e/config.py  (partial)

### Options for configuring rss2email ###

# The email address messages are from by default:
DEFAULT_FROM = "myuser@gmail.com"

# The email address messages are sent to by default:
DEFAULT_TO = "myuser@localhost"
.
.
.

Last edited by firecat53 (2012-07-10 17:02:02)

Offline

#4 2012-07-10 18:53:38

fschiff
Member
Registered: 2011-10-06
Posts: 71

Re: rss feeds to imap server?

No experience, but came across this coincidentally

ep1027 :: Migrating away from Google Reader
on
http://hackerpublicradio.org/

Feed2Imap
http://home.gna.org/feed2imap/

Offline

#5 2012-07-10 19:27:07

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: rss feeds to imap server?

I also tried feed2imap but it hasn't been updated for Ruby 1.9 and I didn't feel like maintaining a ruby 1.8 AUR install just for that. Sounds like a great idea, though!

Scott

Offline

#6 2012-07-10 21:51:44

Nareto
Member
From: Pisa,Italy
Registered: 2009-07-18
Posts: 148

Re: rss feeds to imap server?

firecat53, thank you... so I guess it's not possible to skip postfix in this process, i.e. have rss2email directly give the mails to procmail? I have nothing in contrary to postfix in principle, but since I don't have it installed and configured, and I like to KISS, I'd rather not use it if it's not strictly necessary...

regarding feed2imap and rss2imap, yes they're nice but unmaintained/partially broken as I said in OP

Offline

#7 2012-07-10 22:27:31

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: rss feeds to imap server?

No, you should be able to use another smtp program (msmtp, esmtp, fdm, etc) to configure local mail delivery. On my laptop I use esmtp. Postfix on my server.

~/.esmtprc

mda "/usr/bin/procmail -d %T"
force_mda = "firecat53"

I have the same .procmailrc on my server and laptop (even though rss2email is only on the server) and I get local mail delivery (cron jobs, etc) on both just fine.

Scott

Offline

#8 2013-03-14 04:11:33

vali
Member
Registered: 2010-02-05
Posts: 2

Re: rss feeds to imap server?

I think it's time to revive this topic as google is going to power down the Google Reader:
http://googlereader.blogspot.com.au/201 … eader.html

I'd rather like to inject the feeds directly into IMAP as opposed to taking an indirection via SMTP. If rss2email still happens to be the best option, it should be feasible to replace sendmail with a wrapper script that just uploads the feed items to an IMAP server.

Offline

#9 2013-03-14 05:00:34

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: rss feeds to imap server?

A better solution probably would have been to have started a new thread with perhaps a link to this one.  It is typically frowned upon to resurrect old threads.


I laugh, yet the joke is on me

Offline

Board footer

Powered by FluxBB