Top | ![]() |
![]() |
![]() |
![]() |
gchar * | cid | Read / Write |
gboolean | converted-to-utf8 | Read / Write |
gchar * | id | Read / Write / Construct Only |
gboolean | is-attachment | Read / Write / Construct |
CamelMimePart * | mime-part | Read / Write / Construct Only |
gchar * | mime-type | Read / Write |
EMailPartList * | part-list | Read / Write |
GObject ╰── EMailPart ├── EMailPartAttachmentBar ├── EMailPartAttachment ├── EMailPartHeaders ╰── EMailPartImage
EMailPart * e_mail_part_new (CamelMimePart *mime_part
,const gchar *id
);
Creates a new EMailPart for the given mime_part
.
gboolean e_mail_part_id_has_prefix (EMailPart *part
,const gchar *prefix
);
gboolean e_mail_part_id_has_suffix (EMailPart *part
,const gchar *suffix
);
gboolean e_mail_part_id_has_substr (EMailPart *part
,const gchar *substr
);
void e_mail_part_set_mime_type (EMailPart *part
,const gchar *mime_type
);
void e_mail_part_set_part_list (EMailPart *part
,struct _EMailPartList *part_list
);
void e_mail_part_set_is_attachment (EMailPart *part
,gboolean is_attachment
);
void e_mail_part_bind_dom_element (EMailPart *part
,WebKitDOMElement *element
);
void e_mail_part_update_validity (EMailPart *part
,CamelCipherValidity *validity
,EMailPartValidityFlags validity_type
);
Updates validity of the part
. When the part already has some validity
set, the new validity
and validity_type
are just appended, preserving
the original validity. Validities of the same type (PGP or S/MIME) are
merged together.
part |
An EMailPart |
|
validity_type |
E_MAIL_PART_VALIDITY_* flags |
|
validity |
a CamelCipherValidity |
CamelCipherValidity * e_mail_part_get_validity (EMailPart *part
,EMailPartValidityFlags validity_type
);
Returns, validity of part
contains any validity with the same bits
as validity_type
set. It should contain all bits of it.
Since: 3.8
EMailPartValidityFlags
e_mail_part_get_validity_flags (EMailPart *part
);
gboolean
e_mail_part_is_secured (CamelMimePart *part
);
Whether part
is signed or encrypted or not.
const gchar *
e_mail_part_snoop_type (CamelMimePart *part
);
Tries to snoop the mime type of a part.
gboolean
e_mail_part_is_attachment (CamelMimePart *part
);
Returns true if the part is an attachment.
A part is not considered an attachment if it is a multipart, or a text part with no filename. It is used to determine if an attachment header should be displayed for the part.
Content-Disposition is not checked.
void e_mail_part_preserve_charset_in_content_type (CamelMimePart *ipart
,CamelMimePart *opart
);
Copies 'charset' part of content-type header from ipart
to opart
.
CamelMimePart * e_mail_part_get_related_display_part (CamelMimePart *part
,gint *out_displayid
);
Goes through all subparts of given part
and tries to determine which
part should be displayed and which parts are just attachments to the
part.
void e_mail_part_animation_extract_frame (GBytes *bytes
,gchar **out_frame
,gsize *out_len
);
gchar * e_mail_part_build_uri (CamelFolder *folder
,const gchar *message_uid
,const gchar *first_param_name
,...
);
gchar * e_mail_part_describe (CamelMimePart *part
,const gchar *mime_type
);
Generate a simple textual description of a part, mime_type
represents
the content.
struct EMailPart;
The EMailPart is a wrapper around CamelMimePart which holds additional information about the mime part, like it's ID, encryption type etc.
Each EMailPart must have a unique ID. The ID is a dot-separated hierarchical description of the location of the part within the email message.
“converted-to-utf8”
property“converted-to-utf8” gboolean
Whether the part content was already converted to UTF-8.
Flags: Read / Write
Default value: FALSE
“id”
property“id” gchar *
The part ID.
Flags: Read / Write / Construct Only
Default value: NULL
“is-attachment”
property“is-attachment” gboolean
Format the part as an attachment.
Flags: Read / Write / Construct
Default value: FALSE
“mime-part”
property “mime-part” CamelMimePart *
The MIME part.
Flags: Read / Write / Construct Only
“part-list”
property“part-list” EMailPartList *
The part list that owns the part.
Flags: Read / Write