summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-05-02 13:50:43 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-06-01 14:02:08 +0200
commit80564a1d5a985ee77d3b8f5ca4a2d10a4f4a2d58 (patch)
tree7688d395a475ff2b28b79f06f3a0c69bb9aa2bc0
parent91bd7d9b2087671ac638822375831200097c5e7e (diff)
Fix template for new variables and newlines
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--imagrc.toml10
1 files changed, 3 insertions, 7 deletions
diff --git a/imagrc.toml b/imagrc.toml
index b47e3278..7a681ee9 100644
--- a/imagrc.toml
+++ b/imagrc.toml
@@ -262,17 +262,13 @@ Date: {{date}}
From: {{from}}
Reply-To: {{from}}
Message-Id: {{message_id}}
-{{#if is_in_reply_to}}
-In-Reply-To: {{in_reply_to}}
-{{/if}}
To: {{to}}
Cc: {{cc}}
Subject: {{subject}}
+{{#if is_in_reply_to}}In-Reply-To: {{in_reply_to}}{{/if}}
-Dear {{to | get_name}},
-{{if cc}}
-dear {{cc | get_name}}
-{{/if}}
+{{#if has_to_name}}Dear {{to_name}},{{/if}}
+{{#if has_cc_name}}dear {{cc_name}},{{/if}}
With kind regards
"""