Bug 5253

Summary: runreport.pl does not work with new options (-to, -from, -email, -format)
Product: Koha Reporter: Ian Walls <koha.sekjal>
Component: Command-line UtilitiesAssignee: Ian Walls <koha.sekjal>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: minor    
Priority: PATCH-Sent (DO NOT USE) CC: chris, julian.maurice, jwagner
Version: 3.4   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=1993
Change sponsored?: Sponsored Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Proposed patch

Description Ian Walls 2010-09-25 19:03:05 UTC
The runreport.pl cronjob does not work with email.  The POD does not show the other options than -m, -h and -v, even though -format, -to, -from and -email have been added as options.  There is therefore no way to tell the script to send an email to anyone without manually editing the $to, $from or $email variable.

Additionally, the text that is printed to the screen is raw HTML, without headers or content type indentification.  This would make for an unattractive email to be sent, even if it were possible.
Comment 1 Ian Walls 2011-03-29 01:30:14 UTC
Created attachment 3487 [details] [review]
Proposed patch
Comment 2 Chris Cormack 2011-03-29 09:54:23 UTC
Pushed, please test
Comment 3 MJ Ray (software.coop) 2011-04-04 08:10:19 UTC
This bug is mentioned in:
Bug 5253: Add options to runreport.pl http://lists.koha-community.org/pipermail/koha-patches/2011-March/014304.html
Comment 4 Chris Cormack 2011-04-27 04:43:58 UTC
This was included in the 3.4.0 release, marking closed