Top | ![]() |
![]() |
![]() |
![]() |
#define | CAMEL_RECIPIENT_TYPE_TO |
#define | CAMEL_RECIPIENT_TYPE_CC |
#define | CAMEL_RECIPIENT_TYPE_BCC |
#define | CAMEL_RECIPIENT_TYPE_RESENT_TO |
#define | CAMEL_RECIPIENT_TYPE_RESENT_CC |
#define | CAMEL_RECIPIENT_TYPE_RESENT_BCC |
#define | CAMEL_MESSAGE_DATE_CURRENT |
CamelMimeMessage * camel_mime_message_new (void
);
Create a new
void camel_mime_message_set_date (,
CamelMimeMessage *message,
time_t date);
gint offset
Set the date on a message.
time_t camel_mime_message_get_date (,
CamelMimeMessage *message);
gint *offset
Get the date and GMT offset of a message.
time_t camel_mime_message_get_date_received (,
CamelMimeMessage *message);
gint *offset
Get the received date and GMT offset of a message.
void camel_mime_message_set_message_id (,
CamelMimeMessage *messageconst
);gchar *message_id
Set the message-id on a message.
constgchar * camel_mime_message_get_message_id ();
CamelMimeMessage *message
Get the message-id of a message.
void camel_mime_message_set_reply_to (,
CamelMimeMessage *message);
CamelInternetAddress *reply_to
Set the Reply-To of a message.
CamelInternetAddress * camel_mime_message_get_reply_to ();
CamelMimeMessage *message
Get the Reply-To of a message.
void camel_mime_message_set_subject (,
CamelMimeMessage *messageconst
);gchar *subject
Set the subject text of a message.
constgchar * camel_mime_message_get_subject ();
CamelMimeMessage *message
Get the UTF-8 subject text of a message.
void camel_mime_message_set_from (,
CamelMimeMessage *message);
CamelInternetAddress *from
Set the from address of a message.
CamelInternetAddress * camel_mime_message_get_from ();
CamelMimeMessage *message
Get the from address of a message.
CamelInternetAddress * camel_mime_message_get_recipients (,
CamelMimeMessage *messageconst
);gchar *type
Get the message recipients of a specified type.
void camel_mime_message_set_recipients (,
CamelMimeMessage *messageconst
,gchar *type);
CamelInternetAddress *recipients
Set the recipients of a message.
message |
a |
|
type |
recipient type (one of CAMEL_RECIPIENT_TYPE_TO, CAMEL_RECIPIENT_TYPE_CC, or CAMEL_RECIPIENT_TYPE_BCC) |
|
recipients |
a |
void camel_mime_message_set_source (,
CamelMimeMessage *messageconst
);gchar *source_uid
constgchar * camel_mime_message_get_source ();
CamelMimeMessage *message
gboolean camel_mime_message_has_8bit_parts ();
CamelMimeMessage *message
Find out if a message contains 8bit or binary encoded parts.
void camel_mime_message_set_best_encoding (,
CamelMimeMessage *messageCamelBestencRequired required
,CamelBestencEncoding enctype
);
Re-encode all message parts to conform with the required encoding rules.
If enctype
is CAMEL_BESTENC_7BIT, then all parts will be re-encoded into
one of the 7bit transfer encodings. If enctype
is enctype
is CAMEL_BESTENC_BINARY, then binary
parts will be encoded as binary and 8bit textual parts will be encoded as 8bit.
message |
a |
|
required |
a bitwise ORing of CAMEL_BESTENC_GET_ENCODING and CAMEL_BESTENC_GET_CHARSET |
|
enctype |
an encoding to enforce |
void camel_mime_message_encode_8bit_parts ();
CamelMimeMessage *message
Encode all message parts to a suitable transfer encoding for transport (7bit clean).
CamelMimePart * camel_mime_message_get_part_by_content_id (,
CamelMimeMessage *messageconst
);gchar *content_id
Get a MIME part by id from a message.
gchar * camel_mime_message_build_mbox_from ();
CamelMimeMessage *message
Build an MBox from-line from message
.
gboolean camel_mime_message_has_attachment ();
CamelMimeMessage *message
Returns whether message contains at least one attachment part.
Since: 2.28