ftp.nice.ch/pub/next/unix/mail/fetchmail.4.3.7.s.tar.gz#/fetchmail-4.3.7/smtp.h

This is smtp.h in view mode; [Download] [Up]

/*
 * 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

/* ESMTP extension option masks (not all options are listed here) */
#define ESMTP_8BITMIME	0x01
#define ESMTP_SIZE	0x02
#define ESMTP_ETRN	0x04

int SMTP_helo(int socket,char *host);
int SMTP_ehlo(int socket,char *host,int *opt);
int SMTP_from(int socket,char *from,char *opts);
int SMTP_rcpt(int socket,char *to);
int SMTP_data(int socket);
int SMTP_eom(int socket);
int SMTP_rset(int socket);
int SMTP_quit(int socket);
int SMTP_ok(int socket);

extern char smtp_response[MSGBUFSIZE];

#endif

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.