Commit Graph

11 Commits

Author SHA1 Message Date
Robin Jarry 877a94f5d9 compose: add default template for new messages
Allow defining a default template to use when composing new messages.
Add an example to be used for new users.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2022-01-19 21:42:41 +01:00
Robin Jarry f0f7cf347c templates: add x-mailer header in default files
This should serve as an example for new users.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2022-01-19 20:56:38 +01:00
Nguyễn Gia Phong 6f8c167e27 Stop wrapping OriginalText in default templates
Wrapping embeded code or patches could mess up the content.
2022-01-14 20:36:19 +01:00
Eric Bower 548facab92 fix typo in quoted reply template 2021-03-07 23:25:04 +01:00
Reto Brunner a19c1fb65b templates: fixup error in template modification
The change of WrapText --> Wrap left the order of the arguments unchanged, which
is wrong.
2021-03-07 15:17:08 +01:00
Nícolas F. R. A. Prado 3df88f7040 templates: Use wrap instead of wrapText
bf0f72a533 ("template: add exec and wrap") introduced wrap which
allowed to chain wrapText. It also changed the aerc-templates man page
to document wrap instead of wrapText. The templates weren't updated
then, so update now.
2021-03-07 14:53:37 +01:00
Drew DeVault edec4390c5 Fix headers in built-in templates 2020-04-24 12:59:49 -04:00
Reto Brunner 3fa9ae3edb templates/quoted_reply: fix incorrect timezone identifier 2020-04-24 07:19:59 +02:00
sqwishy 2fcd77f101 toLocal template function
Hi. This adds a template function to convert a time to the local time zone. And modifies
the default quoted_reply template to use it and show the time zone when formatting the
timestamp of the quoted message.

Previously, the quoted message timestamp was UTC and it would format it without the time
zone. And I thought it might be a little confusing or weird to some normal people when I
email them and I don't want normal people to be confused or think that I'm weird.
2020-02-25 11:05:41 -05:00
Drew DeVault 08574104bc Correct capitalization in quoted_reply 2019-11-10 13:36:25 -05:00
Srivathsan Murali 3ba69edab5 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.
2019-11-10 10:15:49 -05:00