Top |
Functions
Types and Values
#define | GMIME_DISPOSITION_ATTACHMENT |
#define | GMIME_DISPOSITION_INLINE |
struct | GMimeContentDisposition |
Description
A GMimeContentDisposition represents the pre-parsed contents of a Content-Disposition header field.
Functions
g_mime_content_disposition_new ()
GMimeContentDisposition *
g_mime_content_disposition_new (void
);
Creates a new GMimeContentDisposition object.
g_mime_content_disposition_parse ()
GMimeContentDisposition * g_mime_content_disposition_parse (GMimeParserOptions *options
,const char *str
);
Parses the input string into a GMimeContentDisposition object.
g_mime_content_disposition_is_attachment ()
gboolean
g_mime_content_disposition_is_attachment
(GMimeContentDisposition *disposition
);
Determines if a Content-Disposition has a value of "attachment".
g_mime_content_disposition_set_disposition ()
void g_mime_content_disposition_set_disposition (GMimeContentDisposition *disposition
,const char *value
);
Sets the disposition to value
which may be one of
GMIME_DISPOSITION_ATTACHMENT or GMIME_DISPOSITION_INLINE or, by
your choice, any other string which would indicate how the MIME
part should be displayed by the MUA.
g_mime_content_disposition_get_disposition ()
const char *
g_mime_content_disposition_get_disposition
(GMimeContentDisposition *disposition
);
Gets the disposition or NULL
on fail.
Returns
the disposition string which is probably one of GMIME_DISPOSITION_ATTACHMENT or GMIME_DISPOSITION_INLINE.
g_mime_content_disposition_get_parameters ()
GMimeParamList *
g_mime_content_disposition_get_parameters
(GMimeContentDisposition *disposition
);
Gets the Content-Disposition parameter list.
g_mime_content_disposition_set_parameter ()
void g_mime_content_disposition_set_parameter (GMimeContentDisposition *disposition
,const char *name
,const char *value
);
Sets a parameter on the Content-Disposition.
Note: The name
should be in US-ASCII while the value
should be in
UTF-8.
g_mime_content_disposition_get_parameter ()
const char * g_mime_content_disposition_get_parameter (GMimeContentDisposition *disposition
,const char *name
);
Gets the parameter value specified by name
if it's available.
g_mime_content_disposition_encode ()
char * g_mime_content_disposition_encode (GMimeContentDisposition *disposition
,GMimeFormatOptions *options
);
Encodes the Content-Disposition header.
Parameters
disposition |
a GMimeContentDisposition object |
|
options |
a GMimeFormatOptions or |
[nullable] |