diff options
author | vincent-richard <[email protected]> | 2024-01-01 17:02:32 +0000 |
---|---|---|
committer | vincent-richard <[email protected]> | 2024-01-01 17:02:32 +0000 |
commit | a5623d695f94f8718c75e91e6bb62576b6099b91 (patch) | |
tree | b5226503731ba790f2d3157e6e59edcb24de38f5 | |
parent | Add parsing feedback via parsingContext (#280) (diff) | |
download | vmime-a5623d695f94f8718c75e91e6bb62576b6099b91.tar.gz vmime-a5623d695f94f8718c75e91e6bb62576b6099b91.zip |
Fixed use of old API (#287).
-rw-r--r-- | src/vmime/emailAddress.cpp | 3 |
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)); |