Fixed bug #1660740: Listing 5.1, The VMIME BOOK, getDecodedText.

This commit is contained in:
Vincent Richard 2007-05-21 13:11:15 +00:00
parent e801eac884
commit 28483d2ef8

View File

@ -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}