[open-ils-commits] r10408 - trunk/Open-ILS/src/support-scripts
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 21 16:55:16 EDT 2008
Author: erickson
Date: 2008-08-21 16:55:11 -0400 (Thu, 21 Aug 2008)
New Revision: 10408
Modified:
trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl
Log:
added support for using the org-unit setting for FROM address
Modified: trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl
===================================================================
--- trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl 2008-08-21 19:59:54 UTC (rev 10407)
+++ trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl 2008-08-21 20:55:11 UTC (rev 10408)
@@ -240,12 +240,20 @@
notifications => $type => 'sender_address') ||
$settings->config_value(notifications => 'sender_address');
+ # see if there is a configured bounce address for this org unit.
+ # if so, use that as the sender
+ if(my $set = $e->search_actor_org_unit_setting(
+ {name => 'org.bounced_emails', org_unit => $circ_list->[0]->circ_lib->id} )->[0]) {
+ my $bemail = OpenSRF::Utils::JSON->JSON2perl($set->value);
+ $sender = $bemail if $bemail;
+ }
+
+
my $context = {
circ_list => $circ_list,
get_bib_attr => \&get_bib_attr,
parse_due_date => \&parse_due_date, # let the templates decide date format
smtp_sender => $sender,
- smtp_repley => $sender, # XXX
notice => $notice,
};
More information about the open-ils-commits
mailing list