Date header not set in default A/T email templates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Low
|
Unassigned |
Bug Description
There are 27 A/T templates in the stock data that send email (24 "plain" email, 3 SMS) and none define the Date: header. This header is required according to RFC 822 and it's successor, 2822, and when absent, you may see unusual results depending on your email client. Some will default to a "0" timestamp, or 1/1/1970 00:00:00 UTC, and may send your new messages to the farthest reaches of your inbox where they'll probably never be seen. Clients that only ever show the date received don't appear to have any issues, which is likely why this has persisted so long. I've got a branch incoming that addresses this for the stock templates.
To correct this issue for your custom templates, or in stock templates for databases built before this is released, make sure the following 2 lines are in every action_
[%- USE date -%]
Date: [%- date.format(
The first is likely there already since many email templates already do /something/ with dates. The second specifically chooses to use UTC as the timezone, but using -0000 rather than +0000 implies that UTC is not the actual local time, since I don't know how to get the current offset in a TT2 template and %Z (or whatever the proper strftime formatter is, I don't have it in front of me) doesn't work. The order doesn't matter in any mail server worth using in 2016, but the Date: line does need to be within the header block.
Branch should be ready Monday.
Changed in evergreen: | |
milestone: | 2.next → 2.11-beta |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Finally: git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ jboyer/ lp1593834_ email_date_ header
http://