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
|
std::cout
|
||||||
<< "The subject of the message is: "
|
<< "The subject of the message is: "
|
||||||
<< hdr->Subject()->getValue().dynamicCast <vmime::text>()->getDecodedText(ch)
|
<< hdr->Subject()->getValue().dynamicCast <vmime::text>()->getConvertedText(ch)
|
||||||
<< std::endl
|
<< std::endl
|
||||||
<< "It was sent by: "
|
<< "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() << ")"
|
<< " (email: " << hdr->From()->getValue().getEmail() << ")"
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
|
Loading…
Reference in New Issue
Block a user