aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo Simonsen <[email protected]>2018-02-19 12:08:09 +0000
committerBo Simonsen <[email protected]>2018-02-19 12:08:09 +0000
commitb73d765f51f60475ddc2a8c1fca428a78a57d489 (patch)
tree6ce334633ccd6726dafe949927c62b123fc4df7a
parentMerge pull request #184 from josusky/smtp-auth (diff)
downloadvmime-b73d765f51f60475ddc2a8c1fca428a78a57d489.tar.gz
vmime-b73d765f51f60475ddc2a8c1fca428a78a57d489.zip
The behavior of current VMIME implementation will result in address [email protected] 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 ([email protected] in the example).
-rw-r--r--src/vmime/mailbox.cpp6
1 files changed, 0 insertions, 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;