Convert all MIME handling to Engine classes: Closes #6530
We've had numerous bugs due to improper MIME comparisons and dealing with Content-Type and Content-Disposition (or their lack of presence in a message). Now the Engine offers MIME classes that better deal with these issues without exporting the GMime structures, which are not as easy to manage and don't offer some of the things that have bitten us in the past (such as case-insensitive comparisons).
This commit is contained in:
parent
eed221bf3a
commit
e29a9c801a
17 changed files with 702 additions and 122 deletions
|
|
@ -682,13 +682,13 @@ namespace GMime {
|
|||
[CCode (cname = "g_mime_object_encode")]
|
||||
public virtual void encode (GMime.EncodingConstraint constraint);
|
||||
[CCode (cname = "g_mime_object_get_content_disposition")]
|
||||
public unowned GMime.ContentDisposition get_content_disposition ();
|
||||
public unowned GMime.ContentDisposition? get_content_disposition ();
|
||||
[CCode (cname = "g_mime_object_get_content_disposition_parameter")]
|
||||
public unowned string get_content_disposition_parameter (string attribute);
|
||||
[CCode (cname = "g_mime_object_get_content_id")]
|
||||
public unowned string get_content_id ();
|
||||
[CCode (cname = "g_mime_object_get_content_type")]
|
||||
public unowned GMime.ContentType get_content_type ();
|
||||
public unowned GMime.ContentType? get_content_type ();
|
||||
[CCode (cname = "g_mime_object_get_content_type_parameter")]
|
||||
public unowned string? get_content_type_parameter (string name);
|
||||
[CCode (cname = "g_mime_object_get_disposition")]
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ g_mime_header_list_get_iter.iter is_out="1"
|
|||
g_mime_message_get_date.date is_out="1"
|
||||
g_mime_message_get_date.tz_offset is_out="1"
|
||||
g_mime_message_get_mime_part is_nullable="1"
|
||||
g_mime_object_get_content_disposition nullable="1"
|
||||
g_mime_object_get_content_type nullable="1"
|
||||
g_mime_object_get_content_type_parameter nullable="1"
|
||||
g_mime_object_to_string transfer_ownership="1"
|
||||
g_mime_param_next name="get_next"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue