Subject: Changing From: Field

From: [email-masked] (Ryan Kolak)
Date: 16 Oct 1996 21:37:44 GMT

Hi there... I have a slight problem... actually more of an annoyance.

Is there any way to change the from field within pine to something else.
I realize why this has been made difficult to change, but here is my situation.

My host name is tri0002.urh.uiuc.edu. But it isn't mine to keep. It may change
at any given moment. Most likely it won't, but regardless, I use a email
redirector at uiuc.edu that resloves to my email address at my computer.

Basically, my mail then looks like this:
From: [email-masked]
Reply-To: [email-masked]

While this works, there are mailers that don't respect the Reply-To field, and
then it is still up to the people to chose to use the reply-to field.

Any help is appreciated.

Ryan
-- 

--

---

From: Ed Greshko <[email-masked]>
Date: Thu, 17 Oct 1996 13:07:56 +0800 (GMT)

> then it is still up to the people to chose to use the reply-to field.

Do you mind to recompile?

Find the pine/osdep/os-xxx.h file of you choice and look for:

/*----------------------------------------------------------------------
   Define this if you want to allow the users to change their From header
   line when they send out mail.  The users will still have to configure
   either default-composer-hdrs or customized-hdrs to get at the From
   header, even if this is set.
 ----*/
/* #define ALLOW_CHANGING_FROM  /* comment out to not allow changing From
*/

Ed

-- 
Edward M. Greshko                  Technical Manager, Electronic Commerce
                                   Control Data Asia/Pacific Region
Voice: +886-2-715-2222 x287        6/F, 131 Nanking East Road, Section 3
FAX  : +886-2-712-9197             Taipei, Taiwan R.O.C

---

From: Richard Gering <[email-masked]>
Date: Thu, 17 Oct 1996 10:30:18 +0100 (WET)

> then it is still up to the people to chose to use the reply-to field.

Since your user name stays the same, you could consider changing your
user-domain in the configuration screen. Putting the value "uiuc.edu" in
user-domain will effectively change the From: header to "[email-masked]".

You will notice that an extra header will be added to your message: 
"X-Sender: [email-masked]". The original sender therefore
remains preserved, but the change in From: should give you what you want. 

Be aware that this option will also effect all unqualified addresses! 
That is, a message plainly sent to "root" will no longer go to the root
account on your local system, but to "[email-masked]" instead!

Hope this helps.

Regards,

- Richard Gering.

+-----------------------------------------------------------------------------+
| Richard Gering ([email-masked]) |      Open minds use Open Systems        |
| CI International. The Netherlands |      (which O.S. are you using?)        |
+-----------------------------------------------------------------------------+

---

From: [email-masked] ()
Date: 17 Oct 1996 04:28:38 GMT

Yes, I am in essentially the same situation.  Is there some way to instruct 
PINE to use a different "From:" address? 

Christian

Ryan Kolak ([email-masked]) wrote:
: Hi there... I have a slight problem... actually more of an annoyance.
: 
: Is there any way to change the from field within pine to something else.
: I realize why this has been made difficult to change, but here is my 
: situation.
: 
: My host name is tri0002.urh.uiuc.edu. But it isn't mine to keep. It may change
: at any given moment. Most likely it won't, but regardless, I use a email
: redirector at uiuc.edu that resloves to my email address at my computer.
: 
: Basically, my mail then looks like this:
: From: [email-masked]
: Reply-To: [email-masked]
: 
: While this works, there are mailers that don't respect the Reply-To field, and
: then it is still up to the people to chose to use the reply-to field.
: 
: Any help is appreciated.
: 
: Ryan
: -- 
: 
: --

-- 
____________________________________________________________________________
think. - A newspaper of literary and visual art.    http://think.ucdavis.edu
Christian Sandvig, Editor                           [email-masked]

---

From: Ryan Kolak <[email-masked]>
Date: Thu, 17 Oct 1996 00:11:45 -0500

I tried this. Doesn't work. I am running 3.95 now. and I get the error
message that says that I can't change the field. You mentioned that the
system admin may have changed this option. well, I am the sys admin of my
own machine and would make the change. I could hack the code, but I would
have to find time. Anybody know if is possible?

Ryan

On Wed, 16 Oct 1996, Jago wrote:

> Go to Setup/Config and select customized-hdrs.  Type 'A', then type in the
> following:
> 
> From: [email-masked]
> 
> That will change your From: field.  Of course, your system admin may not
> allow this.  A good test is to set that field anyway, and if Pine gives
> you this error:
> 
>                      [Not allowed to change header "From"]
> 
> you're pretty much out of luck except to use .forward, though I'm
> uncertain if this is what you want to do ultimately if the From: field
> fails.  Good luck!
>

---

From: [email-masked] (Thomas Stock)
Date: 18 Oct 1996 07:13:33 GMT

In order to allow changing the From field as described below, you have to 
modify some include file before compiling pine (it is the OS dependend file 
for your system).

BTW, more detailed information on this issue can be found somewhere in the 
documentation ;-) In case you cannot find it, drop me an e-mail.

Thomas

