Fixed bug #1660740: Listing 5.1, The VMIME BOOK, getDecodedText.
This commit is contained in:
parent
e801eac884
commit
28483d2ef8
@ -47,10 +47,10 @@ vmime::charset ch(vmime::charsets::UTF_8);
|
||||
|
||||
std::cout
|
||||
<< "The subject of the message is: "
|
||||
<< hdr->Subject()->getValue().dynamicCast <vmime::text>()->getDecodedText(ch)
|
||||
<< hdr->Subject()->getValue().dynamicCast <vmime::text>()->getConvertedText(ch)
|
||||
<< std::endl
|
||||
<< "It was sent by: "
|
||||
<< hdr->From()->getValue().dynamicCast <vmime::mailbox>()->getName().getDecodedText(ch)
|
||||
<< hdr->From()->getValue().dynamicCast <vmime::mailbox>()->getName().getConvertedText(ch)
|
||||
<< " (email: " << hdr->From()->getValue().getEmail() << ")"
|
||||
<< std::endl;
|
||||
\end{lstlisting}
|
||||
|
Loading…
Reference in New Issue
Block a user