|      H> I was trying to have only email addresses in a plain text file,
|      H> copied from address book of pine. When tried to import
|      H> .addressbook in gnumeric, it failed ( gnumeric crashes ) as
|      H> neither it is fixed width nor space or tab separated.
|
|  Pine is not suited for this kind of job at all. Switch to mutt. ;-)
|  You will find pine address book to plain text converters at
|  http://www.mutt.org (IIRC).

A much simpler solution is provided by USM Bish, which show
the power of scripts.

        -------------->>>

Quite simple really. This small script will extract all
addresses for you in the type of file  suitable for use
under mailx or for clipping into the script using send-
mail -t. Note: pine keeps all addresses in .addressbook
This acript will extract all  addresses alone to a file
called pine.address.db.

-------<snip>-------

#!/bin/sh
cd $HOME
> pine.address.db
for i in `cat .addressbook`; do
    echo $i | grep "@" >> pine.address.db
done
exit 0

-------</snip>-------

        -------------->>>

H.S.Rai



_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to