Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 294053

Summary: New ebuild: net-mail/r2eui
Product: Gentoo Linux Reporter: Torsten Kurbad <torsten>
Component: Current packagesAssignee: Default Assignee for New Packages <maintainer-wanted>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: r2eui-1.1.ebuild
feeds.dat
r2eui
r2eui-1.1-cmdline_options.patch
r2eui-1.1-template_urls.patch
r2eui.confd
r2eui.initd
r2eui.initd

Description Torsten Kurbad 2009-11-22 14:21:55 UTC
r2eui is the web interface for net-mail/rss2email.

From author's homepage (http://rss2email.infogami.com/webui):

Up until now, using rss2email has been confined to the UNIX or Windows command line. Most of the time, this isn't necessarily a bad thing. However, if you need to remove a few feeds from your list, it can be a pain to find every feed's number and then delete them in the correct order (i.e. reverse numerical order). Otherwise you accidentally delete the wrong feeds. So to remedy this and give a command-line tool a prettier face, we've developed a simple web-based UI for rss2email.

I enhanced this version by

1. unifying tab/space indentations in the source code,
2. adding some command line options, e.g. to create a PID file for daemon-like use or to customize the path to the feeds.dat file,
3. adding init.d and conf.d scripts,
4. changing the web template, so it works through (apache) proxy, e.g. if you want to restrict access and/or use SSL,
5. cleaning up the code here and there.

Reproducible: Always

Steps to Reproduce:
1. Put the ebuild into net-mail/r2eui in your local overlay
2. Put all patches and other supplied files in ${FILESDIR}
3. Create a digest and merge.
4. Run r2eui -h to see available command line options and hints.
Comment 1 Torsten Kurbad 2009-11-22 14:22:21 UTC
Created attachment 210886 [details]
r2eui-1.1.ebuild
Comment 2 Torsten Kurbad 2009-11-22 14:22:55 UTC
Created attachment 210887 [details]
feeds.dat
Comment 3 Torsten Kurbad 2009-11-22 14:23:21 UTC
Created attachment 210888 [details]
r2eui
Comment 4 Torsten Kurbad 2009-11-22 14:23:57 UTC
Created attachment 210890 [details, diff]
r2eui-1.1-cmdline_options.patch
Comment 5 Torsten Kurbad 2009-11-22 14:24:21 UTC
Created attachment 210892 [details, diff]
r2eui-1.1-template_urls.patch
Comment 6 Torsten Kurbad 2009-11-22 14:24:53 UTC
Created attachment 210894 [details]
r2eui.confd
Comment 7 Torsten Kurbad 2009-11-22 14:25:19 UTC
Created attachment 210895 [details]
r2eui.initd
Comment 8 Torsten Kurbad 2009-11-22 16:11:28 UTC
If you want to automate sending Mails for the configured feeds, don't use rss2emails r2e directly (e.g. in cron) because of the non-standard location of the feeds.dat file.

Instead, use something like this in your /etc/crontab:

# Run rss2email every 5 minutes
*/5   *  * * *  root    test -f /usr/share/rss2email/rss2email.py && \
    exec /usr/bin/python \
        /usr/share/rss2email/rss2email.py /etc/rss2email/feeds.dat run
Comment 9 Torsten Kurbad 2009-12-06 17:33:09 UTC
Created attachment 212251 [details]
r2eui.initd

This is a "cleaner" version of r2eui.initd that uses start-stop-daemon in a consistent way, thus showing proper status (instead of "crashed") in rc-status.

Enjoy!