D:From: Maitre Post <postmaster@example.com>
D:To: Maitre WEB <webmaster@example.com>
D:
-D:.single dot, next is an empty line starting with a '..
+D:.single dot, next is an empty line starting with a '.'
D:.
D:This email is sent to 2 domain X 2 users
D:
taille=strlen(buffer);
if (taille>0)
sent=soc_writebuffer(socptr,buffer,taille);
+ //(void) rou_alert(0,"tcp_write,JMPDBG <%s>",buffer);
}
return sent;
}
{
#define OPEP "gestcpc.c:tcp_send_smtp_data,"
-#define ENDDATA CRLF"."CRLF
+#define ENDDATA "."CRLF
int sent;
FILE *qfile;
while (strlen(data)>0);
//dot escape
if ((strlen(data)>0)&&(data[0]=='.'))
- (void) memmove(data,data+1,strlen(data+1));
+ (void) memmove(data+1,data,strlen(data));
(void) strcat(data,CRLF);
sent+=tcp_write(rmt->socptr,data);
}