#include "smtpqueue.h"
#include "smtp_clienthandlers.h"
+int SMTPClientDebugEnabled = 0;
const unsigned short DefaultMXPort = 25;
void DeleteSmtpOutMsg(void *v)
{
SmtpOutMsg *Msg = IO->Data;
if (Msg->MyQEntry->Status == 2)
- Status = "Delivery Successfull.";
+ Status = "Delivery successful.";
else if (Msg->MyQEntry->Status == 5)
Status = "Delivery failed permanently; giving up.";
else
Status = "Delivery failed temporarily; will retry later.";
EVS_syslog(LOG_INFO,
- "SMTP: %s Time[%fs] Recipient <%s> @ <%s> (%s) Statusmessage: %s\n",
+ "SMTP: %s Time[%fs] Recipient <%s> @ <%s> (%s) Status message: %s\n",
Status,
Msg->IO.Now - Msg->IO.StartIO,
Msg->user,
return Finished;
}
+void LogDebugEnableSMTPClient(void)
+{
+ SMTPClientDebugEnabled = 1;
+}
+
CTDL_MODULE_INIT(smtp_eventclient)
{
+ if (!threading)
+ CtdlRegisterDebugFlagHook(HKEY("smtpeventclient"), LogDebugEnableSMTPClient);
return "smtpeventclient";
}