_Bool status;
char *param;
-status=false;
+status=true;
if ((param=strchr(line,' '))!=(char *)0) {
*param='\000'; //cut line
param++; //pointer on parameter
if ((status=gomodetls(socptr))==false)
(void) report(numline,line,"Unable to set TLS mode");
break;
- case 2 : //GOTLS
- if (param==(char *)0)
- (void) report(numline,line,"Missing 'seconds' parameters");
- else {
+ case 2 : //SLEEP
+ if (param!=(char *)0)
(void) sleep(atoi(param));
- status=true;
+ else {
+ (void) report(numline,line,"Missing 'seconds' parameters");
+ status=false;
}
break;
default :
(void) report(numline,line,"Unknown command");
+ status=false;
break;
}
return status;
case 1 : //waiting for a line with CRLF
received=(char *)0;
got=tcp_getline(socptr,WAITLINE,&received);
+ (void) rou_alert(0,"%s, received=<%s>",OPEP,received);
switch (got) {
case 0 : //Reading timeout
(void) rou_alert(0,"Unable to receive line in due time");
# S: outgoing data
# T: Test titre or Info
T:basic test function
-R:220 emlrcvr ESMTP emlrcvr...
+R:220 mailleur.example.com ESMTP emlrcvr...
S:EHLO example.com
-R:250-emlrcvr ready, your IP/FQDN=[127.0.0.1/localhost.localdomain]
+R:250-mailleur.example.com ready, your IP/FQDN=[127.0.0.1/localhost.localdomain]
R:250-SIZE 52428800
R:250-ORGN
R:250-STARTTLS
R:250-AUTH PLAIN LOGIN
R:250 HELP
C:GOTLS
-C:SLEEP 10
+R:250 HELP
#send a empty ehlo
S:EHLO
R:501 5.5.4 syntax error (domain part missing), closing connection.