#ifndef _POPSMTP_
#define _POPSMTP_
#include "config.h"
#define SMTPBUFSIZE 256
#define SM_OK 0
#define SM_ERROR 128
#define SM_UNRECOVERABLE 129
#define ESMTP_8BITMIME 0x01
#define ESMTP_SIZE 0x02
#define ESMTP_ETRN 0x04
#define ESMTP_ATRN 0x08
#define ESMTP_AUTH 0x10
extern time_t last_smtp_ok;
int SMTP_helo(int socket, char smtp_mode, const char *host);
int SMTP_ehlo(int socket, char smtp_mode, const char *host, char *name, char *passwd, int *opt);
int SMTP_from(int socket, char smtp_mode, const char *from,const char *opts);
int SMTP_rcpt(int socket, char smtp_mode, const char *to);
int SMTP_data(int socket, char smtp_mode);
int SMTP_eom(int socket, char smtp_mode);
int SMTP_rset(int socket, char smtp_mode);
int SMTP_quit(int socket, char smtp_mode);
int SMTP_ok(int socket, char smtp_mode);
extern char smtp_response[MSGBUFSIZE];
#endif