47c2fe5a52
New distfile. md5 -> distinfo. rename patches.
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
$OpenBSD: patch-com_gw_c,v 1.1 2001/11/27 10:06:50 form Exp $
|
|
--- com_gw.c.orig Fri Feb 9 06:34:55 2001
|
|
+++ com_gw.c Tue Nov 27 15:37:43 2001
|
|
@@ -169,7 +169,7 @@ simpleServerPipe(int netfd, encoding *en
|
|
int cnt = 0; \
|
|
while(cnt < ENTLEN && *from && *from!=';' && !isspace(*from)) \
|
|
{\
|
|
- *to++=*str++;\
|
|
+ *to++=*from++;\
|
|
cnt++;\
|
|
}\
|
|
*to='\0';\
|
|
@@ -222,12 +222,15 @@ EmailGateway (int fromfile,int tofile, c
|
|
if(!strncasecmp(buf,"Content-Type:",13))
|
|
{
|
|
parseContentType(buf+13,ctype,ocharset,garbage);
|
|
- fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
|
|
+// if enabled, crushes into the mail - mailers get crazy
|
|
+// fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
|
|
if(!strcasecmp(ctype,"text/plain") && strcasecmp(ocharset,"us-ascii")
|
|
&& strlen(garbage)==0)
|
|
{
|
|
- fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
|
|
- sprintf(buf,"Content-Type: text/plain; charset=%s\n",charset);
|
|
+// if enabled, crushes into the mail - mailers get crazy
|
|
+// fprintf(stderr,"Content: %s, charset: %s\n",ctype,ocharset);
|
|
+// not everyone lives in the UNIX world... \r is still needed :)
|
|
+ sprintf(buf,"Content-Type: text/plain; charset=%s\r\n",charset);
|
|
blen = strlen(buf);
|
|
}
|
|
}
|