]> Pileus Git - ~andy/fetchmail/commitdiff
Added idfile.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 22 May 1998 18:42:39 +0000 (18:42 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 22 May 1998 18:42:39 +0000 (18:42 -0000)
svn path=/trunk/; revision=1794

Makefile.in
NEWS
fetchmail.c
fetchmail.man
options.c
rcfile_l.l
rcfile_y.y

index cb61a78c0e6a18d34123029de079b269c2b523d7..47080d98ee52c8a2a9de8b7b9a8046cda2529e0d 100644 (file)
@@ -3,7 +3,7 @@
 # If you're running QNX, we can't assume a working autoconf.
 # So just uncomment all the lines marked QNX.
 
-VERS=4.4.6
+VERS=4.4.7
 
 # Ultrix 2.2 make doesn't expand the value of VPATH.
 srcdir = @srcdir@
diff --git a/NEWS b/NEWS
index 89e0177f1e7b799cdf2b0a606c324fb214eda237..ef3d989fc4afb775a1c14c700b0f8120c520fd8f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -13,10 +13,11 @@ fetchmail-4.4.7 ()
 * Gunther Leber's fix to processing of command-line options.
 * George Colouris's second try at NetBSD autoconfiguration.
 * Bruce Mah's fix for core dump in command-line host specification.
+* Missing `idfile' declaration added to .fetchmailrc processing.
 * Mimedecode default turned off pending a fix for the PGP-signature-
   munging bug.
 
-There are 270 people on fetchmail-friends and 212 on fetchmail-announce.
+There are 270 people on fetchmail-friends and 216 on fetchmail-announce.
 
 fetchmail-4.4.6 (Sat May 16 14:16:49 EDT 1998)
 * Fix a bug introduced by my 4.4.5 bug-fix release :-(
index 63d4cdc89aac59aabb3cc6490ffc23ed40d14d29..2da20e4ce85a95be14b43f3ea84e0d80b6318ccf 100644 (file)
@@ -62,6 +62,7 @@ flag nodetach;                /* if TRUE, don't detach daemon process */
 flag quitmode;         /* if --quit was set */
 flag check_only;       /* if --probe was set */
 char *cmd_logfile;     /* if --logfile was set */
+char *cmd_idfile;      /* if --idfile was set */
 int cmd_daemon;        /* if --daemon was set */
 
 /* miscellaneous global controls */
@@ -838,6 +839,10 @@ static int load_params(int argc, char **argv, int optind)
     if (cmd_logfile)
        logfile = cmd_logfile;
 
+    /* if cmd_idfile was explicitly set, use it to override idfile */
+    if (cmd_idfile)
+       logfile = cmd_idfile;
+
     /* likewise for poll_interval */
     if (cmd_daemon >= 0)
        poll_interval = cmd_daemon;
index b607f01685d0a9d767f37abd5715e2a3189227e7..0484e779136a680a25fd07d31faa956a91c910f7 100644 (file)
@@ -356,6 +356,7 @@ run control file.  Unless the --version option is also on, the file must have
 permissions no more open than  0600 (u=rw,g=,o=) or else be /dev/null.
 .TP
 .B \-i pathname, --idfile pathname
+(Keyword: idfile)
 Specify an alternate name for the .fetchids file used to save POP3
 UIDs. 
 .TP
index 221574d8801559ace29bff40a0ff4855807eda0e..bf42c1fd2a1e8ad14dd0b5175cad48f912a1e535 100644 (file)
--- a/options.c
+++ b/options.c
@@ -191,8 +191,8 @@ struct query *ctl;  /* option record to be initialized */
            break;
        case 'i':
        case LA_IDFILE:
-           idfile = (char *) xmalloc(strlen(optarg)+1);
-           strcpy(idfile,optarg);
+           cmd_idfile = (char *) xmalloc(strlen(optarg)+1);
+           strcpy(cmd_idfile,optarg);
            break;
        case 'p':
        case LA_PROTOCOL:
index 0c8e5edf6d9a6347802c3097279090b64b00ebbf..58fe10a0b2fd21c42d7c01b597eaba9191b28e1e 100644 (file)
@@ -23,6 +23,7 @@ int prc_lineno = 1;
 
 set            { return SET; }
 logfile                { return LOGFILE; }
+idfile         { return IDFILE; }
 daemon         { return DAEMON; }
 syslog         { return SYSLOG; }
 invisible      { return INVISIBLE; }
index cd421f47427ed6fddd1d6f76290fa9fc52138ca1..2427459b39791477c1093630180ab346e3a17fef 100644 (file)
@@ -67,7 +67,7 @@ extern char * yytext;
 %token SPAMRESPONSE PRECONNECT POSTCONNECT LIMIT
 %token IS HERE THERE TO MAP WILDCARD
 %token BATCHLIMIT FETCHLIMIT EXPUNGE
-%token SET LOGFILE DAEMON SYSLOG INVISIBLE NETSEC INTERFACE MONITOR
+%token SET LOGFILE DAEMON SYSLOG IDFILE INVISIBLE NETSEC INTERFACE MONITOR
 %token <proto> PROTO
 %token <sval>  STRING
 %token <number> NUMBER
@@ -88,6 +88,7 @@ optmap                : MAP | /* EMPTY */;
 
 /* future global options should also have the form SET <name> optmap <value> */
 statement      : SET LOGFILE optmap STRING     {logfile = xstrdup($4);}
+               | SET IDFILE optmap STRING      {idfile = xstrdup($4);}
                | SET DAEMON optmap NUMBER      {poll_interval = $4;}
                | SET SYSLOG                    {errors_to_syslog = TRUE;}
                | SET INVISIBLE                 {use_invisible = TRUE;}