Skip to main content

Getting Started With rss2email

We highly recommend that you subscribe to the rss2email project feed so you can keep up to date with the latest version, bugfixes and features:

http://rss.gmane.org/gmane.mail.rss2email

Installing rss2email

Packages

A quick way to get rss2email going is using pre-made packages. There are releases for Debian, Ubuntu, Fedora, openSUSE, Gentoo, and NetBSD.

Installing by hand

Requirements

Before you install rss2email, you’ll need to make sure that a few things are in place.

  1. Ensure that a version of Python ≥3.2 is installed.

  2. Install the required Python packages.

  1. feedparser

  2. html2text

  1. Figure out how you are going to send outgoing email. You have two options here: either use an STMP server or a local sendmail program. So,

  • determine your outgoing email server’s SMTP address, or

  • install sendmail (or a compatible replacement like postfix).

Download

Download the latest rss2email source and unpack it. You can choose from several equivalent formats.

  1. A .zip file (suggested for Microsoft Windows users):

    $ wget https://github.com/wking/rss2email/archive/v3.5.zip
    $ unzip rss2email-*.zip
  2. A .tar.gz file (suggested for everyone else):

    $ wget https://github.com/wking/rss2email/archive/v3.5.tar.gz
    $ tar xvf rss2email*.tar.gz
  3. A Git checkout (suggested for developers):

    $ git clone git://github.com/wking/rss2email.git

Install

From the unpacked directory, run:

$ python setup.py install

You can pass all the usual options to the install command, including --user. If you don’t want to install rss2email, you can also run r2e directly from the source directory.

Upgrading to a new version

Just repeat the installation procedure for the new source package. If your config file and data file were in the old source directory, move them over to the new source directory. If the config and data files were in another directory (e.g. ~/.config and ~/.local/share), there is no need to move them.

Using rss2email

Create a new feed database to send updates to your email address:

$ r2e new you@yourdomain.com

This command will create a configuration file ($XDG_CONFIG_HOME/rss2email.cfs by default) and a feed database ($XDG_DATA_HOME/rss2email.json by default). If you’d rather those files were stored in other locations, use the --config and --data options. XDG_CONFIG_HOME defaults to $HOME/.config and XDG_DATA_HOME defaults to $HOME/.local/share.

You should edit the default configuration file now to adjust rss2email for your local system. Unless you’ve installed a local sendmail-equivalent, you’ll need to edit the SMTP options.

Subscribe to some feeds:

$ r2e add rss2email http://rss.gmane.org/gmane.mail.rss2email

That’s the feed to be notified when there’s a new version of rss2email. Repeat this for each feed you want to subscribe to.

When you run rss2email, it emails you about every story it hasn’t seen before. But the first time you run it, that will be every story. To avoid this, you can ask rss2email not to send you any stories the first time you run it:

r2e run --no-send

Then later, you can ask it to email you new stories:

r2e run

Customizing rss2email

There are a number of options, described in full in rss2email/config.py, to customize the way rss2email behaves. If you want to change something, edit the the configuration file that was created by r2e new.

For example, if you want to receive HTML mail, instead of having entries converted to plain text:

html-mail = True

To be notified every time a post changes, instead of just when it’s first posted:

trust-guid = True

And to make the emails look as if they were sent when the item was posted:

date-header = True

If you get an error message Sender domain must exist, add the following to your configuration file:

from = rss2email@yoursite.com
force-from = True

You can make the email address whatever you want, but your mail server requires that the yoursite.com part actually exists.

You can also add custom filters, see the example and documentation in rss2email/post_process/prettify.py for more information.

SMTP

By default, rss2email uses sendmail (or an equivalent) to send outgoing email. If you don’t have such a program installed, or simply prefer to use SMTP directly, edit the configuration file and fill in your outoing email server’s details:

[DEFAULT]
...
use-smtp = True
smtp-server = smtp.yourisp.net:587
smtp-auth = False
...

If your server requires you to login, change smtp-auth = False to smtp-auth = True and enter your email username and password:

smtp-auth = True
smtp-username = username
smtp-password = password

If your server requires an TLS/SSL connection (SMTPS), change smtp-ssl = False to smtp-ssl = True. If your server does not require a SMTPS connection but you request authentication, rss2email will use STARTTLS to encrypt the connection before sending your login credentials to the server.

Automating rss2email

More than likely you will want rss2email to run automatically at a regular interval. Under Windows this is can be easily accomplished using the Windows Task Scheduler. This site has a nice tutorial on it. Just select r2e.bat as the program to run. Once you’ve created the task, double click on it in the task list and change the Run entry so that run comes after r2e.bat. For example, if you installed rss2email in the C:\rss2email directory, then you would change the Run entry from C:\rss2email\r2e.bat to C:\rss2email\r2e.bat run.

On Unix/Linux systems, you should add a cron job that runs r2e. For example, run r2e every night (at 1:23 am) with:

23 1 * * * r2e run

Development

User discussion and development take place on the rss2email mailing list at rss2email@tremily.us. Everyone is welcome to post bug reports, feature requests, comments, and patches. To subscribe to the list, send an email to rss2email+subscribe@tremily.us. The mailing list archives are available on Gmane.

Metadata

Release files for rss2email 3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rss2email 3.5
File Size Uploaded Provenance Actions
rss2email-3.5.tar.gz 305.0 kB Without provenance Details for rss2email-3.5.tar.gz

Release files / rss2email-3.5.tar.gz

Download URL rss2email-3.5.tar.gz
Size 305.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2cc4d9c083f18deed4e4688c6ff2253780ad3050370ee368cbb2d5a4c6a34aed
BLAKE2b-256 checksum
How to use checksums
43f78a9c1556409953a424c557be85159228209e1d47be8b3479e04985fc4d04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rss2email 3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page