Bug 28451 - Message queue field "from_address" does not always get populated
Summary: Message queue field "from_address" does not always get populated
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-25 15:04 UTC by Kyle M Hall (khall)
Modified: 2024-09-04 21:30 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall (khall) 2021-05-25 15:04:14 UTC
The message_queue table column "from_address" does not always get populated. We should either make the EnqueueLetter parameter 'from_address' mandatory, or (preferably) derive the correct from address from the letter's branchcode. If the letter has no branchcode, I imagine we should use either the KohaAdminEmailAddress or the patron's home library's email address.
Comment 1 Christopher Brannon 2021-05-25 19:36:37 UTC
Per our previous conversations, it sounds like sometimes this field doesn't get populated because it is a digest, and items may be from multiple libraries.

1) The from address should be from whatever library signs the notification ([% branchname %]).
2) If the notice is a digest and not from any particular library, it should be from the patron's home library.  This should also apply to [% branchname %] if used in the notice.
3) It should only use the KohaAdminEmailAddress if 1 & 2 can't supply an e-mail address.
Comment 2 Juliet Heltibridle 2024-09-04 21:30:52 UTC
We enabled digests for hold notices some time in January. It looks like the message_queue table does not have a 'from_address' in any of the messages sent with HOLDDGST as the type. Looking at Christopher's reply, I would agree with #2, that a digest notice should be sent by the patron's home library if it contains information from multiple libraries. (We are a consortium so this would be ideal, over using the KohaAdminEmailAddress).