🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #2303

Re: Unofficial Patches to elm2.2

#2303
From: Piercarlo Grandi
Date: Mon, 08 Jan 1990 19:41
44 lines
1875 bytes
In article <1566@aber-cs.UUCP> pcg@cs.aber.ac.uk (Piercarlo Grandi) writes:
    This is a patch to elm2.2 PL14 for improved sorting functionality, speed,
    etc... Here it is:

I omitted a line by mistake in the following patch, for file 'src/newmbox.c':

    *** 598,603 ****
    --- 619,635 ----
      	}
      	else 
                rewind(mailfile);
    + 
    + 	{
    + 	  register unsigned excess;
    + 
    + 	  for (excess = count; excess < max_headers; excess++)
    + 	    if (headers[excess] != NULL)
    + 	      {
    + 		(void) free(headers[excess]);
    + 		headers[excess] = NULL;
    + 	      }
    + 	}
      
      	/* Sort folder *before* we establish the current message, so that
      	 * the current message is based on the post-sort order.

This should read:

    + 
    + 	{
    + 	  register unsigned excess;
    + 
    + 	  for (excess = count; excess < max_headers; excess++)
    + 	    if (headers[excess] != NULL)
    + 	      {
    + 		(void) free(headers[excess]);
    + 		headers[excess] = NULL;
    + 	      }
+++++	  if (current > count) current = count;
    + 	}
-- 
Piercarlo "Peter" Grandi           | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk
Dept of CS, UCW Aberystwyth        | UUCP: ...!mcvax!ukc!aber-cs!pcg
Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk
Technical Details
Message-ID: <1575@aber-cs.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!dcl-cs!aber-cs!pcg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!dcl-cs!aber-cs!pcg
From: pcg@aber-cs.UUCP (Piercarlo Grandi)
Newsgroups: comp.sources.bugs,comp.mail.elm
Subject: Re: Unofficial Patches to elm2.2
Summary: A line was omitted in the patch
Keywords: patch bug elm 2.2 sort
Message-ID: <1575@aber-cs.UUCP>
Date: 8 Jan 90 19:41:09 GMT
Reply-To: pcg@cs.aber.ac.uk (Piercarlo Grandi)
Organization: Dept of CS, UCW Aberystwyth
 (Disclaimer: my statements are purely personal)
Lines: 44