X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fsmtp_clienthandlers.h;h=dedab4ba49b5c8af79e9ed30bdf40b7e21f8e664;hb=32529f8b8c0e1d3044d28f6694a99e30a214db5d;hp=149c3ddc54fbc6bceff972ea636bdfc33d0be5cc;hpb=b5d9a5debc8a174d269a5bb5d2e63df836ef397a;p=citadel.git diff --git a/citadel/modules/smtp/smtp_clienthandlers.h b/citadel/modules/smtp/smtp_clienthandlers.h index 149c3ddc5..dedab4ba4 100644 --- a/citadel/modules/smtp/smtp_clienthandlers.h +++ b/citadel/modules/smtp/smtp_clienthandlers.h @@ -22,6 +22,8 @@ typedef enum _eSMTP_C_States { eEHLO, eHELO, eSMTPAuth, + eSMTPAuthPlain1, + eSMTPAuthPlain2, eFROM, eRCPT, eDATA, @@ -66,7 +68,7 @@ typedef struct _stmp_out_msg { char node[1024]; char name[1024]; char mailfrom[1024]; - + long SendLogin; long Flags; } SmtpOutMsg; @@ -121,3 +123,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);