Default Action Trigger Templates Updates

Bug #1391282 reported by Josh Stompro
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Wishlist
Unassigned

Bug Description

Hello, I would like to make the following enhancements to the default action trigger event email templates.

1. Auto-Submitted header

In my experience staff don't really care that a customer is on vacation or out of the office when email notices get sent out. So I think the email template should include the header that disables Out of Office autoreplies for many system.

Auto-Submitted: auto-generated

http://tools.ietf.org/html/rfc3834

2. From

The following seems to be the suggested best practice for what the From field should be set to so that the various options for setting the From get used correctly.

From: [%- helpers.get_org_setting(target.home_ou.id, 'org.bounced_emails') || lib.email || params.sender_email || default_sender %]

The current default is

From: [%- params.sender_email || default_sender %]

Josh

Kathy Lussier (klussier)
Changed in evergreen:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Josh Stompro (u-launchpad-stompro-org) wrote :

Here is a branch that includes two commits with the two different changes mentioned.

Adding Auto-Submitted header and changing From line.

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/stompro/lp1391282_update_at_templates

Does anyone know if the environment needs to be changed for the from line to work correctly for each event definition?

Thanks
Josh

tags: added: pullrequest
Kathy Lussier (klussier)
Changed in evergreen:
milestone: none → 2.next
Kathy Lussier (klussier)
tags: added: needsreleasenote
Revision history for this message
Ben Shum (bshum) wrote :

Oh I like the change for adding "Auto-Submitted: auto-generated"! That does sound like it could be a helpful gain.

As for the change to the From, I wonder if params.sender_email should come first in the series. That way, if someone does set a param for the individual event, it takes precedence over the other potential values. And I am not sure that "lib.email" will function as written, or if it ought to be circ_lib.email or something else. It may require adjustment to the environment, hmm..

Revision history for this message
Galen Charlton (gmc) wrote :

I've pushed the patch that adds the Auto-Submitted header to master for inclusion in 2.10. Thanks, Josh!

Given that there's pending discussion on the other part, as a bookkeeping matter, if you wish to pursue it further, please open a separate bug.

Changed in evergreen:
status: Triaged → Fix Committed
milestone: 2.next → 2.10-beta
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.