X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=smtp.h;h=bc0d9e4003d67ab32b2c7013f61aedc6916c1702;hb=66900c733ccef6a01b8fc6d7ca9f5f9adac7656a;hp=d673ec93aef963d724fd9ebdc0c6155e8a5b7da3;hpb=d29f00801f0c468640792ca5888c4f7b16f94254;p=~andy%2Ffetchmail diff --git a/smtp.h b/smtp.h index d673ec93..bc0d9e40 100644 --- a/smtp.h +++ b/smtp.h @@ -14,13 +14,22 @@ #define SM_ERROR 128 #define SM_UNRECOVERABLE 129 -int SMTP_helo(FILE *sockfp,char *host); -int SMTP_from(FILE *sockfp,char *from); -int SMTP_rcpt(FILE *sockfp,char *to); -int SMTP_data(FILE *sockfp); -int SMTP_eom(FILE *sockfp); -int SMTP_quit(FILE *sockfp); -int SMTP_ok(FILE *sockfp); -void SMTP_rset(FILE *sockfp); +/* ESMTP extension option masks (not all options are listed here) */ +#define ESMTP_8BITMIME 0x01 +#define ESMTP_SIZE 0x02 +#define ESMTP_ETRN 0x04 + +void SMTP_setmode(char); +int SMTP_helo(int socket,const char *host); +int SMTP_ehlo(int socket,const char *host,int *opt); +int SMTP_from(int socket,const char *from,const char *opts); +int SMTP_rcpt(int socket,const char *to); +int SMTP_data(int socket); +int SMTP_eom(int socket); +int SMTP_rset(int socket); +int SMTP_quit(int socket); +int SMTP_ok(int socket); + +extern char smtp_response[MSGBUFSIZE]; #endif