Oops, slight correction:GMimeContentDisposition *disposition = g_mime_object_get_content_disposition (part);
if (disposition != null && !g_ascii_strcasecmp (disposition->disposition, "attachment")) {
// the part is an attachment } else { // the part is an inline part }After checking the code, it looks like checking disposition->disposition != null is not needed (although you could continue to check it).
The other change is using g_ascii_strcasecmp(). Jeff
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature