Add Templates with Parsing
+ Changes NewComposer to return error. + Add lib to handle templates using "text/template". + Add -T option to following commands - compose. - reply - forward + Quoted replies using templates. + Forwards as body using templates + Default templates are installed similar to filters. + Templates Config in aerc.conf. - Required templates are parsed while loading config. + Add aerc-templates.7 manual for using template data.
This commit is contained in:
parent
ad68a9e4e4
commit
3ba69edab5
14 changed files with 510 additions and 143 deletions
templates
2
templates/forward_as_body
Normal file
2
templates/forward_as_body
Normal file
|
@ -0,0 +1,2 @@
|
|||
Forwarded message from {{(index .OriginalFrom 0).Name}} on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}:
|
||||
{{wrapText .OriginalText 72}}
|
2
templates/quoted_reply
Normal file
2
templates/quoted_reply
Normal file
|
@ -0,0 +1,2 @@
|
|||
on {{dateFormat .OriginalDate "Mon Jan 2, 2006 at 3:04 PM"}}, {{(index .OriginalFrom 0).Name}} wrote:
|
||||
{{quote .OriginalText}}
|
Loading…
Add table
Add a link
Reference in a new issue