/* sendmail.c - mail sending utilities
* Copyright 2002-2004 srvx Development Team
*
- * This file is part of srvx.
+ * This file is part of x3.
*
* srvx is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{ "MAILMSG_EMAIL_BANNED", "Email to %s has been forbidden." },
{ "MAILMSG_EMAIL_NOT_BANNED", "Email to %s was not forbidden." },
{ "MAILMSG_EMAIL_UNBANNED", "Email to %s is now allowed." },
+ { "MAILMSG_PROHIBITED_EMAIL_HEADER", "$bBanned Email Address Masks$b" },
{ "MAILMSG_PROHIBITED_EMAIL", "%s: %s" },
+ { "MAILMSG_PROHIBITED_EMAIL_END", "-------End of Banned Address Masks------" },
{ "MAILMSG_NO_PROHIBITED_EMAIL", "All email addresses are accepted." },
{ NULL, NULL }
};
dict_iterator_t it;
int found = 0;
+ reply("MAILMSG_PROHIBITED_EMAIL_HEADER");
+ reply("MSG_BAR");
for (it=dict_first(prohibited_addrs); it; it=iter_next(it)) {
reply("MAILMSG_PROHIBITED_EMAIL", iter_key(it), (const char*)iter_data(it));
found = 1;
}
if (!found)
reply("MAILMSG_NO_PROHIBITED_EMAIL");
+ else
+ reply("MAILMSG_PROHIBITED_EMAIL_END");
return 0;
}