From 28df70c8969ecc31c3a11a2071c59c4c90f9d488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 9 Jan 2022 13:25:19 +0100 Subject: #66: Documentation --- CHANGELOG.md | 1 + README.md | 1 + config.yml.example | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e81259..6664bc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +- [Issue #66](https://github.com/Necoro/feed2imap-go/issues/66): Allow specifying custom template files for HTML/Text output (configuration: `html-template`/`text-template`). - [Issue #67](https://github.com/Necoro/feed2imap-go/issues/67): Support for fetching the linked article/website instead of using the body in the feed (configuration: `body: fetch`). This is especially useful when the feed only supplies links/teaser and not the full content. ### Fixed - Panic on setting `body` on feed-level. diff --git a/README.md b/README.md index 5b6c798..506b5d9 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ as inline base64-encoded data (the old default behavior of feed2imap). * STARTTLS support. As it turned out only in testing, the old feed2imap never supported it... * `item-filter` option that allows to specify an inline filter expression on the items of a feed. * Readability support: Fetch and present the linked article. +* Mail templates can be customized. ### Subtle differences diff --git a/config.yml.example b/config.yml.example index 136d890..90e5370 100644 --- a/config.yml.example +++ b/config.yml.example @@ -36,6 +36,10 @@ max-failures: 10 # Parts to generate in the resulting emails. # Valid parts are "text" and "html" parts: ["text", "html"] +# Overwrite the default template for text/html. +# See https://github.com/Necoro/feed2imap-go/wiki/Detailed-Options for more information. +html-template: html.tpl +text-template: text.tpl # Email-Address to use in 'From' and 'To' when not specified in feed. # Default uses 'current user'@hostname default-email: username@hostname -- cgit v1.2.3