Lists: don't overwrite from: header. this only needs to be done for participates.
[citadel.git] / citadel / modules / smtp / smtp_clienthandlers.h
index 149c3ddc54fbc6bceff972ea636bdfc33d0be5cc..64a405d99b6923e91617e22640a612cf758912ab 100644 (file)
@@ -66,7 +66,7 @@ typedef struct _stmp_out_msg {
        char node[1024];
        char name[1024];
        char mailfrom[1024];
-
+       long SendLogin;
        long Flags;
 } SmtpOutMsg;
 
@@ -121,3 +121,22 @@ int smtp_resolve_recipients(SmtpOutMsg *SendMsg);
 #define SMTPCM_syslog(LEVEL, FORMAT)           \
        DBGLOG(LEVEL) syslog(LEVEL,             \
                             "SMTPCQ: " FORMAT)
+
+
+
+typedef enum __smtpstate {
+       eSTMPmxlookup,
+       eSTMPevaluatenext,
+       eSTMPalookup,
+       eSTMPaaaalookup,
+       eSTMPconnecting,
+       eSTMPsmtp,
+       eSTMPsmtpdata,
+       eSTMPsmtpdone,
+       eSTMPfinished,
+       eSTMPfailOne,
+       eSMTPFailTemporary,
+       eSMTPFailTotal
+} smtpstate;
+
+void SetSMTPState(AsyncIO *IO, smtpstate State);