Just parse VER using /^VER (.*) ([^ ]*?)$/
This restores the meaning of remote_ver and still has a hack for broken, unfixable mailers that don't advertise protocol v1.1 correctly (ie: Irex)
parent
10d7a690
No related branches found
No related tags found
Loading
-
Out of curiosity, I looked up how BinkD does the protocol version parsing:
#define PRTCLNAME "binkp" ... if (!memcmp (s, "VER ", 4) && (a = strstr (s, PRTCLNAME "/")) != 0 && (b = strstr (a, ".")) != 0) { state->major = atoi (a + 6); state->minor = atoi (b + 1); Log (6, "remote uses " PRTCLNAME " v.%i.%i", state->major, state->minor);
So... that would match "binkp/1.1" anywhere in the VER string (even in parenthesis), likely explaining why IRex never had a problem with BinkD in this regard.
Please register or sign in to comment