aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.h
blob: d862314febbad583a63045e4161a955045c95967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * smtp.h -- prototypes for smtp handling code
 *
 * For license terms, see the file COPYING in this directory.
 */

#ifndef _POPSMTP_
#define _POPSMTP_

#define         SMTPBUFSIZE     256

/* SMTP error values */
#define         SM_OK              0
#define         SM_ERROR           128
#define         SM_UNRECOVERABLE   129

#ifdef HAVE_PROTOTYPES
int SMTP_helo(int socket,char *host);
int SMTP_from(int socket,char *from);
int SMTP_rcpt(int socket,char *to);
int SMTP_data(int socket);
int SMTP_eom(int socket);
int SMTP_quit(int socket);
int SMTP_ok(int socket,char *argbuf);
int SMTP_Gets(int socket,char *buf,int sz);
void SMTP_rset(int socket);
#endif /* HAVE_PROTOTYPES */

#endif