From 73b1a8ee4370e5dd59b21ac9cf98120682632c59 Mon Sep 17 00:00:00 2001 From: dequis Date: Thu, 19 Mar 2015 07:25:33 -0300 Subject: get_rfc822_header: allow headers at the end of a string --- protocols/msn/ns.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'protocols') diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index 4d98982a..a9236b07 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -303,6 +303,8 @@ int msn_ns_command(struct msn_data *handler, char **cmd, int num_parts) strlen(resp), resp); g_free(resp); return st; + } else if (strcmp(cmd[0], "QRY") == 0) { + /* CONGRATULATIONS */ } else if (strcmp(cmd[0], "OUT") == 0) { int allow_reconnect = TRUE; @@ -326,6 +328,10 @@ int msn_ns_command(struct msn_data *handler, char **cmd, int num_parts) if (num_parts >= 3) { handler->msglen = atoi(cmd[2]); } + } else if (strcmp(cmd[0], "PUT") == 0) { + if (num_parts >= 4) { + handler->msglen = atoi(cmd[3]); + } } else if (strcmp(cmd[0], "QNG") == 0) { ic->flags |= OPT_PONGED; } else if (g_ascii_isdigit(cmd[0][0])) { -- cgit v1.2.3