aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-09 13:25:19 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-01-09 13:25:19 +0100
commit28df70c8969ecc31c3a11a2071c59c4c90f9d488 (patch)
tree11f41adb581faff96dc8bcf9ea5c75d3904fa401
parent0384d631d2edb8383d0840940be066d96a5badc7 (diff)
downloadfeed2imap-go-28df70c8969ecc31c3a11a2071c59c4c90f9d488.tar.gz
feed2imap-go-28df70c8969ecc31c3a11a2071c59c4c90f9d488.tar.bz2
feed2imap-go-28df70c8969ecc31c3a11a2071c59c4c90f9d488.zip
#66: Documentation
-rw-r--r--CHANGELOG.md1
-rw-r--r--README.md1
-rw-r--r--config.yml.example4
3 files changed, 6 insertions, 0 deletions
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