# HG changeset patch # User Timo Sirainen # Date 1032457751 -10800 # Node ID de8683b5bb1677f2544681874b11687b7bfe0635 # Parent bd51b6445bcd175a8966accd225544c113483335 message_content_parse_header() didn't parse the header properly and just skipped all but the first parameter. diff -r bd51b6445bcd -r de8683b5bb16 src/lib-mail/message-content-parser.c --- a/src/lib-mail/message-content-parser.c Thu Sep 19 20:14:34 2002 +0300 +++ b/src/lib-mail/message-content-parser.c Thu Sep 19 20:49:11 2002 +0300 @@ -28,9 +28,10 @@ if (param_func != NULL) { /* parse the parameters */ - for (i++; i < ntokens; i = next) { + i++; + while (i < ntokens) { /* find the next ';' */ - for (next = i+1; next < ntokens; next++) { + for (next = i; next < ntokens; next++) { if (tokens[next].token == ';') break; } @@ -42,6 +43,8 @@ param_func(tokens + i, tokens + i + 2, next - (i+2), context); } + + i = next+1; } }