# Check mailing statistics -*- Autotest -*-
# Copyright (C) 2009-2012, 2017, 2019-2023 Sergey Poznyakoff
#
# Wydawca is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Wydawca is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Wydawca. If not, see .
AT_SETUP([Mailing statistics])
AT_KEYWORDS([notify statistics mailstat])
AT_CHECK_UPLOAD([
module-prepend-load-path "$WY_MODDIR";
module mailutils mod_mailutils.so;
module-init mailutils {
admin-address "root@localhost";
from-address "wydawca-noreply@localhost";
mailer "| $WY_TESTDIR/nullmail -o $PWD/mail.out -F \${sender} \${rcpt}";
mail-statistics {
statistics all;
message <