aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvincent-richard <[email protected]>2024-01-01 17:02:32 +0000
committervincent-richard <[email protected]>2024-01-01 17:02:32 +0000
commita5623d695f94f8718c75e91e6bb62576b6099b91 (patch)
treeb5226503731ba790f2d3157e6e59edcb24de38f5
parentAdd parsing feedback via parsingContext (#280) (diff)
downloadvmime-a5623d695f94f8718c75e91e6bb62576b6099b91.tar.gz
vmime-a5623d695f94f8718c75e91e6bb62576b6099b91.zip
Fixed use of old API (#287).
-rw-r--r--src/vmime/emailAddress.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vmime/emailAddress.cpp b/src/vmime/emailAddress.cpp
index 55975b11..ed17f555 100644
--- a/src/vmime/emailAddress.cpp
+++ b/src/vmime/emailAddress.cpp
@@ -710,7 +710,8 @@ const text emailAddress::toText() const {
text txt;
txt.appendWord(make_shared <vmime::word>(m_localName));
- if (!m_domainName.empty()) {
+
+ if (!m_domainName.isEmpty()) {
// this should only be skipped if m_useMyHostname is false and an address without
// an `@` is encountered
txt.appendWord(make_shared <vmime::word>("@", vmime::charsets::US_ASCII));