This is a small program that emails Atom/RSS feed entries to you. It is designed to be run periodically (e.g. as a cronjob) and supports PGP.
-
Download and install Python3.
-
Clone or download this repository.
-
Navigate to the folder and install the dependencies:
pip3 install -r requirements.txt
or
py -m pip install -r requirements.txt
-
Rename
example-config.yml
toconfig.yml
. Edit it to include your details:- Update
last_accessed
to a date of your choosing. For best results, set it to a date in the recent past or today's date.- On the first run,
feed-emailer
will email you all entries since the date stored inlast_accessed
. - Make sure the date is in the format
YYYY-MM-DD HH:MM:SS
.
- On the first run,
- Put your email address and password under
from
andpassword
. This is the address from which emails will be sent. - Under
sender-key
andpassphrase
, put your public key fingerprint and its passphrase.- You can determine the fingerprint of a key by running
$ gpg --fingerprint
, which lists all keys with their fingerprints, or$ gpg --fingerprint [email address]
to view the fingerprint of the key associated with an email address.
- You can determine the fingerprint of a key by running
- Put the recipient's email address and their public key fingerprint under
recipient
andrecipient-key
. - Under
smtp_server
andsmtp_port
, put your email provider's SMTP server and port. - Under
gnupg
, put the path to your gpg binary. You can determine this by running$ which gpg
. - Under
gpg-home
,keyring
, andsecring
, enter your gpg home directory, public keyring, and secret keyring.- Run
$ gpg --list-keys
. The output will be something like/path/to/pubring.gpg
. In this example,pubring.gpg
is your public keyring, and the rest of the path is your gpg home directory. - Similarly, to find the name of your secret keyring, run
$ gpg --list-secret-keys
. The output will be of the form/path/to/secring.gpg
. Here,secring.gpg
is the name of your secret keyring.
- Run
- Finally, add the list of feeds you would like to subscribe to under
feeds
.
- Update
-
Run
feed-emailer.py
.python3 feed-emailer.py
or
py feed-emailer.py
Run
python3 feed-emailer.py
or
py feed-emailer.py
For best results, schedule this command to repeat (e.g. as a cronjob).
-
Add PGP support - Make subject optional
- Make PGP optional
Please submit issues and feature requests here. Pull requests are welcome. For queries and more information, feel free to email me.
feed-emailer is licensed under the GPLv3. For more details, see LICENSE.
Copyright (C) 2018 Abitha K Thyagarajan
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.