Subject: RE: Pine for both English and Russian

From: Hong Tian <[email-masked]>
Date: Tue, 8 Oct 2002 14:29:03 -0400

> 4) Start emacs with
>   # emacs -f pine-in-emacs

I completed the first 1) 2) 3) steps. After enter # emacs -f pine-in-emacs,
I got the error message:
# emacs -f pine-in-emacs
Symbol's function definition is void: pine-in-emacs

-----Original Message-----
From: Yitzchak M. Gottlieb [mailto:[email-masked]]
Sent: Tuesday, October 08, 2002 10:45 AM
To: Hong Tian
Cc: Pine Discussion Forum
Subject: Re: Pine for both English and Russian

On Tue, 8 Oct 2002, Hong Tian wrote:

> 
> I am a system Admin. A Pine user on RedHat 7.3 here wants to read (write
if
> possible) his email with both English and Russian. 
> 

I solved a similar problem by running pine from within emacs, using
emacs-client as an alternate editor, and using pine filters and iconv to
convert messages to the right format.

1) First, set the following options in pine:

   character-set=iso-8859-5.
   editor=emacsclient
   
   [X] pass-control-characters-as-is
   [X] enable-alternate-editor-implicitly

2) Next, set up display-filters to catch messages in other character sets
and
   display them in iso-8859-5.  For instance: 
   display-filters=
   _CHARSET(iso-8859-1)_ /usr/bin/iconv -f ISO-8859-1 -t ISO-8859-5
   (I don't think this particular example will work, but this is the style
of
   the filter.)

3) Last, I created an emacs .el file which would start pine and set up the
   terminal properly. (The file, pineinemacs.el, is attached.)  For russian,
   you might want to change references to utf-8 to iso-8859-5.  Also change
the
   paths to the executible file to match your setup.  Emacs should be set up
to
   use the Russian language environment. (See the emacs documentation.)  Set
   up the .emacs file to load pineinemacs.el.

4) Start emacs with
   # emacs -f pine-in-emacs

The result should be a regular pine session inside an emacs frame.  When you
try to compose a message, pine will invoke emacs, so the frontmost frame
will
be your e-mail editor.  To exit back into pine, use C-x #.  

This is the way that I do it for UTF-8 composing.  I'm pretty sure there is
an
easier way to do it for Russian, but this should work.  Also, this has the
advantage of using emacs's input methods which make typing mixed russian and
english messages fairly easy.  I hope this helps.

Yours,

Zuki

-- 
Yitzchak Gottlieb
[email-masked]

---

From: "Yitzchak M. Gottlieb" <[email-masked]>
Date: Tue, 8 Oct 2002 14:36:17 -0400 (EDT)

> Symbol's function definition is void: pine-in-emacs

Try opening emacs then type*:

M-x load-library pineinemacs

Then type

M-x pine-in-emacs

If that works, then it means that the file pineinemacs.el is not being
loaded.  Add the following line the .emacs file

(load "pineinemacs")

and restart emacs.

Zuki

[*]  I'm using emacs conventions M-x means holding down the Meta (usually Alt)
     key and pressing x.

PS Should this discussion move off the list at this point? (It's more about
   emacs than pine

-- 
Yitzchak Gottlieb
[email-masked]