Subject: RFC1522 and other patches to PINE 3.91

From: Johan Holmberg <[email-masked]>
Date: Wed, 13 Dec 1995 23:45:22 +0100

Hi !

During the time I have used PINE 3.91 I have made some patches:

  - handle ISO-LATIN-* in header fields (RFC1522).
    This was originally written by Lars Engebretsen <[email-masked]>.

  - handle ISO-LATIN-* in folder names and adress book entries.
    This depends on the "locale" being correctly specified
    (LC_CTYPE, ...)

  - sending PDF files as "application/pdf"

  - view "application/pgp" (without interpreting the PGP-stuff)
    (this was showed as an "attachment" in 3.91)

  - fix to avoid showing text message from some MAC MUA's
    as attachments (with name="Message Body")

  - changes to compile PINE on Solaris-2 with GCC

I know that 3.92 will fix some of these things, but I wanted to
have it *now*. I post the patches here hoping that they might be
useful to others while we are all waiting for 3.92.

I have used these patches on SunOS 4.1.x, Solaris-2 and IRIX 5.x.
I have heard from others that they have used the patches on
HPUX and Unixware also.

One problem with the current way of building PINE is that there
are 28 different makefiles in the "pine" sub-directory.
Therefore I have only done my changes in the makefiles I was
most interested in (hpp,lnx,sgi,sol,sun,sv4).
On other platforms one has to make the corresponding changes to
the makefile for that platform (should be quite easy with "merge"
or even manually).

The RFC1522 stuff works like this:

======================================================================
Before sending a message, Pine will ask you to confirm that you want the
message to go out.  At that confirmation stage, Pine moves the composer
back to the top so that you can verify that the right people are getting
the message.  After confirmation, the message is sent and copied to the 
FCC folder (if any).
 
In this patched version of 3.91 there are three alteratives when sending:
 
    MIME-Q-P   sends the mail with QP-encoding of the body and
               QP-encoding of the header according to RFC1522.
 
    Yes        sends the mail with 8BIT-encoding of the body and
               an "ad hoc" 7-bit approximation of the header.
               This is intended for sending to non-MIME users
               that still can handle real 8-bit characters (hopefully
               in the right character set).
 
    No         same as before :-)
======================================================================
 
I don't think that my changes has been done "the right way".
The are very ad-hoc, but have worked very well for me several
months. But, of course: USE THEM AT YOUR OWN RISK :-)

Attached to this article is:

     * the patches to PINE 3.91. Apply them by doing:

              % cd pine3.91
              % patch -p1 ../pine3.91-jh801-patches

     * the patches to compile with GCC on Solaris-2.
       This patch should be made AFTER the jh801-patch.
       Apply by:

              % cd pine3.91
              % patch -p1 ../pine3.91-solaris-gcc-patches

/johan Holmberg

-----------------------------------------------------------------------
Johan Holmberg                     Email:   [email-masked]
Telia Promotor AB                  Phone:   +46 18  18 94 55
Box 1218                           Mobile:  +46 70 528 94 55
751 42 Uppsala, SWEDEN             Fax:     +46 18  18 94 99
-----------------------------------------------------------------------

---

From: [email-masked] (Johan Holmberg)
Date: 14 Dec 1995 13:06:49 +0100

Yesterday I wrote:
[...]
>                % patch -p1 ../pine3.91-solaris-gcc-patches
[...]  

I forgot to mention that to build PINE on Solaris-2 with GCC
you have do use the following command:

                  % ./build sol CC=gcc

/johan holmberg

--

---

From: [email-masked] (Johan Holmberg)
Date: 17 Dec 1995 11:25:06 +0100

In article <[email-masked]>
[email-masked] (Nelson Chin) writes:
>  
>  8bit works only when emailing in pine.. when i tried to post 8bit
>  in newsgroup, it converted it to base64 :(
>  
>  nelson
>  

I have never used PINE as a News-reader so I haven't
tried to make the patches work there :-(

/johan

---

From: [email-masked] (Nelson Chin)
Date: 15 Dec 1995 00:59:07 GMT

nelson