In article <[email-masked]>, 
[email-masked] says...
~
~I tried this. Doesn't work. I am running 3.95 now. and I get the error
~message that says that I can't change the field. You mentioned that the
~system admin may have changed this option. well, I am the sys admin of my
~own machine and would make the change. I could hack the code, but I would
~have to find time. Anybody know if is possible?
~
~Ryan
~
~
~On Wed, 16 Oct 1996, Jago wrote:
~
~>> Go to Setup/Config and select customized-hdrs.  Type 'A', then type in 
the
~> following:
~> 
~> From: [email-masked]
~> 
~> That will change your From: field.  Of course, your system admin may not
~> allow this.  A good test is to set that field anyway, and if Pine gives
~> you this error:
~> 
~>                      [Not allowed to change header "From"]
~> 
~> you're pretty much out of luck except to use .forward, though I'm
~> uncertain if this is what you want to do ultimately if the From: field
~> fails.  Good luck!

---

From: Jason Englander <[email-masked]>
Date: Sun, 20 Oct 1996 17:02:00 -0500 (CDT)

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

> have to find time. Anybody know if is possible?

cd into pine3.95/pine/osdep/ then edit os-XXX.h where XXX is your os type
(ie. I use Linux, so it would be os-lnx.h) and enable ALLOW_CHANGING_FROM.

I'm logged in as root on my own system right now, using an e-mail account
through my ISP, so here's your proof.  Once you recompile, you will be able
to add a "From: [email-masked]" to custom headers.

  Jason

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
E-mail      : [email-masked], @interl.net, @geocities.com
Web         : http://www.interl.net/~jasoneng/
Linux Links : http://nll.home.ml.org/
PGP Key     : send e-mail with subject: get-pgp-key
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Linux: because a PC is a terrible thing to waste

---

From: [email-masked] (R. Stewart Ellis)
Date: 21 Oct 1996 12:24:56 GMT

>> have to find time. Anybody know if is possible?

Which field are you trying to change the name of?  I have set the following
in pine.conf:

# user-domain specifies the domain part of your return address on outgoing
# email and is also used as the default domain for email composed to a
# local user.  If unset, Unix Pine will obtain the domain from the system.
user-domain=gmi.edu

This makes all outgoing mail for users on my site put "[email-masked]".  I
have been trying for years to get all users to quit using the explicit name
of the main mail host and to tell people their addresses are [email-masked]
and pine's config here is a big help.

If the sysadmin wants to freeze this, create a pine.conf.fixed I believe.

 >(ie. I use Linux, so it would be os-lnx.h) and enable ALLOW_CHANGING_FROM.

Both of the previous 2 posters were simply wishing to change the domain part
of their address to match an MX record for the domain rather than a host.  I
am not sure the advice given by Jason addresses the issue.  Both of them
have the right name, but the wrong domain.

 >-----BEGIN PGP SIGNATURE-----
 >Version: 2.6.2
 >Comment: Processed by mkpgp2.1, a Pine/PGP interface.

 >iQCVAwUBMmqhJiGB07hAGnFhAQFj+AQA3B4YWOZwYfAfmOKbdUwl2kJ2L4Zg3ZnV
 >GhD7n1yNXXqut+MTboE0XWkWFAf5TsIE/Vz8u3dBeyTBZ4T9nFRHbxAdlj3ENd81
 >pk7WB3fhoUNEMiR60UbNfvxaQVf7OJswymhR2H8ArKoWmt2S1CUL9eA8hPvmPcub
 >dL7dCdFULgI=
 >=CUvA
 >-----END PGP SIGNATURE-----

-- 
  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)810-762-9765   ___________________
  Humanities & Social Science,  GMI Eng.& Mgmt.Inst. ()  /   _____  ______
  Flint, MI 48504    Free speech and free software!  /\ /        / /  /  / /
  Web admin:  http://www.gmi.edu/      [email-masked]   /________/ /  /  / /

---

From: Jago <[email-masked]>
Date: Wed, 16 Oct 1996 22:22:58 -0400

From: [email-masked]

-- 
{--------------------------------------------------------------------------}
{ Name: Steven C. King               Institution: Florida State University }
{ Addr: [email-masked]  Major field: MM Performance           }
{       [email-masked]           Instruments: Clarinet, piano (hobby)  }
{ URL:  http://otto.cmr.fsu.edu/~king_s/ - MIDI, Humor, KI2, Pictures, etc.}
{                        "The way to do is to be."                         }
{--------------------------------------------------------------------------}

---

From: Jason Englander <[email-masked]>
Date: Tue, 22 Oct 1996 14:24:57 -0500 (CDT)

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

> have the right name, but the wrong domain.

He asked if he could change the from field.  The error message he saw was
because pine was compiled in the default way, which is set to NOT allow
changing that particular field.  So, in order to change the from field, he
needs to recompile pine by editing that particular file, and changing that
setting.  

True, custom headers may have been set in pine.conf.fixed as blank, but I
highly doubt it, as he is the sysadmin of that system.

If he had asked how to change all but the username for _everyone_ on his
system, I would've instructed him to modify /etc/sendmail.cf  ...or to set
the domain name in pine.conf.fixed  Neither solution would help him if he
were to try to send mail from his root account (or any other), because the
From: header would show [email-masked]

  Jason