Koha/misc/cronjobs
Amit Gupta 764b8b7e90 Bug 6810: Send membership expiry reminder notices.
A new crontab based perl script to send membership expiry reminders. A
system preference controls the number of days in advance of membership
expiry that the notices will be sent on.

To Test:
1) Create a new Patron and set membership expiry date 14 days from the
   date of registration.
2) Check your systemprefence ( MemExpDayNotice to 14 days default value)
3) Manual testing Run ( perl membership_expiry.pl -h)
    It would give you various option:
    This script prepares for membership expiry reminders to be sent to
    patrons. It queues them in the message queue, which is processed by
    the process_message_queue.pl cronjob.
    See the comments in the script for directions on changing the script.
    This script has the following parameters :
     -c Confirm and remove this help & warning
     -n send No mail. Instead, all mail messages are printed on screen.
        Useful for testing purposes.
     -v verbose
    Do you wish to continue? (y/n)
4) Choose option for ex: perl membership_expiry.pl -c
5) Go to your koha database and check message_queue table you see some
   results.
6) Run (perl process_message_queue.pl) it will send email to those
   patron whose membership after 14 days from today.
7) Cron testing: (10   1 * * *  $KOHA_CRON_PATH/membership_expiry.pl -c)
8) Set your 15   * * * *  $KOHA_CRON_PATH/process_message_queue.pl
9) After running membership_expiry.pl, (process_message_queue.pl will
   send emails to those patron whose membership after 14 days from
   today).

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2015-10-06 11:13:08 -03:00
..
holds Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
rss Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
social_data Bug 10156 - Fix usr/bin/perl path for get_report_social_data.pl 2013-05-08 09:52:21 -04:00
thirdparty Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
advance_notices.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
automatic_renewals.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
backup.sh Bug 9235 - Hardcoded values in cronjobs/backup.sh 2012-12-21 07:20:50 -05:00
batch_anonymise.pl Bug 6756: Add info messages 2015-09-16 10:55:42 -03:00
build_browser_and_cloud.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
cart_to_shelf.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
check-url-quick.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
check-url.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
cleanup_database.pl Bug 13049: Merge selfreg cron jobs into cleanup_database 2015-07-28 10:24:02 -03:00
cloud-kw.pl Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
cloud-sample.conf Fixes bugs #2875-2879 2008-12-29 19:59:44 -06:00
CONFIGURE.gmail Bug 5251 : Enhancement: [3.2] (Resubmission) Adding code to support using gmail as an SMTP server 2011-04-08 14:01:15 +12:00
create_koc_db.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
crontab.example Bug 13585: Add a cronjob which send UsageStats monthly. 2015-09-07 10:47:06 -03:00
delete_expired_opac_registrations.pl Bug 13049: [QA Follow-up] Remove unneeded module 2015-07-28 10:24:02 -03:00
delete_patrons.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
delete_unverified_opac_registrations.pl Bug 13049: [QA Follow-up] Remove unneeded module 2015-07-28 10:24:02 -03:00
fines.pl Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
gather_print_notices.pl Bug 11603: Change the output filenames 2015-06-01 14:25:24 -03:00
import_webservice_batch.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
j2a.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
longoverdue.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
MARC21_parse_test.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
membership_expiry.pl Bug 6810: Send membership expiry reminder notices. 2015-10-06 11:13:08 -03:00
nl-sync-from-koha.pl Bug 11401: QA followup 2014-11-14 09:42:45 -03:00
nl-sync-to-koha.pl Bug 11401: Add support for Norwegian national library card 2014-11-14 09:42:23 -03:00
notice_unprocessed_suggestions.pl Bug 13014: [QA Follow-up] Few typos in cronjob 2015-06-24 11:49:13 -03:00
overdue_notices.pl Bug 14534: Stop overdue_notices.pl from issuing the warning: Use of uninitialized value $borrowernumber 2015-08-07 15:20:03 -03:00
printoverdues.sh Bug 10127 : Printoverdues.sh should tar only pdf files 2013-07-16 15:47:13 +00:00
process_message_queue.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
purge_suggestions.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
runreport.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
serialsUpdate.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
services_throttle.pl Minor updates to minor cronjob script. 2008-12-31 09:47:54 -06:00
share_usage_with_koha_community.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00
sitemap.pl Bug 11190: sitemap.pl -- Generate a Catalog sitemap 2015-08-26 11:05:24 -03:00
staticfines.pl Bug 14383: misc: Fix some typos in comments and documentation 2015-06-22 17:34:45 -03:00
update_totalissues.pl Bug 13889: Add information about cron jobs to system log 2015-05-04 11:11:14 -03:00