2022-12-27 11:18:52 +00:00
|
|
|
# Newsletter to Web
|
2022-06-07 20:27:28 +00:00
|
|
|
|
2022-12-27 11:18:52 +00:00
|
|
|
Converts a newsletter to and Atom feed and static HTML files.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2022-12-27 11:27:27 +00:00
|
|
|
Get the latest release [from the releases page](https://code.kiers.eu/newsletter-to-web/newsletter-to-web/releases/latest).
|
|
|
|
|
2022-12-27 11:18:52 +00:00
|
|
|
### Getting help
|
|
|
|
|
|
|
|
For help, use
|
|
|
|
|
|
|
|
* `newsletter-to-web help`
|
|
|
|
* `newsletter-to-web help <subcommand>`.
|
|
|
|
|
|
|
|
### Basic usage
|
|
|
|
|
|
|
|
First, download all messages from the IMAP mail server
|
|
|
|
and store them in the `data/` directory:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
newsletter-to-web fetch-from-imap -s <imap.example.com> -u <email@example.com> -p <password>
|
|
|
|
```
|
|
|
|
|
|
|
|
Then, convert them to an Atom feed, using
|
|
|
|
`newsletters.example.com` as the base domain:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
newsletter-to-web --include-html build-feed newsletters.example.org
|
|
|
|
```
|
|
|
|
|
|
|
|
This will put the output in the `output/` directory. The Atom
|
|
|
|
feed will be in `output/feed.xml`, together with a very simple
|
|
|
|
`index.html` file pointing to the feed. It will also add an HTML
|
|
|
|
file for every email with the HTML content.
|
|
|
|
|
|
|
|
The feed will already contain the full HTML, so it can easily be
|
|
|
|
read from a feed reader.
|
2022-06-07 20:27:28 +00:00
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
### Receive email
|
|
|
|
|
|
|
|
* [X] IMAP integration
|
|
|
|
* [ ] Direct feeding of email message
|
|
|
|
* [ ] Read from Maildir
|
|
|
|
* [ ] Read from MBOX
|
|
|
|
|
|
|
|
### Convert email to HTML
|
|
|
|
|
|
|
|
* [X] Generate static HTML files
|
|
|
|
* [ ] Parse and add unsubscribe link
|
|
|
|
* [ ] Where possible: remove tracking pixels / images
|
2022-06-12 18:39:35 +00:00
|
|
|
* [X] Prevent loading of scripts / images without user interaction
|
2022-06-07 20:27:28 +00:00
|
|
|
|
|
|
|
### Create ATOM feed
|
2022-08-05 00:27:10 +00:00
|
|
|
|
|
|
|
* [X] Single feed for everything
|
2022-06-07 20:27:28 +00:00
|
|
|
* [ ] One feed per newsletter
|
|
|
|
* [ ] Index feed (containing all newsletters)?
|