aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-14 00:07:17 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-14 00:07:17 +0000
commitbe9c9f0a5b6d598fb9eeb8e4d2d2cfef367dd759 (patch)
treec68d0c994f53077aefc4a95535eb4093b5473c55 /fetchmail.h
parent7d64feadc43b9051bc7d5f8c638d52539f91c7f6 (diff)
downloadfetchmail-be9c9f0a5b6d598fb9eeb8e4d2d2cfef367dd759.tar.gz
fetchmail-be9c9f0a5b6d598fb9eeb8e4d2d2cfef367dd759.tar.bz2
fetchmail-be9c9f0a5b6d598fb9eeb8e4d2d2cfef367dd759.zip
Move as much stuff into server data as possible.
svn path=/trunk/; revision=756
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 56b146b1..5145ed6d 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -62,6 +62,7 @@ struct idlist
struct hostdata /* shared among all user connections to given server */
{
+ /* rc file data */
struct idlist *names; /* server name first, then akas */
struct idlist *localdomains; /* list of pass-through domains */
int protocol;
@@ -70,6 +71,12 @@ struct hostdata /* shared among all user connections to given server */
int timeout;
char *envelope;
int skip;
+
+ /* computed for internal use */
+#ifdef HAVE_GETHOSTBYNAME
+ char *canonical_name; /* DNS canonical name of server host */
+#endif /* HAVE_GETHOSTBYNAME */
+ struct hostdata *lead_server; /* ptr to lead query for this server */
};
struct query
@@ -104,12 +111,8 @@ struct query
struct query *next; /* next query control block in chain */
struct query *lead_smtp; /* pointer to this query's SMTP leader */
FILE *smtp_sockfp; /* socket descriptor for SMTP connection */
- struct query *lead_server; /* pointer to lead query for this server */
unsigned int uid; /* UID of user to deliver to */
char digest [DIGESTLEN]; /* md5 digest buffer */
-#ifdef HAVE_GETHOSTBYNAME
- char *canonical_name; /* DNS canonical name of server host */
-#endif /* HAVE_GETHOSTBYNAME */
};
#define MULTIDROP(ctl) (ctl->wildcard || \