Skip to content

Sends an email for every new entries on RSS feeds.

License

Notifications You must be signed in to change notification settings

Julow/rss_to_mail

Repository files navigation

RSS to Mail

An OCaml program that fetches RSS feeds and sends emails. Many options can be set on each feed, including refresh interval, regex filters or different destination adresses.

The program updates feeds that need to be updated and then exits. It must be called regularly to become useful, for example, with a systemd timer. Here is an example nixos module.

Usage

rss_to_mail check-config [CONFIG]
   Check the configuration file for errors and exit

rss_to_mail run [CONFIG]
   Fetch a list of feeds and send a mail for new entries

rss_to_mail run-scraper SRC
   Run a scraper against a web page. Useful for degugging. Read the
   scraper definition from stdin.
   SRC is a path or an url

rss_to_mail send-test-email
   Send a test email and exit.

By default, the config file is ./feeds.sexp.

An other file, feed_datas.sexp, will be created in the current directory.

Example config

((smtp
   (server mymail.org 465)
   (from [email protected])
   (auth alice "mypassword"))
 (to [email protected])
 (default_refresh 4.)
 (feeds
   (https://xkcd.com/atom.xml))
)

About

Sends an email for every new entries on RSS feeds.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •