]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/smtp/serv_smtpeventclient.c
libc-ares migration
[citadel.git] / citadel / modules / smtp / serv_smtpeventclient.c
index 67bcbf3243e4feb51515be531d79fa2b03bdfa34..f61e633f57958b72a0b89d229bae0ce33b74a52a 100644 (file)
@@ -656,6 +656,7 @@ void connect_one_smtpsrv(SmtpOutMsg *SendMsg)
 
        SendMsg->mx_port = DefaultMXPort;
 
+
 /* TODO: Relay!
        *SendMsg->mx_user =  '\0';
        *SendMsg->mx_pass = '\0';
@@ -957,6 +958,11 @@ eNextState smtp_resolve_mx_done(void *data)
        AsyncIO *IO = data;
        SmtpOutMsg * SendMsg = IO->Data;
 
+       SendMsg->IO.SendBuf.Buf = NewStrBufPlain(NULL, 1024);
+       SendMsg->IO.RecvBuf.Buf = NewStrBufPlain(NULL, 1024);
+       SendMsg->IO.IOBuf = NewStrBuf();
+       SendMsg->IO.ErrMsg = SendMsg->MyQEntry->StatusMessage;
+
        //// connect_one_smtpsrv_xamine_result
        SendMsg->CurrMX = SendMsg->AllMX = IO->VParsedDNSReply;
        //// TODO: should we remove the current ares context???
@@ -969,6 +975,11 @@ eNextState smtp_resolve_mx_done(void *data)
 int resolve_mx_records(void *Ctx)
 {
        SmtpOutMsg * SendMsg = Ctx;
+/*//TMP
+       SendMsg->IO.SendBuf.Buf = NewStrBufPlain(NULL, 1024);
+       SendMsg->IO.RecvBuf.Buf = NewStrBufPlain(NULL, 1024);
+       SendMsg->IO.IOBuf = NewStrBuf();
+       SendMsg->IO.ErrMsg = SendMsg->MyQEntry->StatusMessage;
 
        InitEventIO(&SendMsg->IO, SendMsg, 
                                    SMTP_C_DispatchReadDone, 
@@ -979,6 +990,7 @@ int resolve_mx_records(void *Ctx)
                                    SMTP_C_ReadServerStatus,
                                    1);
                                    return 0;
+/// END TMP */
        if (!QueueQuery(ns_t_mx, 
                        SendMsg->node, 
                        &SendMsg->IO,