Re: Message body becoming NULL
- From: Shyam Shrivastav <shyam shrivastav azingo com>
- To: Sergio Villar Senin <svillar igalia com>
- Cc: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: Re: Message body becoming NULL
- Date: Thu, 30 Apr 2009 20:43:36 +0530
msg_body is OK but the body of the email message(msg) which gets
prepared becomes NULL, it only contains attachment. Also if there are no
attachments to add to the body that is tny_mime_part_add_part is not
used at all then the body is fine, I am looking at the code and looks
like problem somewhere in tny_mime_part_add_part.
Also the workaround is to prepare the body also as a mime part and add
to the actual message(steps shown under) but in this case the email
message is always shown to have an attachment even though there is no
attachment
tny_stream_write (plain_stream, msg_body, strlen (msg_body));
tny_stream_reset (plain_stream);
tny_mime_part_construct (msg_body_mime_part, plain_stream,
"text/plain", "7bit");
tny_mime_part_add_part (TNY_MIME_PART (msg), msg_body_mime_part);
Thanks
Shyam
On Thu, 2009-04-30 at 16:31 +0200, Sergio Villar Senin wrote:
> Shyam Shrivastav escribiu:
> > 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
>
> Could you please elaborate what you mean with message body getting NULL.
> You mean the variable msg_body that you have in your code?
>
> Br
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]