Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/julow/rss_to_mail

Sends an email for every new entries on RSS feeds.
https://github.com/julow/rss_to_mail

ocaml rss

Last synced: about 2 months ago
JSON representation

Sends an email for every new entries on RSS feeds.

Awesome Lists containing this project

README

        

# RSS to Mail

An OCaml program that fetches RSS feeds and sends emails.
Many [options](https://github.com/Julow/rss_to_mail/blob/master/rss_to_mail/feed_desc.ml#L25) 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](etc/nixos/rss_to_mail.nix).

### Usage

```shell
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

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