diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-11 19:01:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-11 19:01:53 +0000 |
commit | e2035c018f293db615fb4c46984ea033b9e7f50b (patch) | |
tree | 81803a87e383b510be5682b634758c35e1ee7cde /fetchmail.h | |
parent | 7e3ec8c9d872b906a803c406f4851f30ff98ee5c (diff) | |
download | fetchmail-e2035c018f293db615fb4c46984ea033b9e7f50b.tar.gz fetchmail-e2035c018f293db615fb4c46984ea033b9e7f50b.tar.bz2 fetchmail-e2035c018f293db615fb4c46984ea033b9e7f50b.zip |
Most of the way to SMTP forwarding.
svn path=/trunk/; revision=79
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fetchmail.h b/fetchmail.h index 571a39d8..6cd1b480 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -34,7 +34,8 @@ #define PS_IOERR 6 /* local folder I/O woes */ #define PS_ERROR 7 /* some kind of POP3 error condition */ #define PS_EXCLUDE 8 /* exclusion error */ -#define PS_UNDEFINED 9 /* something I hadn't thought of */ +#define PS_SMTP 9 /* SMTP error */ +#define PS_UNDEFINED 10 /* something I hadn't thought of */ /* output noise level */ #define O_SILENT 0 /* mute, max squelch, etc. */ @@ -42,6 +43,7 @@ #define O_VERBOSE 2 /* excessive */ /* output sink type */ +#define TO_SMTP 0 /* use SMTP forwarding */ #define TO_FOLDER 1 /* use a mailbox */ #define TO_STDOUT 2 /* use stdout */ #define TO_MDA 3 /* use agent */ @@ -54,6 +56,7 @@ struct hostrec char password [PASSWORDLEN]; char userfolder [FOLDERLEN]; char remotefolder [FOLDERLEN]; + char smtphost[HOSTLEN]; char mda [MDALEN]; int keep; int protocol; @@ -113,8 +116,6 @@ extern int versioninfo; /* emit only version info */ int gen_ok (char *buf, int socket); void gen_send (); int gen_transact (); -int gen_readmsg (int socket, int mboxfd, long len, int delimited, - char *host, int topipe, int rewrite); /* prototypes for globally callable functions */ int doPOP2 (struct hostrec *); |