From e44d049f578a50e46c351072a44bc511d1b93376 Mon Sep 17 00:00:00 2001
From: Vincent Richard <vincent@vincent-richard.net>
Date: Thu, 10 May 2012 21:36:26 +0200
Subject: Fixed error in sample code.

---
 doc/book/msg.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'doc/book/msg.tex')

diff --git a/doc/book/msg.tex b/doc/book/msg.tex
index 5ebfe93b..384aab74 100644
--- a/doc/book/msg.tex
+++ b/doc/book/msg.tex
@@ -51,7 +51,7 @@ std::cout
    << std::endl
    << "It was sent by: "
    << hdr->From()->getValue().dynamicCast <vmime::mailbox>()->getName().getConvertedText(ch)
-   << " (email: " << hdr->From()->getValue().getEmail() << ")"
+   << " (email: " << hdr->From()->getValue().dynamicCast<vmime::mailbox>()->getEmail() << ")"
    << std::endl;
 \end{lstlisting}
 
-- 
cgit v1.2.3

