Fixed use of old API (#287).

This commit is contained in:
vincent-richard 2024-01-01 18:02:32 +01:00
parent 6fd4de8fb5
commit a5623d695f

View File

@ -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));