]> Pileus Git - ~andy/fetchmail/commitdiff
Various minor bugfixes.
authorEric S. Raymond <esr@thyrsus.com>
Mon, 10 Feb 1997 09:33:43 +0000 (09:33 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Mon, 10 Feb 1997 09:33:43 +0000 (09:33 -0000)
svn path=/trunk/; revision=859

NEWS
driver.c
fetchmail.c
pop3.c
rcfile_l.l
uid.c

diff --git a/NEWS b/NEWS
index 54c9e35d7c9cbb9b80b33a143a8541ed33ca6677..5bd5d13d194407c3eb253a84f04ab2cc4c02ca09 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,24 @@
                        Release Notes:
 
 ------------------------------------------------------------------------------
+fetchmail-3.4 ()
+
+features --
+
+bugs --
+
+* The bug that displayed incorrect sizes for POP3 connections has been fixed.
+
+* Upped the %a option in the lexer file so SunOS 4.1.3 lex won't choke with a
+  "Too Many Transitions" error.
+
+* Size-ticker dots are now disabled when verbose is on.  This should eliminate
+  some alarming but harmless "(message incomplete)" messages from the
+  error-logging machinery.
+
+There are 220 people on the fetchmail-friends list.
+
+------------------------------------------------------------------------------\
 
 pl 3.3.2 (Mon Feb  3 12:59:33 EST 1997):
 * Minor fixes to stripcr and password-shrouding logic.
index a9f868b2946ee39a9fc358adc019dd10ca014d72..9ab322df76c941c6d53d510c606b6ef04783fe1e 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -451,13 +451,12 @@ char *realname;           /* real name of host */
            ((ch = SockPeek(sockfp)) == ' ' || ch == '\t');
 
        /* write the message size dots */
-       if ((n = strlen(line)) > 0)
+       if ((outlevel>O_SILENT && outlevel<O_VERBOSE) && (n=strlen(line)) > 0)
        {
            sizeticker += n;
            while (sizeticker >= SIZETICKER)
            {
-               if (outlevel > O_SILENT)
-                   error_build(".");
+               error_build(".");
                sizeticker -= SIZETICKER;
            }
        }
index 39f70074c6b28b4bba5a90824956aad5e9223c31..1a2dc8dc9e2f1c06585da1f61572285a90ac3af9 100644 (file)
@@ -233,7 +233,7 @@ int main (int argc, char **argv)
        if (check_only)
        {
            fprintf(stderr,
-                "fetchmail: can't check mail while another fetchmail to same host is running.");
+                "fetchmail: can't check mail while another fetchmail to same host is running.\n");
            return(PS_EXCLUDE);
         }
        else if (!implicitmode)
diff --git a/pop3.c b/pop3.c
index 722322606ff1939b246241e8829dcfc3896779f7..bf91bc9206c7dcbb1867b89202f993e06847ef6f 100644 (file)
--- a/pop3.c
+++ b/pop3.c
@@ -243,7 +243,7 @@ static int pop3_fetch(FILE *sockfp, struct query *ctl, int number, int *lenp)
        *lenp = 0;
     else
     {
-       while (--cp > buf && isdigit(*cp))
+       while (--cp >= buf && isdigit(*cp))
            continue;
        *lenp = atoi(++cp);
     }
index 059b07c238d0503f8ebf1b2a7f8e10880e8f39ac..9a7f33fcc56ba9346cc163610da721fc34663d4c 100644 (file)
@@ -15,7 +15,7 @@ int prc_lineno = 1;
 
 /* this doesn't work with Linux lex, see the INSTALL file */
 %o 5000
-%a 3000
+%a 4000
 
 WS     [ \t]*
 
diff --git a/uid.c b/uid.c
index 32aa0b36cc7aa8c0259b151411380e2f1ba0a5d7..9dd1979cd96d54c2637fde3cff047712f730bef0 100644 (file)
--- a/uid.c
+++ b/uid.c
@@ -145,6 +145,7 @@ void save_str_pair(struct idlist **idl, const char *str1, const char *str2)
        (*end)->val.id2 = xstrdup(str2);
     else
        (*end)->val.id2 = (char *)NULL;
+    (*end)->next = (char *)NULL;
 }
 
 #ifdef __UNUSED__