View | Details | Raw Unified | Return to bug 2389
Collapse All | Expand All

(-)a/misc/cronjobs/overdue_notices.pl (-2 / +9 lines)
Lines 69-74 overdue_notices.pl Link Here
69
   -borcat       <categorycode>   category code that must be included
69
   -borcat       <categorycode>   category code that must be included
70
   -borcatout    <categorycode>   category code that must be excluded
70
   -borcatout    <categorycode>   category code that must be excluded
71
   -t                             only include triggered overdues
71
   -t                             only include triggered overdues
72
   --test                         Run in test mode. No changes will be made on the DB.
72
   -list-all                      list all overdues
73
   -list-all                      list all overdues
73
   -date         <yyyy-mm-dd>     emulate overdues run for this date
74
   -date         <yyyy-mm-dd>     emulate overdues run for this date
74
   -email        <email_type>     type of email that will be used. Can be 'email', 'emailpro' or 'B_email'. Repeatable.
75
   -email        <email_type>     type of email that will be used. Can be 'email', 'emailpro' or 'B_email'. Repeatable.
Lines 159-164 the cron schedule to ensure proper behavior. Link Here
159
Add the --triggered option for daily cron, at the risk of no notice 
160
Add the --triggered option for daily cron, at the risk of no notice 
160
being generated if the cron fails to run on time.
161
being generated if the cron fails to run on time.
161
162
163
=item B<-test>
164
165
This option makes the script run in test mode.
166
167
In test mode, the script won't make any changes on the DB. This is useful
168
for debugging configuration.
169
162
=item B<-list-all>
170
=item B<-list-all>
163
171
164
Default items.content lists only those items that fall in the 
172
Default items.content lists only those items that fall in the 
Lines 813-819 END_SQL Link Here
813
                attachments            => [$attachment],
821
                attachments            => [$attachment],
814
                to_address             => $admin_email_address,
822
                to_address             => $admin_email_address,
815
            }
823
            }
816
        );
824
        ) unless $test_mode;
817
    }
825
    }
818
826
819
}
827
}
820
- 

Return to bug 2389