From a5623d695f94f8718c75e91e6bb62576b6099b91 Mon Sep 17 00:00:00 2001 From: vincent-richard Date: Mon, 1 Jan 2024 18:02:32 +0100 Subject: Fixed use of old API (#287). --- src/vmime/emailAddress.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (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::charsets::US_ASCII)); -- cgit v1.2.3