[pmmail-list] patch to fix codepage issues in OS/2

Chris Hellwig pmmail-list@blueprintsoftwareworks.com
Wed, 24 Jan 2001 10:14:00 +0100 (MEZ)


Hi Samuel,

thanks for the filter.

I think it has a problem if it come to a file with NO 'Content-Type:' entry. 
The filter will add  
'; charset=iso-8859-1'
to the 'Content-Type:' entry resulting in 
'Content-Type: ; charset=iso-8859-1'

This prevents PMMail in some cases (???????) from showing the message 
in the preview pan, the mail has -in PMMails eys- an attachment with the 
body of the mail. I don't understand that....

I included a line after line 155 of your code:
155:   {
156:     /*if no content type information available, I assume it is "text/plain"  
*/
157:      if (strlen(header->content_type) == 0) 
strcpy(header->content_type,"text/plain");    
158:        fprintf(file_write, "Content-Type: %s; charset=iso-8859-1", 
header->content_type);

May be line 109 in read_header is a better place to fix it.

With this little modfication the program works like expected.

Thanks
  Chris

On Tue, 23 Jan 2001 19:28:50 -0500 (EST), Samuel Audet wrote:
>
>Well, yes I can add that... I just updated the archive on
>http://www.cam.org/~guardia/archives/fixpmmcp.zip  I haven't tested it,
>tell me if it works fine!
>
>-- 
>Samuel Audet <guardia@cam.org>
>http://www.cam.org/~guardia/

- pmmail-list - The PMMail Dicussion List ---------------------------
To POST to the list, send your message to
pmmail-list@blueprintsoftwareworks.com

To UNSUBSCRIBE, send a message to mdaemon@bmtmicro.com with the first 
line of the message body being...

UNSUBSCRIBE pmmail-list@blueprintsoftwareworks.com
---------------------------------------------------------------------