Subject: bringing back an old thread Re: X-Sender

From: Nagilum <[email-masked]>
Date: Sun, 5 Dec 1999 01:24:45 -0500 (EST)

Hi, before I pose my question I want to first mention that this was
already the subject of a message I found in the list archives:

http://www.washington.edu/pine/pine-info/1998.07/msg00150.html

My question is the same: is it possible to remove the X-Sender line from
outbound messages?

I believe the conclusion reached in that thread to be incorrect: I don't
think the MTA is putting that line in there, but rather the MUA (Pine) is,
and I'm looking for a way to prevent this.  :)

I've done enough testing with different settings and toying with my MTA to
be reasonably confident that Pine is inserting this line.  However, my
reasons for wanting to remove it are different from those of the original
poster's.

It could be considered an issue of security in a sense.  Also of
convenience.  Putting the X-Sender of the local userid who runs pine
basically nullifies all the reason I have for appreciating Pine's Role
support.  Using a single instance of Pine for multiple accounts, and
replying to them with different roles, is a great concept but your base
username (and hence, your *other* e-mail address, which you may not want
others to see) is exposed in the current implementation.

This can also be a problem for sites which use an intermediary MTA to
perform address-to-user translation, for instance, the 
'Jim.Breton=nagilum' scheme is foiled by the X-Sender (or Sender) line in
the headers.

I've looked at the source a bit and tried a few variations, but I always
end up breaking something and haven't really had the time yet to
investigate it more thoroughly. :) Does anyone know a reliable way of
disabling this feature?

Thanks!

---

From: Seth Kurtzberg <[email-masked]>
Date: Sun, 5 Dec 1999 08:28:10 -0700 (MST)

I think that the best way to do this is not in pine, but in an
intermediate process between pine and sendmail (or whatever mail sending
agent is in use).  A simple perl (or shell script, although I lean to Perl
as being at least a little less cryptic, and if I were writing it myself I
would write it in C, but that is a minority opinion)... Where was I?  Oh
yes, a simple Perl script can remove the information that you want and
then forward the message to sendmail.

There is another mail program, which I don't like nearly as much as Pine,
that will allow you to edit the headers directly before sending.  It is
called "mutt".

Seth Kurtzberg
Machine Independent Software
Cell (602) 478-5511
Fax: (480) 614-8909
email:  [email-masked]
pager:  888-605-9296 or email [email-masked]

---

From: "TjL" <[email-masked]>
Date: Wed, 8 Dec 1999 09:43:47 -0500

The bad news:
The only way I found to do this was by editing the PINE source code to
remove the Sender/X-Sender stuff.

The good news:
Editing the source code this way is relatively simple, and my patches (for
3.96 and 4.10, so they're not new, but should show you what is needed) are
available at:

http://www.peak.org/~luomat/patches/pine/

You need to edit send.c and reply.c (at least that was all as of 4.10).

The changes are pretty obvious (or were to me, and I'm not a programmer &
can't read C)

TjL

---

From: Nancy this-address-is-valid McGough <[email-masked]>
Date: Wed, 8 Dec 1999 17:46:49 -0500 (EST)

> The changes are pretty obvious (or were to me, and I'm not a programmer &

According to:

 http://www.washington.edu/pine/overview/legal.html 

"Local modification of this release is permitted as follows, or by
 mutual agreement: In order to reduce confusion and facilitate
 debugging, we request that locally modified versions be denoted
 by appending the letter "L" to the current version number, and
 that the local changes be enumerated in the integral release
 notes and associated documentation."

Can someone tell me where in the source I would need to change
"4.21" to "4.21L" and what doc files I would need to list my
changes in? Also, where in the source can I change the Message-ID
so it doesn't say my machine's name? Now that I have a Linux
machine I can start taking advantage of Pine's open-sourceness!

Thanks,
Nancy 

-- 
For Pine links, see http://www.ii.com/internet/messaging/pine/
 
©Nancy McGough         http://www.ii.com/         Infinite Ink
--= Sent via PINE 4.21: Internet News & Email for Win/Unix =--

---

From: "Eduardo Chappa L." <[email-masked]>
Date: Wed, 8 Dec 1999 15:01:25 -0800 (PST)

*** Nancy this-address-is-valid McGough ([email-masked]) wrote today:
:) 
:) Can someone tell me where in the source I would need to change
:) "4.21" to "4.21L" and what doc files I would need to list my
:) changes in? Also, where in the source can I change the Message-ID
:) so it doesn't say my machine's name? Now that I have a Linux
:) machine I can start taking advantage of Pine's open-sourceness!
:) 
Take a look at pine.h

pine.h:#define PINE_VERSION             "4.21"

Also take look at the function

generate_message_id()

in the file pine/reply.c

Congrats for the linux machine. I have just started working in one (now I
can work in real linux :))), Thanks David!). I hope you don't forget about
PC-PINE, you are the most reliable source for it, around here.

Eduardo
http://www.math.washington.edu/~chappa/pine/