]> Pileus Git - ~andy/fetchmail/blob - smtp.h
Improved RFC822 conformance in SMTP code.
[~andy/fetchmail] / smtp.h
1 /* Copyright 1996 by Eric S. Raymond
2  * All rights reserved.
3  * For license terms, see the file COPYING in this directory.
4  */
5
6 /***********************************************************************
7   module:       smtp.h
8   project:      fetchmail
9   description:  Prototypes for smtp handling code.
10
11  ***********************************************************************/
12
13 #ifndef _POPSMTP_
14 #define _POPSMTP_
15
16 #define         SMTPBUFSIZE     128  
17
18 /* SMTP error values */
19 #define         SM_OK              0
20 #define         SM_ERROR           128
21 #define         SM_UNRECOVERABLE   129
22
23 #ifdef HAVE_PROTOTYPES
24 int SMTP_helo(int socket,char *host);
25 int SMTP_from(int socket,char *from);
26 int SMTP_rcpt(int socket,char *to);
27 int SMTP_data(int socket);
28 int SMTP_eom(int socket);
29 int SMTP_quit(int socket);
30 int SMTP_ok(int socket,char *argbuf);
31 int SMTP_Gets(int socket,char *buf,int sz);
32 void SMTP_rset(int socket);
33 #endif /* HAVE_PROTOTYPES */
34
35 #endif