From b73d765f51f60475ddc2a8c1fca428a78a57d489 Mon Sep 17 00:00:00 2001 From: Bo Simonsen Date: Mon, 19 Feb 2018 13:08:09 +0100 Subject: [PATCH] Handle parsing of a@b.c The behavior of current VMIME implementation will result in address a@b.c with an empty name. That is because the parsing is stopped whenever a wihtespace and a at-character is seen. We should continue the parsing to deduce the real address (e@f.g in the example). --- src/vmime/mailbox.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/vmime/mailbox.cpp b/src/vmime/mailbox.cpp index 7c6d5e3b..c4b230c4 100644 --- a/src/vmime/mailbox.cpp +++ b/src/vmime/mailbox.cpp @@ -234,8 +234,6 @@ void mailbox::parseImpl ++p; } - - break; } else { @@ -245,10 +243,6 @@ void mailbox::parseImpl } else if (state == State_Address) { - // Skip '<' character - if (*p == '<') - ++p; - bool escaped = false; int comment = 0;