Message body becoming NULL
- From: Shyam Shrivastav <shyam shrivastav azingo com>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: Message body becoming NULL
- Date: Wed, 29 Apr 2009 20:23:09 +0530
Hi
I am using tinymail 0.0.9. Somehow message body is getting NULL if there
is an attachment in the message. Following is app code to prepare
message body and add attachment
---------------------------------------------------------------------------
tny_stream_write (plain_stream, msg_body, strlen (msg_body));
tny_stream_reset (plain_stream);
tny_mime_part_construct (TNY_MIME_PART (msg), plain_stream,
"text/plain", "7bit");
g_object_unref (G_OBJECT (plain_stream));
g_object_unref (G_OBJECT(header));
iter = tny_list_create_iterator (mime_part_list);
while (!tny_iterator_is_done (iter))
{
TnyMimePart *part = TNY_MIME_PART (tny_iterator_get_current (iter));
tny_mime_part_add_part (TNY_MIME_PART (msg),part);
g_object_unref (part);
tny_iterator_next (iter);
}
if (iter)
g_object_unref (G_OBJECT (iter));
-----------------------------------------------------------------------------
Please help.
Thanks
Shyam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]