aka list so no potential alias has to be DNS-checked more than once.
* Try to use envelope From. If that fails, fall back on calling-user.
* Added FAQ file
+* Added `logfile' keyword to rc syntax.
fetchmail-2.0 (Mon Nov 18 00:32:17 EST 1996):
int quitmode; /* if --quit was set */
int check_only; /* if --probe was set */
int cmd_batchlimit; /* if --batchlimit was set */
+char *cmd_logfile; /* if --logfile was set */
/* miscellaneous global controls */
char *rcfile; /* path name of rc file */
if (cmd_batchlimit > -1)
batchlimit = cmd_batchlimit;
+ /* if cmd_logfile was explicitly set, use it to override logfile */
+ if (cmd_logfile)
+ logfile = cmd_logfile;
+
return(implicitmode);
}
extern int quitmode; /* if --quit was set */
extern int check_only; /* if --check was set */
extern int cmd_batchlimit; /* if --batchlimit was set */
+extern char *cmd_logfile; /* if --logfile was set */
/* these get computed */
extern int batchlimit; /* if --batchlimit was set */
.PP
For backward compatibility, the word `server' is a syninym for `poll'.
.PP
-There is currently only one valid global option statement; it is
+There are currently two valid global option statements;
\&`set batchlimit = ' followed by a number and sets the same global
-specified by the --batchlimit option. (The command line option
-can override this.)
+specified by the --batchlimit option, and `set logfile = ' followed
+by a string sets the same global specified by --logfile. In both
+cases, a command-line option will override.
.PP
Basic format is:
break;
case 'L':
case LA_LOGFILE:
- logfile = optarg;
+ cmd_logfile = optarg;
break;
case 'f':
case LA_RCFILE:
set { return SET; }
batchlimit { return BATCHLIMIT; }
+logfile { return LOGFILE; }
defaults { return DEFAULTS; }
server { return POLL; }
poll { return POLL; }
%token DEFAULTS POLL SKIP AKA PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS
%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO MAP LIMIT
-%token SET BATCHLIMIT
+%token SET BATCHLIMIT LOGFILE
%token <proto> PROTO
%token <sval> STRING
%token <number> NUMBER
/* future global options should also have the form SET <name> <value> */
statement : SET BATCHLIMIT MAP NUMBER {batchlimit = $4;}
+ | SET LOGFILE STRING {logfile = xstrdup($3);}
/*
* The way the next two productions are written depends on the fact that
# Legal global option statements are
#
# set batchlimit = -- must be followed by a number
+# set logfile = -- must be followed by a string
#
# The noise keywords `and', `with', `has', `wants', and `options' are ignored
# anywhere in an entry; they can be used to make it resemble English. The