Article View: news.software.readers
Article #3442Re: TIN : problem in mailing replies
From: Tim Pierce
Date: Sun, 28 Feb 1993 06:59
Date: Sun, 28 Feb 1993 06:59
37 lines
1801 bytes
1801 bytes
I sent Iain a patch for this a while ago; I'm not sure if it made it
into PL8. I don't have a diff handy, but the patch is short: in
post.c, in the code for find_reply_to_addr, there's a paragraph that
looks about like this:
if (! found) {
if (arts[respnum].name != arts[respnum].from) {
sprintf (buf, "%s%s (%s)",
arts[respnum].from, add_addr,
arts[respnum].name);
strcpy (from_addr, buf);
}
}
It should read as follows:
if (! found) {
if (arts[respnum].name != arts[respnum].from && arts[respnum].name != NULL) {
sprintf (buf, "%s%s (%s)",
arts[respnum].from, add_addr,
arts[respnum].name);
strcpy (from_addr, buf);
} else {
sprintf (from_addr, "%s%s",
arts[respnum].from, add_addr);
}
}
It's standard practice for printf to output the string "(null)" when
handed a NULL pointer in a %s field; sendmail, probably to its
detriment, can't cope with parentheses in a personal name field.
Having tin check for NULL pointers avoids that.
--
____ Tim Pierce /
\ / twpierce@unix.amherst.edu / Rocks say goodbye.
\/ (BITnet: TWPIERCE@AMHERST) /
Technical Details
Message-ID:
<C35Crw.Btu@unix.amherst.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!ulowell!umassd.edu!nic.umass.edu!news.amherst.edu!twpierceReferences:
<87004@hydra.gatech.EDU>Show Full Headers
Complete Article Headers
Message-ID: <C35Crw.Btu@unix.amherst.edu> Subject: Re: TIN : problem in mailing replies Date: Sun, 28 Feb 1993 06:59:56 GMT From: twpierce@unix.amherst.edu (Tim Pierce) References: <87004@hydra.gatech.EDU> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!ulowell!umassd.edu!nic.umass.edu!news.amherst.edu!twpierce Newsgroups: news.software.readers Organization: Blasny Blasny, Consolidated (Amherst, MA Offices) Lines: 37