phase=999; //No need to go further
}
break;
- case 5 : { //sending originator
+ case 4 : { //sending originator
int rspcode;
rspcode=simple_smtp_command(rmt,"MAIL FROM: <%s>",(*tosend)->mailfrom);
}
break;
}
- case 6 : { //sending recipient list
+ case 5 : { //sending recipient list
TRATYP **dest;
dest=tosend;
}
break;
}
- case 7 : //closing current connection with MX
+ case 6 : //closing current connection with MX
(void) close_mx(rmt);
break;
- case 8 : //cleaning recipient list
+ case 7 : //cleaning recipient list
(void) free(tosend);
tosend=(TRATYP **)0;
phase=0; //Lets see if we have other recipient
char *rou_stripcrlf(char *line)
{
-if (line!=(char *)0) {
- register int taille;
- register char *ptr;
-
- taille=strlen(line)-1;
- ptr=line+taille;
- while ((*ptr=='\n') || (*ptr=='\r')) {
- *ptr='\000';
- taille--;
- if (taille<0)
- break;
- ptr--;
- }
- }
+if (line!=(char *)0)
+ line[strcspn(line,"\r\n")]='\000';
return line;
}