aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-24 20:41:57 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-24 20:41:57 +0000
commita5c5ce437bce689c08dabdbcd1107f3d0175539d (patch)
treefa0e59dcd9d5aad39333910f0856e90aed4c0306 /fetchmail.h
parentc3d362f9c8a1dea65918ec84e72de1555992adc0 (diff)
downloadfetchmail-a5c5ce437bce689c08dabdbcd1107f3d0175539d.tar.gz
fetchmail-a5c5ce437bce689c08dabdbcd1107f3d0175539d.tar.bz2
fetchmail-a5c5ce437bce689c08dabdbcd1107f3d0175539d.zip
Support for multidrop mailboxes.
svn path=/trunk/; revision=374
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/fetchmail.h b/fetchmail.h
index c5ef2496..baaa6f88 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -56,8 +56,12 @@
struct idlist
{
- int num;
char *id;
+ union
+ {
+ int num;
+ char *id2;
+ } val;
struct idlist *next;
};
@@ -65,12 +69,12 @@ struct hostrec
{
/* per-host data */
char servername [HOSTLEN+1];
- char localname [USERNAMELEN+1];
char remotename [USERNAMELEN+1];
char password [PASSWORDLEN+1];
char mailbox [FOLDERLEN];
char smtphost[HOSTLEN+1];
char mda [MDALEN+1];
+ struct idlist *localnames;
int protocol;
int port;
int authenticate;
@@ -95,6 +99,9 @@ struct hostrec
struct hostrec *next; /* next host in chain */
unsigned int uid; /* UID of user to deliver to */
char digest [DIGESTLEN];
+#ifdef HAVE_GETHOSTBYNAME
+ char *canonical_name; /* DNS canonical name of server host */
+#endif /* HAVE_GETHOSTBYNAME */
};
struct method
@@ -135,6 +142,7 @@ extern char *rcfile; /* path name of rc file */
extern char *idfile; /* path name of UID file */
extern int linelimit; /* limit # lines retrieved per site */
extern int versioninfo; /* emit only version info */
+extern char *dfltuser; /* invoking user */
#ifdef HAVE_PROTOTYPES
@@ -157,9 +165,13 @@ int doIMAP (struct hostrec *);
void initialize_saved_lists(struct hostrec *, char *);
void save_uid(struct idlist **, int, char *);
void free_uid_list(struct idlist **);
+void save_id_pair(struct idlist **, char *, char *);
+void free_idpair_list(struct idlist **);
int delete_uid(struct idlist **, int);
int uid_in_list(struct idlist **, char *);
char *uid_find(struct idlist **, int);
+char *idpair_find(struct idlist **, char *);
+void append_uid_list(struct idlist **, struct idlist **);
void update_uid_lists(struct hostrec *);
void write_saved_lists(struct hostrec *, char *);