Subject: Re: Mime text (ISO-8859-1)

From: [email-masked] (Johan Holmberg)
Date: 13 Dec 1995 19:20:24 +0100

[email-masked] (Vladimir Solnicky ) writes:
>  
>  On Mon, 11 Dec 1995, Jason Saling wrote:
>  
>  > > : Here is my situation.  I as the unix sys admin receive mail from many
>  > > : MAC users (msmail) who login to the unix servers.  When I receive=20
>  > > : their messages it appears to be in MIME format, therefore I must
>  > > : press V to view the text (Latin text ISO-8859-1) of their messages.
>  > > : This is not a big task, but after 5000000000000 times it can become
>  > > : annoying. =20
>  
>    I do not use any MacIntosh, but I heard some Mac mailing program tags
>  sent messages with a name (I think it was ``Message Body'' or something
>  similar) so that message bodies appear as attachments. If I remember well,
>  one man from Sveden created a patch (for some platforms only--including
>  SGI and HP) which solves it. But I am not sure I can publish his patch as
>  I received it personally. I will try to ask him (or maybe he wiil read
>  this notice and answer himself).
>  

Yes, I have such a patch. It's very simple:

======================================================================
*** mailview.c.orig	Wed Dec 13 19:04:25 1995
--- mailview.c	Wed Dec 13 19:04:35 1995
***************
*** 353,358 ****
--- 353,365 ----
  	    has_name = 1;
  	else
  	    has_name = 0;
+ 
+         /* fix for strange text message from MAC client */
+ 
+         if (has_name && strucmp(param->value,"message body") == 0) {
+             has_name = 0;
+         }
+ 
          a->shown = ((a->body->type==TYPETEXT && !has_name) ||
  		a->body->type==TYPEMESSAGE) && a->can_display && should_show;
          sprintf(a->number, "%s%d",prefix, num);
======================================================================

Beside this patch I have done a couple of other patches to 3.91.
Until now I have been reluctant to publish them, because I have had
the impression the 3.92 would come "soon" and solve all problems :-)

I'll post all my patches as a separate article in this newsgroup.

Regards,

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
-----------------------------------------------------------------------