aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-13 21:24:27 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-13 21:24:27 +0000
commite644052b38ac03a5683f6ba48554dfb4cfe78c9c (patch)
tree69c0ae12e6b4edcc6766999455c0c821d5c2d446 /fetchmail.h
parent1a4bd3b6e4bd25b98a763decd9000b118483b2a8 (diff)
downloadfetchmail-e644052b38ac03a5683f6ba48554dfb4cfe78c9c.tar.gz
fetchmail-e644052b38ac03a5683f6ba48554dfb4cfe78c9c.tar.bz2
fetchmail-e644052b38ac03a5683f6ba48554dfb4cfe78c9c.zip
Gather all server data into a restorable structure.
svn path=/trunk/; revision=754
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 105275a0..56b146b1 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -59,10 +59,10 @@ struct idlist
struct idlist *next;
};
-struct query
+
+struct hostdata /* shared among all user connections to given server */
{
- /* per-host data */
- struct idlist *servernames; /* servername first, then akas */
+ struct idlist *names; /* server name first, then akas */
struct idlist *localdomains; /* list of pass-through domains */
int protocol;
int port;
@@ -70,6 +70,12 @@ struct query
int timeout;
char *envelope;
int skip;
+};
+
+struct query
+{
+ /* mailserver connection controls */
+ struct hostdata server;
/* per-user data */
struct idlist *localnames; /* including calling user's name */