Commit 8f65ad0b 8f65ad0b9af6e83254f5c4e4056c09eaa9e28a52 by Sergey Poznyakoff

(imap_parse): Preserve the remainder of the OK line after '[whatever]' for diagnostic purposes.

1 parent 33d40f75
......@@ -2252,11 +2252,11 @@ imap_parse (f_imap_t f_imap)
if (*remainder == '[')
{
char *cruft, *subtag;
char *sp = NULL;
char *sp = NULL, *sp1;
remainder++;
cruft = strtok_r (remainder, "]", &sp);
if (!cruft) cruft = empty;
subtag = strtok_r (cruft, " ", &sp);
subtag = strtok_r (cruft, " ", &sp1);
if (!subtag) subtag = empty;
if (strcasecmp (subtag, "ALERT") == 0)
......