]> Pileus Git - ~andy/fetchmail/blobdiff - smtp.h
gcc -Wall cleanup.
[~andy/fetchmail] / smtp.h
diff --git a/smtp.h b/smtp.h
index 7ee1893d090be237aa7d33db765d0667098837c2..bc0d9e4003d67ab32b2c7013f61aedc6916c1702 100644 (file)
--- a/smtp.h
+++ b/smtp.h
@@ -1,35 +1,35 @@
-/* Copyright 1996 by Eric S. Raymond
- * All rights reserved.
+/*
+ * smtp.h -- prototypes for smtp handling code
+ *
  * For license terms, see the file COPYING in this directory.
  */
 
-/***********************************************************************
-  module:       smtp.h
-  project:      fetchmail
-  description:  Prototypes for smtp handling code.
-
- ***********************************************************************/
-
 #ifndef _POPSMTP_
 #define _POPSMTP_
 
-#define         SMTPBUFSIZE     128  
+#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);
+/* ESMTP extension option masks (not all options are listed here) */
+#define ESMTP_8BITMIME 0x01
+#define ESMTP_SIZE     0x02
+#define ESMTP_ETRN     0x04
+
+void SMTP_setmode(char);
+int SMTP_helo(int socket,const char *host);
+int SMTP_ehlo(int socket,const char *host,int *opt);
+int SMTP_from(int socket,const char *from,const char *opts);
+int SMTP_rcpt(int socket,const 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,char *argbuf);
-int SMTP_Gets(int socket,char *buf,int sz);
-void SMTP_rset(int socket);
-#endif /* HAVE_PROTOTYPES */
+int SMTP_ok(int socket);
+
+extern char smtp_response[MSGBUFSIZE];
 
 #endif