aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-12-20 00:53:35 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-12-20 00:53:35 +0000
commit5fe46d67a2dbb4c36a8d0180e5623c7e09c9ca09 (patch)
tree99c3f944d4bce72515e522039b3b78833f404e05 /smtp.h
parent992472f23eaa7a283e37808177596a7cc1796bd5 (diff)
downloadfetchmail-5fe46d67a2dbb4c36a8d0180e5623c7e09c9ca09.tar.gz
fetchmail-5fe46d67a2dbb4c36a8d0180e5623c7e09c9ca09.tar.bz2
fetchmail-5fe46d67a2dbb4c36a8d0180e5623c7e09c9ca09.zip
* SMTP/LMTP cleanup to fix these two bugs:
- switch back to SMTP after having tried LMTP hosts (multiple smtphost hosts) - switch back to LMTP after sending a bounce. The patch removes the global state variable that was the root of this problem. Patch by Sunil Shetye. svn path=/branches/BRANCH_6-3/; revision=4581
Diffstat (limited to 'smtp.h')
-rw-r--r--smtp.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/smtp.h b/smtp.h
index 3dc874ff..b65196a7 100644
--- a/smtp.h
+++ b/smtp.h
@@ -25,16 +25,15 @@
extern time_t last_smtp_ok;
-void SMTP_setmode(char);
-int SMTP_helo(int socket,const char *host);
-int SMTP_ehlo(int socket,const char *host, char *name, char *passwd, 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);
+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];