Subject: "Path:"-Header Bug Fix

From: Stan Kalisch III <[email-masked]>
Date: Tue, 25 Feb 1997 12:31:28 -0800

-----BEGIN PGP SIGNED MESSAGE-----

[Posted to comp.mail.pine and Cced to the Pine Developers]

These are instructions on editing the Pine source code to fix a bug in the
way pine generates "Path:" headers when a user is posting to newsgroups.

Under the current distribution, if the use of alternate "From:" headers is
enabled a compile-time, and one uses an alternate "From:" header, the
"Path:" header that is generated by Pine is bogus.

Example:

Normally, a post from this account and machine (sjkiii, crl4.crl.com)
would partially read:

Path: ...!nexp.crl.com!crl4.crl.com!sjkiii
From: Stan Kalisch III <[email-masked]>

But let's say I want to use an alternative e-mail address in my "From:"
header, thus causing Pine to generate an "X-Sender:" or "Sender:" header.
This is what happens:

Path: ...!nexp.crl.com!crl4.crl.com!coolio
From: Stan Kalisch III <[email-masked]>
X-Sender: [email-masked]

Only problem is that I am not user coolio on this machine--in fact, on
this machine user coolio doesn't exist!  Ooops...

To fix this problem, edit the imap/ANSI/c-client/nntp.c or
imap/non-ANSI/c-client/nntp.c (depending, of course, on your kind of
compiler) in your Pine source distribution, and find the following two
lines:

    sprintf (tmp,"Path: %s!%s\015\012",tcp_localhost (stream->tcpstream),
	     env->from ? env->from->mailbox : "foo");

Edit the second of these two lines so that these lines read

    sprintf (tmp,"Path: %s!%s\015\012",tcp_localhost (stream->tcpstream),
	     "not-for-mail");

This is the quickest, most painless fix you can apply to your Pine
source code for this problem, and barring ridiculous circumstances,
shouldn't cause you a problem.  Thus, the previous example

Path: ...!nexp.crl.com!crl4.crl.com!coolio
From: Stan Kalisch III <[email-masked]>
X-Sender: [email-masked]

would be modified to read as the following:

Path: ...!nexp.crl.com!crl4.crl.com!not-for-mail
From: Stan Kalisch III <[email-masked]>
X-Sender: [email-masked]

The "not-for-mail" follows the convention adopted in the INN
news-server software.

As this is an unofficial modification to the Pine source code, you
should add the letter "L" to your version number of Pine before
compiling, as specified in the Pine Legal Notices that come as part of
the Pine source distribution.

Best regards,

Stan

Stan Kalisch III
[email-masked]