]> Pileus Git - ~andy/fetchmail/blob - smtp.h
Ready for Rachel.
[~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 int SMTP_helo(FILE *sockfp,char *host);
18 int SMTP_from(FILE *sockfp,char *from);
19 int SMTP_rcpt(FILE *sockfp,char *to);
20 int SMTP_data(FILE *sockfp);
21 int SMTP_eom(FILE *sockfp);
22 int SMTP_quit(FILE *sockfp);
23 int SMTP_ok(FILE *sockfp);
24
25 #endif