diff options
Diffstat (limited to 'usr.sbin/sendmail/src')
| -rw-r--r-- | usr.sbin/sendmail/src/headers.c | 6 | ||||
| -rw-r--r-- | usr.sbin/sendmail/src/queue.c | 16 | ||||
| -rw-r--r-- | usr.sbin/sendmail/src/util.c | 13 | ||||
| -rw-r--r-- | usr.sbin/sendmail/src/version.c | 4 | 
4 files changed, 26 insertions, 13 deletions
| diff --git a/usr.sbin/sendmail/src/headers.c b/usr.sbin/sendmail/src/headers.c index ae242b1e258a..748e2343f703 100644 --- a/usr.sbin/sendmail/src/headers.c +++ b/usr.sbin/sendmail/src/headers.c @@ -33,7 +33,7 @@   */  #ifndef lint -static char sccsid[] = "@(#)headers.c	8.82 (Berkeley) 10/28/95"; +static char sccsid[] = "@(#)headers.c	8.82.1.1 (Berkeley) 2/18/96";  #endif /* not lint */  # include <errno.h> @@ -1253,6 +1253,8 @@ vanilla:  				putline(obuf, mci);  				p = ++nlp;  				obp = obuf; +				if (*p != ' ' && *p != '\t') +					*obp++ = ' ';  			}  			sprintf(obp, "%.*s", sizeof obuf - (obp - obuf) - 1, p);  			putline(obuf, mci); @@ -1437,7 +1439,7 @@ commaize(h, p, oldstyle, mci, e)  		firstone = FALSE;  		*p = savechar;  	} -	(void) strcpy(obp, "\n"); +	*obp = '\0';  	putline(obuf, mci);  }  /* diff --git a/usr.sbin/sendmail/src/queue.c b/usr.sbin/sendmail/src/queue.c index 97bf36cd8086..bd89a31806a8 100644 --- a/usr.sbin/sendmail/src/queue.c +++ b/usr.sbin/sendmail/src/queue.c @@ -36,9 +36,9 @@  #ifndef lint  #ifdef QUEUE -static char sccsid[] = "@(#)queue.c	8.98 (Berkeley) 11/11/95 (with queueing)"; +static char sccsid[] = "@(#)queue.c	8.98.1.1 (Berkeley) 2/18/96 (with queueing)";  #else -static char sccsid[] = "@(#)queue.c	8.98 (Berkeley) 11/11/95 (without queueing)"; +static char sccsid[] = "@(#)queue.c	8.98.1.1 (Berkeley) 2/18/96 (without queueing)";  #endif  #endif /* not lint */ @@ -247,7 +247,7 @@ queueup(e, announce)  	/* output body type */  	if (e->e_bodytype != NULL) -		fprintf(tfp, "B%s\n", e->e_bodytype); +		fprintf(tfp, "B%s\n", denlstring(e->e_bodytype, TRUE, FALSE));  	/* message from envelope, if it exists */  	if (e->e_message != NULL) @@ -380,7 +380,9 @@ queueup(e, announce)  		/* output the header: expand macros, convert addresses */  		if (bitset(H_DEFAULT, h->h_flags))  		{ -			fprintf(tfp, "%s: %s\n", h->h_field, buf); +			fprintf(tfp, "%s: %s\n", +				h->h_field, +				denlstring(buf, FALSE, TRUE));  		}  		else if (bitset(H_FROM|H_RCPT, h->h_flags))  		{ @@ -397,7 +399,11 @@ queueup(e, announce)  			TrafficLogFile = savetrace;  		}  		else -			fprintf(tfp, "%s: %s\n", h->h_field, h->h_value); +		{ +			fprintf(tfp, "%s: %s\n", +				h->h_field, +				denlstring(h->h_value, FALSE, TRUE)); +		}  	}  	/* diff --git a/usr.sbin/sendmail/src/util.c b/usr.sbin/sendmail/src/util.c index 0685bf49c0f3..cee16d89e5ec 100644 --- a/usr.sbin/sendmail/src/util.c +++ b/usr.sbin/sendmail/src/util.c @@ -33,7 +33,7 @@   */  #ifndef lint -static char sccsid[] = "@(#)util.c	8.84 (Berkeley) 11/18/95"; +static char sccsid[] = "@(#)util.c	8.84.1.1 (Berkeley) 2/18/96";  #endif /* not lint */  # include "sendmail.h" @@ -989,7 +989,14 @@ putxline(l, mci, pxflags)  			(void) putc(*l, mci->mci_out);  		fputs(mci->mci_mailer->m_eol, mci->mci_out);  		if (*l == '\n') -			++l; +		{ +			if (*++l != ' ' && *l != '\t' && l[1] != '\0') +			{ +				(void) putc(' ', mci->mci_out); +				if (TrafficLogFile != NULL) +					(void) putc(' ', TrafficLogFile); +			} +		}  	} while (l[0] != '\0');  }  /* @@ -1993,7 +2000,6 @@ denlstring(s, strict, logattacks)  	for (p = bp; (p = strchr(p, '\n')) != NULL; )  		*p++ = ' '; -/*  #ifdef LOG  	if (logattacks)  	{ @@ -2002,7 +2008,6 @@ denlstring(s, strict, logattacks)  			shortenstring(bp, 203));  	}  #endif -*/  	return bp;  } diff --git a/usr.sbin/sendmail/src/version.c b/usr.sbin/sendmail/src/version.c index 644f1a276f43..9817429fc6f1 100644 --- a/usr.sbin/sendmail/src/version.c +++ b/usr.sbin/sendmail/src/version.c @@ -33,7 +33,7 @@   */  #ifndef lint -static char sccsid[] = "@(#)version.c	8.7.3.1 (Berkeley) 12/3/95"; +static char sccsid[] = "@(#)version.c	8.7.4.1 (Berkeley) 2/18/96";  #endif /* not lint */ -char	Version[] = "8.7.3"; +char	Version[] = "8.7.4"; | 
