Subject: Help with Setting User-Name

From: "Bill Andersen" <[email-masked]>
Date: Mon, 2 Apr 2001 13:54:39 -0500

After trying to search the archives this morning for
about a 1/2 hour on every term imaginable (with NO results)
I finally read the top of the screen and saw they re-index
on the 1st or 2nd!

I have installed pine v4.10 from a pre-compiled binary for
AIX 4.1.5.  (I would install a newer version from source, but
I have no C compiler on this machine).

Everything works fine, except I have the following problem.

The AIX box was purchased as a package with our accounting
and distribution software.  Not only did they only supply
the bare necessities (i.e. no compiler, no man pages, etc.)
They also run ALL users with "superuser" previlages.  They
say it's so that users can do "direct print" to our line
printers(??), but it's causing me major problems with pine.

The problem I have is that any outbound mail appears to
originate as "root", regardless of how the user logs in.
AND when they check mail, all users see the "root" mailbox.

Is there a way to tell Pine to set the user from the pinerc
rather than from the "real" user name?

FYI: If I log in as "bill" and do a "Whoami", it returns
"root", however, a "Who am i" returns "bill".  Is there
an environment variable I could set before launching
pine and return it to "root" upon exiting pine?

TIA

Bill

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: "Bill Andersen" <[email-masked]>
Date: Tue, 3 Apr 2001 12:14:57 -0500

>EEEKKKK!  I've heard some stupid excuses in my time, but this one
>just might take top prize.  Setting up printers in AIX doesn't
>require a PhD.  Have you suggested to your vendor that they
>consider brain surgery?  :-)

  Actually I'd be happy if they would simply GET a brain! :)

  Yes, I finally found enough info on the u.washington.edu web
  site to get this working.  The trick is in editing the .pinerc
  (or pine.conf for all users) "feature-list" option and add
  "allow-changing-from".  This is what actually makes the addition
  of the "From:" header work.  I had added the From: header within the
  Settings:Configure:customized-hdrs, but it never would use
  it - until I found the "allow-changing-from" option in the .pinerc

  Everything seems to work as expected.  Reply-To: is correct, From:
  is correct and mail bounces to the correct sender if sent to an
  invalid address.  The only other "minimal" problem I still have is
  the X-Sender: still shows <[email-masked]>.  For right now, I'm
  just going to live with it.  I'll research how to remove the X-Sender
  header later...

>If you do find that pine uses ~bill/.pinerc under AIX,
>you might also try setting "inbox-path" in ~bill/.pinerc.

  Yes sir!  Although the docs say the "default" IS to use
  /usr/spool/mail/$USER, it always picks up "root" when
  the pine.conf file had _nothing_ listed for "inbox-path".
  I set it specifically to inbox-path=/usr/spool/mail/$USER
  and everybody checks the correct inbox!!!

  Well, I'm finally there... Thanks to everyone for all the suggestions.

Bill