Hi Kane,
Yes, that is the correct approach. You can use the GMIME_IS_TEXT_PART() macro to check this.
The GMimeParser will always use GMimeTextPart for text/* parts.
Hope that helps,
Jeff
From: gmime-devel-list <gmime-devel-list-bounces@
gnome.org > on behalf of Kane Kim <kane isturm gmail com>
Date: Tuesday, August 1, 2017 at 4:25 AM
To: "gmime-devel-list gnome org" <gmime-devel-list gnome org>
Subject: Re: [gmime-devel] get GMimeTextPart for text/plain and text/html parts
You don't often get email from KANE ISTURM GMAIL COM. Learn why this is important.
Actually I've typecasted GMimePart to GMimeTextPart and it seems it worked, just have to check if it's actually text/plain or text/html I guess? Is that right approach?
On Tue, Aug 1, 2017 at 1:10 AM, Kane Kim <kane isturm gmail com> wrote:
Hi,
Is it possible to get GMimeTextPart for parts with Content-Type text/plain and text/html?
This will make it a lot more convenient to get text out of those.
Thanks.