From e90c190999a9c1bf5c90cfbedb7d25ae0f800694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Mon, 25 May 2020 22:01:43 +0200 Subject: Documentation --- config.yml.example | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'config.yml.example') diff --git a/config.yml.example b/config.yml.example index 0e0e304..1213189 100644 --- a/config.yml.example +++ b/config.yml.example @@ -70,9 +70,12 @@ options: # If an item is updated, but has been deleted on the server already, it is re-uploaded when this option is true. # Else it is ignored. reupload-if-updated: false + # Items of a feed may be filtered. In general there is no real use in specifying this globally. + # For full information about this feature, visit https://github.com/Necoro/feed2imap-go/wiki/Detailed-Options. + item-filter: 'Author.Name != "Weirdo"' ## Feeds -# Each feed must have a name and a URL. The name must be unique. +# Each feed must have a name, and a URL or Exec argument. The name must be unique. # The name also determines the folder to use for that feed, which can be overwritten with an explicit target. # Groups can be used to build a hierarchy, with arbitrary nesting. feeds: @@ -91,7 +94,9 @@ feeds: # Considering the global `target` the final folder will be: # INBOX/Feeds/Linux/Arch target: Arch - url: https://www.archlinux.org/feeds/news/ + # Use `exec` instead of `url` when fetching is not enough and script magic is needed. + # See https://github.com/Necoro/feed2imap-go/wiki/Detailed-Options for details. + exec: ["wget", "https://www.archlinux.org/feeds/news/", "-O", "-"] # Groups can be nested... - group: Gentoo # and also specify a target (which is superfluous here, because it is identical to the group name) -- cgit v1.2.3