Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Sep 1995 10:39:05 -0700
From:      Paul Traina <pst@shockwave.com>
To:        michael butler <imb@scgt.oz.au>
Cc:        current@freebsd.org
Subject:   Re: rmail and brain-dead mail systems .. patch enclosed 
Message-ID:  <199509161739.KAA00498@precipice.shockwave.com>
In-Reply-To: Your message of "Sun, 17 Sep 1995 01:06:18 %2B1000." <199509161506.BAA08149@asstdc.scgt.oz.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
This seems backwards.  Why would you want a null address in there, rather
than just fix the one or two clients that don't do the right thing if no
address is present (which has been legal for years)?

Paul

  From: michael butler <imb@scgt.oz.au>
  Subject: rmail and brain-dead mail systems .. patch enclosed
  Will someone please add this patch to bin/rmail/rmail.c.
  
  Some of us have to deal with mail from brain-dead gateways (notably MS-mail)
  that produce "From " lines without an address .. e.g. ..
  
  	From  Sun Sep 17 01:10:23 1995
  	Received: from ...
  
   .. this throws rmail into a spin :-(
  
  The patch recommended by Eric Allman is ..
  
  *** rmail.c~	Mon Mar 20 01:06:12 1995
  --- rmail.c	Tue May 16 03:26:57 1995
  ***************
  *** 211,216 ****
  --- 211,218 ----
    		/* Save off from user's address; the last one wins. */
    		for (p = addrp; *p && !isspace(*p); ++p);
    		*p = '\0';
  + 		if (*addrp == '\0')
  + 			addrp = "<>";
    		if (from_user != NULL)
    			free(from_user);
    		if ((from_user = strdup(addrp)) == NULL)
  
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509161739.KAA00498>