Index: ports/mail/autorespond/files/patch-autorespond.c =================================================================== RCS file: /home/ncvs/ports/mail/autorespond/files/patch-autorespond.c,v retrieving revision 1.4 diff -u -r1.4 patch-autorespond.c --- ports/mail/autorespond/files/patch-autorespond.c 29 Aug 2003 16:04:41 -0000 1.4 +++ ports/mail/autorespond/files/patch-autorespond.c 28 Oct 2003 09:49:28 -0000 @@ -1,6 +1,14 @@ ---- autorespond.c.orig Mon Aug 18 14:41:33 2003 -+++ autorespond.c Mon Aug 18 14:42:14 2003 -@@ -572,7 +572,7 @@ +--- autorespond.c.old Tue Oct 28 11:48:42 2003 ++++ autorespond.c Tue Oct 28 11:49:20 2003 +@@ -538,6 +538,7 @@ + + char * ptr; + char * my_delivered_to; ++char * my_headers; + + DIR * dirp; + struct dirent * direntp; +@@ -595,7 +596,7 @@ if ( *rpath == '$' ) { rpath = safe_malloc( strlen(TheUser) + strlen(TheDomain) + 2); @@ -9,3 +17,24 @@ strncat( rpath, "@", 1 ); strncat( rpath, TheDomain, strlen(TheDomain) ); } +@@ -605,6 +606,9 @@ + /*prepare the "delivered-to" string*/ + my_delivered_to = "Delivered-To: Autoresponder\n"; + ++ /*prepare the "Content-Type" string*/ ++ my_headers = "Content-Type: text/plain; charset=windows-1251\n"; ++ + read_headers( stdin ); + + +@@ -700,8 +704,8 @@ + sprintf(filename,"tmp%u.%u",getpid(),timer); + f = fopen(filename,"wb"); + +- fprintf( f, "%sTo: %s\nFrom: %s\nSubject: Re:%s\n%s\n", +- my_delivered_to, sender, rpath, inspect_headers( "Subject", (char *) NULL ), message ); ++ fprintf( f, "%s%sTo: %s\nFrom: %s\nSubject: Re:%s\n%s\n", ++ my_headers, my_delivered_to, sender, rpath, inspect_headers( "Subject", (char *) NULL ), message ); + + if ( message_handling == 1 ) { + fprintf( f, "%s\n\n", "-------- Original Message --------" );