]> Pileus Git - ~andy/fetchmail/blob - smtp.h
Avoid conf\using log message.
[~andy/fetchmail] / smtp.h
1 /*
2  * smtp.h -- prototypes for smtp handling code
3  *
4  * For license terms, see the file COPYING in this directory.
5  */
6
7 #ifndef _POPSMTP_
8 #define _POPSMTP_
9
10 #define         SMTPBUFSIZE     256
11
12 /* SMTP error values */
13 #define         SM_OK              0
14 #define         SM_ERROR           128
15 #define         SM_UNRECOVERABLE   129
16
17 /* ESMTP extension option masks (not all options are listed here) */
18 #define ESMTP_8BITMIME  0x01
19 #define ESMTP_SIZE      0x02
20 #define ESMTP_ETRN      0x04
21
22 int SMTP_helo(FILE *sockfp,char *host);
23 int SMTP_ehlo(FILE *sockfp,char *host,int *opt);
24 int SMTP_from(FILE *sockfp,char *from,char *opts);
25 int SMTP_rcpt(FILE *sockfp,char *to);
26 int SMTP_data(FILE *sockfp);
27 int SMTP_eom(FILE *sockfp);
28 int SMTP_rset(FILE *sockfp);
29 int SMTP_quit(FILE *sockfp);
30 int SMTP_ok(FILE *sockfp);
31
32 extern char smtp_response[MSGBUFSIZE];
33
34 #endif