diff options
author | Vincent Richard <[email protected]> | 2013-06-12 19:19:36 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-06-12 19:19:36 +0000 |
commit | 93c8d3a0717de4b82e765f6df349e48819be0770 (patch) | |
tree | 32c643c35b3e45d340d30d06e92c476d41039644 /src/emailAddress.cpp | |
parent | Homogeneous use of vmime::string. (diff) | |
download | vmime-93c8d3a0717de4b82e765f6df349e48819be0770.tar.gz vmime-93c8d3a0717de4b82e765f6df349e48819be0770.zip |
Added support for SMTPUTF8 extension (RFC-6531).
Diffstat (limited to 'src/emailAddress.cpp')
-rw-r--r-- | src/emailAddress.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/emailAddress.cpp b/src/emailAddress.cpp index 7136a5b4..c4119aba 100644 --- a/src/emailAddress.cpp +++ b/src/emailAddress.cpp @@ -525,4 +525,15 @@ const string emailAddress::toString() const } +const text emailAddress::toText() const +{ + text txt; + txt.appendWord(vmime::create <vmime::word>(m_localName)); + txt.appendWord(vmime::create <vmime::word>("@", vmime::charsets::US_ASCII)); + txt.appendWord(vmime::create <vmime::word>(m_domainName)); + + return txt; +} + + } // vmime |