From ea5c8334de82d6e9f0705e8a2c4a3ab0b29731ad Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sun, 10 Feb 2013 20:14:12 +0100 Subject: Remove leading space when unfolding According to RFC 2425 paragraph 5.8.1, the leading whitespace on folded lines must be removed when unfolding happens. --- src/vf_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vf_parser.c b/src/vf_parser.c index 2c7221c..1197154 100644 --- a/src/vf_parser.c +++ b/src/vf_parser.c @@ -333,9 +333,9 @@ bool_t vf_parse_text( /* Ignore */ } else - if (SPACE == c) + if ((SPACE == c) || (TAB == c)) { - ok = append_to_curr_string(&(p_parse->prop.value.v.s), NULL, &c, 1); + /* Ignore leading white space characters when unfolding */ p_parse->state = _VF_STATE_RFC822VALUE; } -- cgit v1.1-32-gdbae