From 704564418139fdaa3b98b164faa1f40394dbb352 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 15 May 2020 18:31:12 +0200 Subject: README: fix indentation for fdm.conf examples No functional difference, but it should improve readability. --- README | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'README') diff --git a/README b/README index b36e107..4ae7a2d 100644 --- a/README +++ b/README @@ -419,21 +419,21 @@ fdm config file (~/.sfeed/fdm.conf): } continue - # If it is in the cache, stop. - match matched and in-cache "${cachepath}" key "%[msgid]" + # If it is in the cache, stop. + match matched and in-cache "${cachepath}" key "%[msgid]" action { keep } # Not in the cache, process it and add to cache. match case "^X-Feedname: (.*)" in headers - action { - # Store to local maildir. - maildir "${maildir}%1" + action { + # Store to local maildir. + maildir "${maildir}%1" - add-to-cache "${cachepath}" key "%[msgid]" - keep - } + add-to-cache "${cachepath}" key "%[msgid]" + keep + } Now run: @@ -463,23 +463,23 @@ fdm config file (~/.sfeed/fdm.conf): } continue - # If it is in the cache, stop. - match matched and in-cache "${cachepath}" key "%[msgid]" + # If it is in the cache, stop. + match matched and in-cache "${cachepath}" key "%[msgid]" action { keep } # Not in the cache, process it and add to cache. match case "^X-Feedname: (.*)" in headers - action { - # Connect to a SMTP server and attempt to deliver the - # mail to it. - # Of course change the server and e-mail below. - smtp server "codemadness.org" to "hiltjo@codemadness.org" - - add-to-cache "${cachepath}" key "%[msgid]" - keep - } + action { + # Connect to a SMTP server and attempt to deliver the + # mail to it. + # Of course change the server and e-mail below. + smtp server "codemadness.org" to "hiltjo@codemadness.org" + + add-to-cache "${cachepath}" key "%[msgid]" + keep + } Now run: -- cgit v1.2.3