2009-11-12 10:19:44 UTC
Hi,
I applied the patch to libvmime-0.9.0, but there seems to be a problem with extra digits and QP is still applied. The test case can be derived from example1.cpp with this patch:
diff -urN example1.cpp example1a.cpp
--- a/example1a.cpp 2008-10-12 10:54:34.000000000 +0200
+++ b/example1a.cpp 2009-11-12 10:47:01.000000000 +0100
@@ -49,7 +49,7 @@
vmime::messageBuilder mb;
// Fill in the basic fields
- mb.setExpeditor(vmime::mailbox("me@somewhere.com"));
+ mb.setExpeditor(vmime::mailbox(vmime::text("Message Expeditor"), "me@somewhere.com"));
vmime::addressList to;
to.appendAddress(vmime::create <vmime::mailbox>("you@elsewhere.com"));
Steps:
tar -jxf ../mingw-cross-env/pkg/libvmime-0.9.0.tar.bz2
cd libvmime-0.9.0
patch -p0 < ../vmime-20091111-quotemailboxname.patch
./configure --enable-debug
make
cd examples
cp example1.cpp example1a.cpp
patch < a.patch
g++ -o example1a example1a.cpp -I.. -L../src/.libs/ -lvmime
LD_LIBRARY_PATH=../src/.libs/ ./example1a
Output:
Generated message:
==================
Subject: My first message generated with vmime::messageBuilder
From: "17"=?us-ascii?Q?Message_Expeditor?= <me@somewhere.com>
To: you@elsewhere.com
Bcc: you-bcc@nowhere.com
By the way, I think the README in examples should be updated. In step 2 the command should be:
g++ -o exampleX exampleX.cpp `pkg-config --libs vmime`