Sorting the Harvest
Charly's Column – rss2email
In order to keep up to date with security, Charly uses RSS feeds, among other things. He lets rss2email send the most important feeds directly to his mailbox to ensure that nothing is overlooked.
RSS feeds are still an essential part of my daily information refueling plan. I sort my feeds in Miniflux, a web-based RSS aggregator, which I wrote about in this column back in 2014 [1]. I am happy to say that Miniflux is still being actively developed.
I have a very small number of RSS feeds emailed to me directly. These are feeds that warn me of acute security problems. By having them delivered directly to my inbox, I can avoid the risk of missing an important article – Miniflux can handle between 200 and 250 feeds, most of which I just skim.
I use rss2email – a very logical choice of name – to email me the feeds. It can be found in the package sources of almost all the popular distributions. On Ubuntu, for example, I installed it with the following call:
$ sudo apt install rss2email
Before using rss2email for the first time, you have to create a configuration file; the approach is very clear-cut. If there is no folder named .config/
in your home directory, you have to create one and cd
to it:
$ cd $ mkdir .config $ cd .config/
When you get there, use the editor of your choice to create the rss2email.cfg
configuration file with the content from Listing 1; the force-from = True
entry is of special importance here. Normally, rss2email would use a sender address from the RSS feed if it found one there. However, on many mail systems, this leads to the spam filter rightly becoming suspicious. The force-from = True
entry now causes rss2email to always use the address stored in the from
line. Whether you set html-mail
to True
or False
is a matter of taste.
Listing 1
rss2email.cfg
[DEFAULT] from = rss@mydomain.com force-from = True html-mail = False to = charly@mydomain.com
Now it's time to choose one or more RSS feeds that you want rss2email to check out regularly. The syntax for this is:
r2e add <title> <URL>
For the DFN Certificate RSS feed, which informs admins of current security problems, look at the first line in Listing 2. Whether the add
action worked can be verified using r2e list
(line 2). It worked in my example.
Listing 2
Enter and check RSS feed
01 $ r2e add DFNCert https://adv-archiv.dfn-cert.de/rss/latest 02 $ r2e list 03 0: [*] DFNCERT (https://adv-archiv.dfn-cert.de/rss/latest -> charly@mydomain.com)
The r2e run
command traverses the feeds and dispatches the emails. Now all I need to do is write a crontab entry to run the command at specified intervals (e.g., every 30 minutes). To do so, I type crontab -e
and add the crontab line from Listing 3.
Listing 3
Cron job for rss2email
*/30 * * * * /usr/bin/r2e run > /dev/null 2>&1
Sure enough, the first messages start to slowly arrive in my mailbox (Figure 1). The important thing here is to be careful about the rss2email feeds you choose; otherwise you might flood your inbox – just staying with Miniflux would be preferable to that.
![](/var/linux_magazin/storage/images/issues/2020/237/charly-s-column-rss2email/figure-1/770455-1-eng-US/Figure-1_large.png)
Infos
- "The sys admin's daily grind: Miniflux" by Charly Kühnast, Linux Magazine, issue 164, July 2014, p. 50, https://www.linux-magazine.com/Issues/2014/164/Charly-s-Column-Miniflux/(language)/eng-US
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.
-
SUSE Offers CentOS 7 Support with Liberty Linux Lite
SUSE's Liberty Linux support offering now includes CentOS 7, which means businesses won't be forced to migrate those servers for some time.
-
Ubuntu's App Center Finally Supports Local Installs Again
If you regularly download .deb files and would prefer a GUI method of installing, Ubuntu has your back.
-
AlmaLinux Now Supports Raspberry Pi 5
If you're looking to create with the Raspberry Pi 5 and want to use AlmaLinux as your OS, you're in luck because it's now possible.
-
Kubuntu Focus Releases New Iterations of Ir14 and Ir16 Laptops
If you're a fan of the Kubuntu Focus laptops or have been waiting for the right time to purchase one, that time might be now.
-
NixOS 24.05 Is Ready for Prime Time
The latest release of NixOS (Uakari) has arrived and offers its usual reproducible, declarative, and reliable goodness.
-
Linux Lite 7.0 Officially Released
Based on Ubuntu 24.04 and kernel 6.8, Linux Lite version 7 now offers more options than ever.
-
KaOS Linux 2024.05 Adds Bcachfs Support and More
With updates all around, KaOS Linux now includes support for the bcachefs file system.
-
TUXEDO Computers Unveils New Iteration of the Stellaris Laptop Line
The Stellaris Slim 15 is the 6th generation and includes either an AMD or Intel CPU