diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-08 22:24:23 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-08 22:24:23 +0000 |
commit | 961c949249137dceec492ad84edc2a4d2ad12796 (patch) | |
tree | 5d68d6da50220270105c763a494f7f229a8794d9 /rcfile_y.y | |
parent | a44cd4f05642454a89c60e8dc6a87bd04da2a9d2 (diff) | |
download | fetchmail-961c949249137dceec492ad84edc2a4d2ad12796.tar.gz fetchmail-961c949249137dceec492ad84edc2a4d2ad12796.tar.bz2 fetchmail-961c949249137dceec492ad84edc2a4d2ad12796.zip |
Added the preconnect feature.
svn path=/trunk/; revision=719
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -42,7 +42,7 @@ static void prc_reset(); } %token DEFAULTS POLL SKIP AKA PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS -%token ENVELOPE USERNAME PASSWORD FOLDER SMTPHOST MDA LIMIT +%token ENVELOPE USERNAME PASSWORD FOLDER SMTPHOST MDA PRECONNECT LIMIT %token IS HERE THERE TO MAP WILDCARD %token SET BATCHLIMIT FETCHLIMIT LOGFILE INTERFACE MONITOR %token <proto> PROTO @@ -167,6 +167,7 @@ user_option : TO localnames HERE | FOLDER STRING {strcpy(current.mailbox, $2);} | SMTPHOST STRING {strcpy(current.smtphost, $2);} | MDA STRING {strcpy(current.mda, $2);} + | PRECONNECT STRING {strcpy(current.preconnect, $2);} | KEEP {current.keep = ($1==FLAG_TRUE);} | FLUSH {current.flush = ($1==FLAG_TRUE);} @@ -319,6 +320,7 @@ static void prc_register(void) STR_FORCE(mailbox, FOLDERLEN); STR_FORCE(smtphost, HOSTLEN); STR_FORCE(mda, MDALEN); + STR_FORCE(preconnect, CMDLEN); #undef STR_FORCE #define FLAG_FORCE(fld) if (cmd_opts.fld) current.fld = cmd_opts.fld @@ -349,6 +351,7 @@ void optmerge(struct query *h2, struct query *h1) STR_MERGE(mailbox, FOLDERLEN); STR_MERGE(smtphost, HOSTLEN); STR_MERGE(mda, MDALEN); + STR_MERGE(preconnect, CMDLEN); #undef STR_MERGE #define FLAG_MERGE(fld) if (!h2->fld) h2->fld = h1->fld |