From: Jean-Marc Pigeon (Delson) Date: Fri, 20 Jun 2025 22:57:08 +0000 (-0400) Subject: DATA part is properly sent to remote MX (mailref and mailpostg) X-Git-Tag: tag-0.9~59 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=8c9fc4aa6bdf05a4b2bced7528dabdfc7c4616bf;p=jmp%2Fmailleur DATA part is properly sent to remote MX (mailref and mailpostg) --- diff --git a/data-feed/feed02.tst b/data-feed/feed02.tst index 278a247..d67c865 100644 --- a/data-feed/feed02.tst +++ b/data-feed/feed02.tst @@ -22,7 +22,7 @@ D:Subject: Very Simple email contents 2 domains D:From: Maitre Post D:To: Maitre WEB 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: diff --git a/lib/gestcp.c b/lib/gestcp.c index e0ba505..30095fc 100644 --- a/lib/gestcp.c +++ b/lib/gestcp.c @@ -134,6 +134,7 @@ if (socptr!=(SOCPTR *)0) { taille=strlen(buffer); if (taille>0) sent=soc_writebuffer(socptr,buffer,taille); + //(void) rou_alert(0,"tcp_write,JMPDBG <%s>",buffer); } return sent; } @@ -226,7 +227,7 @@ PUBLIC int tcp_send_smtp_data(RMTTYP *rmt,const char *qemail) { #define OPEP "gestcpc.c:tcp_send_smtp_data," -#define ENDDATA CRLF"."CRLF +#define ENDDATA "."CRLF int sent; FILE *qfile; @@ -267,7 +268,7 @@ while (proceed==true) { 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); }