Similar to bug 31281, but for the advance notices
Created attachment 190254 [details] [review] Bug 41393: Set the correct reply to address for advance notices This patch additionally fetches the reply to address for advance notices To test: 1 - Have some issues that will be due soon for a patron(s) Checkout with the due date set to tomorrow 2 - Verify the patron(s) have an email defined, verify the issuing branch has a reply to set 3 - Verify the patron(s) have messaging preference set to receive Advance notices by email 1 day in advance 4 - perl misc/cronjobs/advance_notices.pl -v -c 5 - Check the message queue SELECT * FROM message_queue WHERE borrowernumber={##} 6 - Note no rpely to is set 7 - Apply patch 8 - perl misc/cronjobs/advance_notices.pl -v -c 9 - Check the message queue 10 - Confirm newer message has the reply to populated 11 - Ensure the issued item has a different homebranch with a reply to address se 12 - perl misc/cronjobs/advance_notices.pl -v -c --frombranch item-homebranch 13 - Confirm message has correct reply to 14 - Set patron to want digest in messaging preferences 15 - Generate notices 16 - Confirm digets has the right reply to