]> Pileus Git - ~andy/fetchmail/commitdiff
Change the `explicit' option to `skip'.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 25 Sep 1996 21:09:53 +0000 (21:09 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 25 Sep 1996 21:09:53 +0000 (21:09 -0000)
svn path=/trunk/; revision=147

NEWS
fetchmail.c
fetchmail.h
fetchmail.man
rcfile_l.l
rcfile_y.y
sample.rcfile

diff --git a/NEWS b/NEWS
index 565b3f27f644a1c9ecd6a1e25ebade6951b00f9b..d6a7f5c70b05b6f723998d43b4b8a763eb56bbe6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ fetchmail-1.0 (Mon Sep 23 19:54:01 EDT 1996):
   server greeting message; add the server host being queried to the
   message count information line).
 
+* `skip' option to make it easier to set up test entries.
+
 * Name change (it ain't just for POP any more).
 
 popclient-3.2 (Mon Sep 23 13:29:46 EDT 1996):
index 44c16ce95d4e0482f154cbbf6bbc50ec849fa36c..331e5508c16eb7969bb9688a38ed33b1c91fdb23 100644 (file)
@@ -225,7 +225,7 @@ char **argv;
 
     /* pick up interactively any passwords we need but don't have */ 
     for (hostp = hostlist; hostp; hostp = hostp->next)
-       if (!(implicitmode && hostp->explicit)
+       if (!(implicitmode && hostp->skip)
            && !hostp->password[0] && !hostp->rpopid[0])
        {
            char prompt[BUFSIZ];
@@ -261,7 +261,7 @@ char **argv;
      */
     do {
        for (hostp = hostlist; hostp; hostp = hostp->next) {
-           if (!implicitmode || !hostp->explicit)
+           if (!implicitmode || !hostp->skip)
                popstatus = query_host(hostp);
        }
 
@@ -405,9 +405,9 @@ struct hostrec *queryctl;
 {
     char *cp;
 
-    if (queryctl->explicit || outlevel == O_VERBOSE)
+    if (queryctl->skip || outlevel == O_VERBOSE)
        printf("  This host will%s be queried when no host is specified.\n",
-              queryctl->explicit ? " not" : "");
+              queryctl->skip ? " not" : "");
     printf("  Username = '%s'\n", queryctl->remotename);
     if (queryctl->password[0] == '\0')
        printf("  Password will be prompted for.\n");
index a50e4dd06c5e9079e8211511bb7aa48908db6a27..2db2e5b2b0e3db48d714c9def93061d1efcba9ae 100644 (file)
@@ -70,7 +70,7 @@ struct hostrec
   int fetchall;
   int flush;
   int norewrite;
-  int explicit;
+  int skip;
   int port;
 
   /* state used for tracking UIDL ids */
index c6215f9b33b4788369f89486c0ecf39767a89bc0..2630453dacce1577c7ecaaa3e821f8e93064e8ca 100644 (file)
@@ -404,21 +404,21 @@ Legal keywords are:
     flush
     fetchall
     rewrite
-    explicit
+    skip
     nokeep
     noflush
     nofetchall
     norewrite
-    noexplicit
+    noskip
     port
 .PP
 All these correspond to the obvuious command-line arguments except
-two: \fBpassword\fR and \fBexplicit\fR.
+two: \fBpassword\fR and \fBskip\fR.
 .PP
 The \fBpassword\fR option requires a string argument, which is the password
 to be used with the entry's server.
 .PP
-The \fBexplicit\fR option tells
+The \fBskip\fR option tells
 .I fetchmail 
 not to query this host unless it is explicitly named on the command
 line.  A host entry with this flag will be skipped when
index 5ac469d6f7b00cbd4c33b2ede99e336e903d439d..32aa6a307fd14a9c910ccd8ae21d19f04a72391f 100644 (file)
@@ -38,12 +38,12 @@ keep                { yylval.flag = TRUE; return KW_KEEP; }
 flush          { yylval.flag = TRUE; return KW_FLUSH; }
 fetchall       { yylval.flag = TRUE; return KW_FETCHALL; }
 rewrite                { yylval.flag = TRUE; return KW_REWRITE; }
-explicit       { yylval.flag = TRUE; return KW_EXPLICIT; }
+skip           { yylval.flag = TRUE; return KW_SKIP; }
 nokeep         { yylval.flag = FALSE; return KW_KEEP; }
 noflush                { yylval.flag = FALSE; return KW_FLUSH; }
 nofetchall     { yylval.flag = FALSE; return KW_FETCHALL; }
 norewrite      { yylval.flag = FALSE; return KW_REWRITE; }
-noexplicit     { yylval.flag = FALSE; return KW_EXPLICIT; }
+noskip         { yylval.flag = FALSE; return KW_SKIP; }
 port           { return KW_PORT; }
 
 (auto)|(AUTO)  { yylval.proto = P_AUTO;  return PROTO_AUTO; }
index 3b90f3f7aef155e303c39908faa1f764ed95e36d..52af1f0d6a95f4049ef55fd66b2226413983390f 100644 (file)
@@ -33,7 +33,7 @@ int yydebug;  /* in case we didn't generate with -- debug */
 %token KW_REMOTEFOLDER KW_LOCALFOLDER KW_SMTPHOST KW_MDA KW_EOL KW_DEFAULTS
 %token <proto> PROTO_AUTO PROTO_POP2 PROTO_POP3 PROTO_IMAP PROTO_APOP PROTO_RPOP
 %token <sval> PARAM_STRING
-%token <flag> KW_KEEP KW_FLUSH KW_FETCHALL KW_REWRITE KW_PORT KW_EXPLICIT
+%token <flag> KW_KEEP KW_FLUSH KW_FETCHALL KW_REWRITE KW_PORT KW_SKIP
 %type <proto> proto;
 
 /* these are actually used by the lexer */
@@ -75,7 +75,7 @@ serv_option_clause:
        |       KW_FLUSH                        {prc_setflush($1);}
        |       KW_FETCHALL                     {prc_setfetchall($1);}
        |       KW_REWRITE                      {prc_setrewrite($1);}
-       |       KW_EXPLICIT                     {prc_setexplicit($1);}
+       |       KW_SKIP                         {prc_setskip($1);}
        |       KW_PORT PARAM_STRING            {prc_setport($2);}
   ;
 
index f7eed18755e77b5dc5d62b97facd759003fc9240..a7b32feda340e2a86991bd5fe32a92bc9e39b9f0 100644 (file)
 #   flush
 #   fetchall
 #   rewrite
-#   explicit
+#   skip
 #   nokeep
 #   noflush
 #   nofetchall
 #   norewrite
-#   noexplicit
+#   noskip
 #   port
 #
 # Legal protocol identifiers are