Re: [gmime-devel] Multipart/alternative support in gmime



Hi Raghu,

GMime supports multipart/alternative and multipart/related in the sense that it can parse them and you can create such messages using libgmime, however it doesn't do anything special with them.

For example, with multipart/alternative parts, you often want to choose the appropriately formatted subpart for display purposes. GMime has no smarts to do this (it can't, really, as it doesn't know what your client can display or what your client's user has requested be displayed), so you'll have to iterate over its subparts yourself and decide, based on their Content-Type's, which one you want to display to the user.

For multipart/related parts, you'll want to look up parts based on Content-Id. GMime has a convenience function that you can use:

GMimeObject *g_mime_multipart_get_subpart_from_content_id (GMimeMultipart *multipart,
                               const char *content_id);

Hopefully that helps answer your question,

Jeff

On 03/02/2012 06:33 AM, RAGHAVENDRA SADARAMACHANDRA wrote:
Samsung Enterprise Portal mySingle

Hi All,

 

  Whether gmime supports "multipart/alternative" and "multipart/related'?

 

-Raghu

 

_______________________________________________ gmime-devel-list mailing list gmime-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gmime-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]