Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294053 - New ebuild: net-mail/r2eui
Summary: New ebuild: net-mail/r2eui
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-22 14:21 UTC by Torsten Kurbad
Modified: 2009-12-06 17:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
r2eui-1.1.ebuild (r2eui-1.1.ebuild,1.55 KB, text/plain)
2009-11-22 14:22 UTC, Torsten Kurbad
Details
feeds.dat (feeds.dat,6 bytes, application/octet-stream)
2009-11-22 14:22 UTC, Torsten Kurbad
Details
r2eui (r2eui,118 bytes, text/plain)
2009-11-22 14:23 UTC, Torsten Kurbad
Details
r2eui-1.1-cmdline_options.patch (r2eui-1.1-cmdline_options.patch,9.81 KB, patch)
2009-11-22 14:23 UTC, Torsten Kurbad
Details | Diff
r2eui-1.1-template_urls.patch (r2eui-1.1-template_urls.patch,2.25 KB, patch)
2009-11-22 14:24 UTC, Torsten Kurbad
Details | Diff
r2eui.confd (r2eui.confd,224 bytes, text/plain)
2009-11-22 14:24 UTC, Torsten Kurbad
Details
r2eui.initd (r2eui.initd,465 bytes, text/plain)
2009-11-22 14:25 UTC, Torsten Kurbad
Details
r2eui.initd (r2eui.initd,454 bytes, text/plain)
2009-12-06 17:33 UTC, Torsten Kurbad
Details

Note You need to log in before you can comment on or make changes to this bug.
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!