Re: Forwarding / attaching email messages...

"DINH Viêt Hoà" <[email protected]> Fri, 23 May 2008 13:31:57 +0200
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
On Fri, May 23, 2008 at 1:14 PM, James Smith <james_i_smith-/[email protected]> wrot=
e:
> I'm having issues forwarding emails.
>
> I get one of two outcomes, either I get a crash when trying to write out =
a mailmime using mailmime_write_mem() or I get a badly formed email success=
fully written out.
>
> I've got a code listing, showing the different methods I've tried for att=
aching an email....
>
> Method 1 crashes outputting the message as text
> Method 2 doesn't seem to create enough of MIME header for the attached me=
ssage
> Method 3 produces too much MIME header (Two Content-Type: message/rfc822 =
lines)
> Method 4 crashes outputting the message as text
>
> Am I going about this in the right way?

Hello,

you can find some example here :
http://dinh.viet.hoa.free.fr/wiki/index.php?title=3DMailmime_example

there are also some code sample here :
svn co https://libetpan.svn.sourceforge.net/svnroot/libetpan libetpan

http://libetpan.svn.sourceforge.net/viewvc/libetpan/etpanX/trunk/src/backen=
d/etpan-message-composer.h?revision=3D68&view=3Dmarkup
http://libetpan.svn.sourceforge.net/viewvc/libetpan/etpanX/trunk/src/backen=
d/etpan-message-composer.c?revision=3D68&view=3Dmarkup

Hope this will help.

(I'll have a look at your code ... tell me if this solved your problem)

-- =

DINH Vi=EAt Ho=E0

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/