log("clean_moderation\n");
if (!clean_moderation(ml->fd, ml->ctrlfd, logfd))
- log_err("An error occured while cleaning moderation, see %s",
+ log_err("An error occurred while cleaning moderation, see %s",
MAINTD_LOGFILE);
log("clean_discarded\n");
if (!clean_discarded(ml->fd, logfd))
- log_err("An error occured while cleaning discarded mails, see "
+ log_err("An error occurred while cleaning discarded mails, see "
"%s", MAINTD_LOGFILE);
log("clean_subconf\n");
if (!clean_subconf(ml->fd, logfd))
- log_err("An error occured while cleaning subscribtion "
+ log_err("An error occurred while cleaning subscribtion "
"confirmations, mails, see %s", MAINTD_LOGFILE);
log("clean_unsubconf\n");
if (!clean_unsubconf(ml->fd, logfd))
- log_err("An error occured while cleaning unsubscribtion "
+ log_err("An error occurred while cleaning unsubscribtion "
"confirmations, mails, see %s", MAINTD_LOGFILE);
log("resend_queue\n");
if (!resend_queue(ml, logfd))
- log_err("An error occured while resending queued mails, see %s",
+ log_err("An error occurred while resending queued mails, see %s",
MAINTD_LOGFILE);
log("resend_requeue\n");
if (!resend_requeue(ml, mlmmjsend, logfd))
- log_err("An error occured while resending requeued mails, see "
+ log_err("An error occurred while resending requeued mails, see "
"%s", MAINTD_LOGFILE);
log("clean_nolongerbouncing\n");
if (!clean_nolongerbouncing(ml->fd, logfd))
- log_err("An error occured while cleaning no longer bouncing "
+ log_err("An error occurred while cleaning no longer bouncing "
"traces, see %s", MAINTD_LOGFILE);
log("unsub_bouncers\n");
if (!unsub_bouncers(ml->fd, ml->ctrlfd, logfd))
- log_err("An error occured while unsubscribing bouncing emails, "
+ log_err("An error occurred while unsubscribing bouncing emails, "
"see %s", MAINTD_LOGFILE);
log("probe_bouncers\n");
if (!probe_bouncers(ml, mlmmjbounce, logfd))
- log_err("An error occured while sending probes for bouncers, "
+ log_err("An error occurred while sending probes for bouncers, "
"see %s", MAINTD_LOGFILE);
log("run_digests\n");
if (!run_digests(ml, mlmmjsend, logfd))
- log_err("An error occured while running digests, see %s",
+ log_err("An error occurred while running digests, see %s",
MAINTD_LOGFILE);
close(logfd);
echo test@mlmmjtest > lists/ml/control/listaddress
rmdir lists/ml/queue/discarded
- atf_check -s exit:0 -e match:"An error occured while cleaning discarded mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while cleaning discarded mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo test@mlmmjtest > lists/ml/control/listaddress
rm -rf lists/ml/queue
- atf_check -s exit:0 -e match:"An error occured while cleaning discarded mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while cleaning discarded mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo test@mlmmjtest > lists/ml/control/listaddress
rm -rf lists/ml/requeue
- atf_check -s exit:0 -e match:"An error occured while resending requeued mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while resending requeued mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo test@mlmmjtest > lists/ml/control/listaddress
rm -rf lists/ml/bounce
- atf_check -s exit:0 -e match:"An error occured while cleaning no longer bouncing traces, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
- atf_check -s exit:0 -e match:"An error occured while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
- atf_check -s exit:0 -e match:"An error occured while sending probes for bouncers, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while cleaning no longer bouncing traces, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while sending probes for bouncers, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo test@mlmmjtest > lists/ml/control/listaddress
rm -rf lists/ml/subconf
- atf_check -s exit:0 -e match:"An error occured while cleaning subscribtion confirmations, mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while cleaning subscribtion confirmations, mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo test@mlmmjtest > lists/ml/control/listaddress
rm -rf lists/ml/unsubconf
- atf_check -s exit:0 -e match:"An error occured while cleaning unsubscribtion confirmations, mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while cleaning unsubscribtion confirmations, mails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo test@mlmmjtest > lists/ml/control/listaddress
rm -rf lists/ml/moderation
- atf_check -s exit:0 -e match:"An error occured while cleaning moderation, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while cleaning moderation, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo test@mlmmjtest > lists/ml/control/listaddress
echo "-1" > lists/ml/index
- atf_check -s exit:0 -e match:"An error occured while running digests, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while running digests, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
echo "0" > lists/ml/index
touch lists/ml/lastdigest
chmod -w lists/ml/lastdigest
- atf_check -s exit:0 -e match:"An error occured while running digests, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
+ atf_check -s exit:0 -e match:"An error occurred while running digests, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L lists/ml -F
output="Starting maintenance run at
clean_moderation
# Log if invalid format
echo "a:a #plop" > list/bounce/plop=meh
- atf_check -s exit:0 -e match:"An error occured while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L list -F
+ atf_check -s exit:0 -e match:"An error occurred while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L list -F
atf_check -s exit:0 test -f list/bounce/plop=meh
output="Starting maintenance run at
# Log unreabable bouncefile
echo "a:1234 #plop" > list/bounce/plop=meh
chmod -r list/bounce/plop=meh
- atf_check -s exit:0 -e match:"An error occured while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L list -F
+ atf_check -s exit:0 -e match:"An error occurred while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L list -F
atf_check -s exit:0 test -f list/bounce/plop=meh
output="Starting maintenance run at
echo "a:1234 # plop" > list/bounce/plop=meh
echo "plop@meh" > list/digesters.d/p
rm -rf list/nomailsubs.d
- atf_check -s exit:0 -e match:"An error occured while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L list -F
+ atf_check -s exit:0 -e match:"An error occurred while unsubscribing bouncing emails, see mlmmj-maintd.lastrun.log" $mlmmjmaintd -L list -F
atf_check -s exit:0 test -f list/bounce/plop=meh
atf_check -s exit:1 test -f list/digesters.d/p
output="Starting maintenance run at