[Koha-bugs] [Bug 12031] Task Scheduler not sending mail

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 7 03:51:40 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12031

Liz Rea <liz at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #26849|0                           |1
        is obsolete|                            |

--- Comment #16 from Liz Rea <liz at catalyst.net.nz> ---
Created attachment 26850
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=26850&action=edit
Bug 12031 - Task scheduler not sending mail

At some stage the runreport.pl cronjob was changed to accept longopts, but the
scheduler script wasn't changed along with it. This patch fixes the mismatch
and also corrects some path issues created by Debian packaging/Standard
installs vs git installs

Note:

This patch makes it so that email sending is supported by default for package
and standard debian tarball installs. For everyone else, if you specify a
configuration option pointing to where your cronjobs are kept, in the form of

<supportdir>/path/to/koha/misc</supportdir>

task scheduling will be working in your install.

Example:

My runreports.pl is in /home/liz/koha-src/koha/misc/cronjobs

my <supportdir> would be as follows:

<supportdir>/home/liz/koha-src/koha/misc</supportdir>

To test:

1. make sure that your user is not in at.deny, and (if applicable/necessary) is
in at.allow

1a. set up your <supportdir> if required for your test installation type.

Useful, but not required step: make sure email can be sent from your server,
also helpful is access to the Koha user's mail box (to see the bounce messages)

2. create a saved sql report to run (handy tip, if you schedule them a few days
away you can see all of your tasks listed with the command used to invoke the
job for comparison)

3. Go to Tools -> Task Scheduler and schedule a job to be run, and results
emailed to you

4. note that you do not (without the patch) get an email. Make a note of the
command it reports it is going to run.

5. apply the patch

6. schedule another job, you will notice that the command to run the scheduled
job is slightly changed compared to the one in step 4.

7. Receiving an email when your job runs means the patch worked. Seeing
--format= and --to= in the command also means the patch worked, as this is the
command that runreport.pl is expecting.

8. add (or remove) your <supportdir> directive from your koha-conf.xml,
schedule another task, note how the command is changed yet again.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list