Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/julow/rss_to_mail
- Owner: Julow
- License: mit
- Created: 2018-03-30T14:40:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T14:18:55.000Z (3 months ago)
- Last Synced: 2024-10-13T21:42:01.629Z (2 months ago)
- Topics: ocaml, rss
- Language: OCaml
- Homepage:
- Size: 571 KB
- Stars: 25
- Watchers: 4
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 exitrss_to_mail run [CONFIG]
Fetch a list of feeds and send a mail for new entriesrss_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 urlrss_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))
)
```