Subject: Re[2]: Address books

From: [email-masked]
Date: Fri, 13 Sep 96 08:22:55

Thank you everyone who made suggestions on how to use the UNIX 
     /etc/passwd list of users to create an .addressbook file (especially 
     Vladim Solnick).
     
     The problem is that creating a text file with only FULLNAME and 
     ADDRESS is not enough.  A NICKNAME field must also be included.  The 
     following is the script I used to create the .addressbook file:
     
     #!/bin/sh
     # File:  pine-addressbook
     # What:  Create a new global addressbook for the Pine email system.
     echo "Creating global address list for Pine ..."
     cut -d: -f1,5 /etc/passwd | tr ' ' '_' | tr ':' ' ' | \
     awk '{ 
          print $1 "\t" $2 "\t" $1"@companyname.com" "\t" "\t"
          }' > /tmp/.addressbook.tmp
     tr '_' ' ' < /tmp/.addressbook.tmp > /tmp/.addressbook.new
     echo "1.  The new global Pine address book is:  /tmp/.addressbook.new"
     echo "2.  Be sure to edit out the 'garbage' email addresses, first."
     echo "3.  Then, move it into /usr/local/lib/.addressbook"
     ## EOF
     
     That is all there is to it.  Now, when a user presses the RETURN key on an 
     address in the addressbook, the address pops into the "TO:" field like it 
     should (all because of the NICKNAME field).
     
     - Michael
     
     ------------------------------------------------------------------
     Michael Wright, Systems Analyst         email: [email-masked]
     Yakima Products, Inc.                   Ph:    707-826-8175
     P.O. Box 4899, Arcata, CA 95521 (USA)   Fx:    707-826-8149
     ------------------------------------------------------------------

______________________________ Reply Separator _________________________________
Subject: Re: Address books
Author:  Bc. Vladimír Solnický <[email-masked]>
To: Pine 
email dis at INTERNET
Date:    9/12/96 10:04 AM

  **ERROR** LONG FROM FIELD. FIELD WAS CUT. OLD FIELD WAS:
=?ISO-8859-2?Q?Bc=2E_Vladim=EDr_Solnick=FD?= <[email-masked]>
To: Pine email discussion group <[email-masked]>
Subject: Re: Address booksOn Thu, 12 Sep 1996 [email-masked] wrote:

>      If I use the UNIX "vi" editor to look at the .addressbook file I 
>      create inside of Pine, the file contains the following characters:
>           nickname TAB username TAB address NEWLINE
>      
>      where "TAB" is the tab key, and NEWLINE is the end of the entry.

I do not think you are right. Try the following structure:

nickname TAB username TAB address TAB fcc TAB comment NEWLINE

You may leave the last two empty but include tha TAB separators (i.e.
every line contains (at least) four TAB's.

>      However, if I create this same file by hand in the "vi" editor, or if 
>      I build it from an existing list of users, the .addressbook does NOT 
>      function the same way.  Pine refuses to properly call up a given user 
>      if that username is defined in the "manually-created" method.

[...]

>      Am I missing something?  Why won't Pine accept an addressbook file 
>      that I have created myself outside of Pine?

I think it should work now (we use script creating a global addressbook
from our password file).

Regards,

V. S.

Vladim?r Solnick?, ?TIA AV ?R, Pod vod?renskou v??? 4,
182 08 Praha 8-Libe?, +42 2 6605/2364, telefax: +42 2 6884677,
[email-masked], http://www.utia.cas.cz/vs/vs-home-cz.html

---

From: David L Miller <[email-masked]>
Date: Fri, 13 Sep 1996 11:01:45 -0700

>      echo "3.  Then, move it into /usr/local/lib/.addressbook"

You should also include "pine -create_lu" call to make the .lu file. 
Otherwise all of your users will be creating temporary .lu files each
time they run Pine....

--DLM

-- 
|\ |  |\/|  David L. Miller    [email-masked]  (206) 685-6240
|/ |_ |  |  Software Engineer, Pine Development Team   (206) 685-4045 (FAX)
University of Washington, Networks & Distributed Computing, Box 354841
4545 15th Ave NE, Seattle WA 98105, USA