Skip to content

abithakt/feed-emailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

feed-emailer

Made with Python3 License: GPLv3

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.

Table of contents

Getting started

  1. Download and install Python3.

  2. Clone or download this repository.

  3. Navigate to the folder and install the dependencies:

    pip3 install -r requirements.txt
    

    or

    py -m pip install -r requirements.txt
    
  4. Rename example-config.yml to config.yml. Edit it to include your details:

    1. 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 in last_accessed.
      • Make sure the date is in the format YYYY-MM-DD HH:MM:SS.
    2. Put your email address and password under from and password. This is the address from which emails will be sent.
    3. Under sender-key and passphrase, 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.
    4. Put the recipient's email address and their public key fingerprint under recipient and recipient-key.
    5. Under smtp_server and smtp_port, put your email provider's SMTP server and port.
    6. Under gnupg, put the path to your gpg binary. You can determine this by running $ which gpg.
    7. Under gpg-home, keyring, and secring, 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.
    8. Finally, add the list of feeds you would like to subscribe to under feeds.
  5. Run feed-emailer.py.

    python3 feed-emailer.py
    

    or

    py feed-emailer.py
    

Usage

Run

python3 feed-emailer.py

or

py feed-emailer.py

For best results, schedule this command to repeat (e.g. as a cronjob).

Planned features

  • Add PGP support
  • Make subject optional
  • Make PGP optional

Contributing

Please submit issues and feature requests here. Pull requests are welcome. For queries and more information, feel free to email me.

License

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/.

About

Email yourself Atom/RSS feed entries. Supports PGP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages