Bug 35373 - Remove comment about bug 8000 in gather_print_notices.pl
Summary: Remove comment about bug 8000 in gather_print_notices.pl
Status: Pushed to oldstable
Alias: None
Product: Koha
Classification: Unclassified
Component: Command-line Utilities (show other bugs)
Version: Main
Hardware: All All
: P5 - low trivial
Assignee: Katrin Fischer
QA Contact: Martin Renvoize (ashimema)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-21 07:32 UTC by Magnus Enger
Modified: 2024-07-25 11:11 UTC (History)
3 users (show)

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


Attachments
Bug 35373: Remove false FIXME comment from gather_print_notices.pl (1.19 KB, patch)
2024-01-13 15:14 UTC, Katrin Fischer
Details | Diff | Splinter Review
Bug 35373: Remove false FIXME comment from gather_print_notices.pl (1.24 KB, patch)
2024-01-24 19:41 UTC, Brendan Lawlor
Details | Diff | Splinter Review
Bug 35373: Remove false FIXME comment from gather_print_notices.pl (1.31 KB, patch)
2024-01-25 15:21 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2023-11-21 07:32:18 UTC
misc/cronjobs/gather_print_notices.pl has this: 

directory => $output_directory,
files     => $files,
from      => C4::Context->preference('KohaAdminEmailAddress'),    # Should be replaced if bug 8000 is pushed
to        => $email,
transport => $transport,

Bug 8000 was pushed in 2019, but seems related to the "to" address, not the "from": 

"This enhancement adds a system preference 'SendAllEmailsTo' which, when populated with a valid email address, will redirect all outgoing mail from Koha to this address. This feature is intended for use during testing/setup of Koha, to prevent spamming users."

So maybe the code changed from underneath the comment? Seems like we can remove this comment to avoid future confusion?
Comment 1 Katrin Fischer 2024-01-13 15:14:51 UTC
Created attachment 161012 [details] [review]
Bug 35373: Remove false FIXME comment from gather_print_notices.pl

Removes a FIXME line mentioning bug 8000 that implemented
SendAllEmailsTo. But the note was added to the "From" line
and the "To" address is taken from a command line parameter.

To test:
* Review change carefully
Comment 2 Brendan Lawlor 2024-01-24 19:41:26 UTC
Created attachment 161361 [details] [review]
Bug 35373: Remove false FIXME comment from gather_print_notices.pl

Removes a FIXME line mentioning bug 8000 that implemented
SendAllEmailsTo. But the note was added to the "From" line
and the "To" address is taken from a command line parameter.

To test:
* Review change carefully

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 3 Martin Renvoize (ashimema) 2024-01-25 15:21:27 UTC
Created attachment 161426 [details] [review]
Bug 35373: Remove false FIXME comment from gather_print_notices.pl

Removes a FIXME line mentioning bug 8000 that implemented
SendAllEmailsTo. But the note was added to the "From" line
and the "To" address is taken from a command line parameter.

To test:
* Review change carefully

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 4 Martin Renvoize (ashimema) 2024-01-25 15:23:03 UTC
I don't think the FIXME as it stands ever made sense.. Passing QA
Comment 5 Katrin Fischer 2024-01-26 14:17:46 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 6 Fridolin Somers 2024-02-01 13:47:35 UTC
Pushed to 23.11.x for 23.11.03
Comment 7 Lucas Gass (lukeg) 2024-02-09 20:47:13 UTC
Backported to 23.05.x for upcoming 23.05.09