Subject: announce: script for converting addressbook to mailrc

From: Barney Dalton <[email-masked]>
Date: Thu, 21 May 1998 17:40:46 +0800

I'm sure many people have done this before, but I couldn't find it
anywhere, so thought I'd post my solution for converting pine addressbooks
to the .mailrc format.

barney

#
# Time-stamp: "98/05/21 16:57:19 bdalton"
#
# Copyright (C) 1998 Barney Dalton
# 
# pine2mailrc - converts pine addressbook to mailrc format
# 
# usage : pine2mailrc
# input : ~/.addressbook (hard coded)
# output: stdout pine aliases in .mailrc format 

$addressin=$ENV{"HOME"}."/.addressbook";

if (!open(ADDRESSIN, $addressin))
{
    print "\ncould not open $addressin\n";
    exit 1;
}

@lines=();

while (<ADDRESSIN>)
{
    chomp;
    push @lines, $_;
}

while ( $entry=pop(@lines)) #read it backwards
{
    while($entry =~ s/^   //) #continuation lines
    {$entry = pop(@lines) . $entry;}

    if ($entry !~ s/^\#/# /) #if its not a comment
    {
        ($nickname, $fullname, $emailaddress, $fcc, $comments) = split /\t/, $entry;
        $emailaddress =~ s/\"//;
        if ($emailaddress =~ s/^\((.*)\)$/\"$1\"/) # if group of emails
        {
            $emailaddress =~ s/,/\" \"/g; #subst commas for " "
        }
        else
        {$emailaddress= "\"" . $emailaddress . "\"";} # surround with quotes
        print "alias $nickname $emailaddress\n";
        if ($fullname ne ""){print "\# Fullname=$fullname\n";}
        if ($comments ne ""){print "\# Comment=$comments\n";}
        if ($fcc ne ""){print "\# Fcc=$fcc\n";}

    }
    else #comment
        {print "$entry\n";}
}   

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

---

From: "Robin S. Socha" <[email-masked]>
Date: 21 May 1998 13:30:20 +0200

> Barney Dalton <[email-masked]> writes:

    > I'm sure many people have done this before, but I couldn't find
    > it anywhere, so thought I'd post my solution for converting pine
    > addressbooks to the .mailrc format.

 <http://franck.pc.uni-koeln.de/~robin/pine-tips.html#pine2mailrc>

Ok?

Robin

-- 
Robin S. Socha     Join the Fight: <http://www.enemy.org/>
	    Free Software: Contribute nothing, expect nothing

---

From: Aniruddha Shankar <[email-masked]>
Date: Sat, 23 May 1998 16:24:44 +0530 (IST)

Can Pine automatically decode base64 or uuencoded or xxencoded files?

Aniruddha Shankar 
3rd. year B.A. Ll.B (Hons.) 			phone: +91-011-664295,
National Law School of India University		       +91-080-3303707
P.O. Box 7201 
Nagarbhavi P.O. 				email: [email-masked]
Bangalore
State of Karnataka
Union of India

---

From: "Adam H. Kerman" <[email-masked]>
Date: Mon, 25 May 1998 07:56:00 -0500 (CDT)

>From: Aniruddha Shankar <[email-masked]>
>Date: Sat, 23 May 1998 16:24:44 +0530 (IST)

>Can Pine automatically decode base64

Yes; attachments are always Base 64 encoded. When attachments are received
encoded in Base 64, they are automatically decoded.

>or uuencoded or xxencoded files?

No; pipe through appropriate program. If standard MIME format, use MIME-aware
tools with proper setting in /etc/mailcap.