API |
Return Value / Exceptions |
int email_add_account(email_account_t* account) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_account_t* account should be allocated and deallocated by Application |
int email_delete_account(int account_id) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_update_account(int account_id , email_account_t* new_account) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_account_t* new_account should be allocated and deallocated by Application |
int email_get_account(int account_id, int pulloption, email_account_t** account) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory allocation for param account will happen in email_get_account (). To free this memory, application should call email_free_account () |
int email_get_account_list(email_account_t** account_list, int* count) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: Memory allocation for param ccount_list will happen in email_get_account_list (). To free this memory, application should call email_free_account () |
int email_free_account(email_account_t** account_list, int count) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_validate_account(int account_id, int *handle) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
API | Return Value / Exceptions |
int email_add_mailbox(email_mailbox_t* new_mailbox, int on_server, int *handle) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_mailbox_t* new_mailbox should be allocated and deallocated by Application |
int email_delete_mailbox(email_mailbox_t* mailbox, int on_server, int *handle) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_mailbox_t* mailbox should be allocated and deallocated by Application |
int email_update_mailbox(email_mailbox_t*old_mailbox, email_mailbox_t* new_mailbox) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for params email_mailbox_t* old_mailbox and email_mailbox_t* new_mailbox should be allocated and deallocated by Application |
int email_get_mailbox_list(int account_id, int local_yn, email_mailbox_t** mailbox_list, int* count) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory allocation for param mailbox_list will happen in email_get_mailbox_list (). To free this memory application should call email_free_mailbox |
int email_get_mailbox_by_name(int account_id, const char *pMailboxName, email_mailbox_t **pMailbox) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory allocation for param pMailbox will happen in email_get_mailbox_by_name (). To free this memory application should call email_free_mailbox |
int email_get_child_mailbox_list(int account_id, const char *parent_mailbox, email_mailbox_t** mailbox_list, int* count) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory allocation for param mailbox_list will happen in email_get_child_mailbox_list (). To free this memory application should call email_free_mailbox |
int email_get_mailbox_by_mailbox_type(int account_id, email_mailbox_type_e mailbox_type, email_mailbox_t** mailbox) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory allocation for param mailbox_list will happen in email_get_mailbox_by_mailbox_type (). To free this memory application should call email_free_mailbox |
API |
Return Value / Exceptions |
int email_add_mail(email_mail_data_t *input_mail_data, email_attachment_data_t *input_attachment_data_list, int input_attachment_count, email_meeting_request_t* input_meeting_request, int input_from_eas) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for params email_mail_data_t* input_mail_data and email_attachment_data_t *input_attachment_data_list and email_meeting_request_t* input_meeting_request should be allocated and deallocated by Application |
int email_update_mail(email_mail_data_t *input_mail_data, email_attachment_data_t *input_attachment_data_list, int input_attachment_count, email_meeting_request_t* input_meeting_request, int input_from_eas) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for params email_mail_data_t* input_mail_data and email_attachment_data_t *input_attachment_data_list and email_meeting_request_t* input_meeting_request should be allocated and deallocated by Application |
int email_count_mail(email_mailbox_t* mailbox, int* total, int* unseen) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_mailbox_t* mailbox should be allocated and deallocated by Application |
int email_delete_mail(email_mailbox_t* mailbox, int *mail_ids, int num, int from_server) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for params int *mail_ids and mf_mailbox_t* mailbox should be allocated and deallocated by Application |
int email_delete_all_mails_in_mailbox(email_mailbox_t* mailbox, int from_server) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param mf_mailbox_t* mailbox should be allocated and deallocated by Application |
int email_clear_mail_data() |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_add_attachment(email_mailbox_t* mailbox, int mail_id, email_attachment_data_t* attachment) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param mf_mailbox_t* mailbox and mf_attachment_info_t* attachment hould be allocated and deallocated by Application |
int email_delete_attachment(email_mailbox_t * mailbox, int mail_id, const char * attachment_id) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_mailbox_t* mailbox should be allocated and deallocated by Application |
int email_get_attachment_data(email_mailbox_t* mailbox, int mail_id, const char* attachment_id, email_attachment_data_t** attachment) |
Returns EMAIL_ERROR_NONE on success or negative value on failure.@n Remarks:
-# Memory for param email_mailbox_t* mailbox should be allocated and deallocated by Application
-# Memory allocation for param email_attachment_data_t** attachment will happen in email_get_attachment_data (). To free this memory, application should call email_free_attachment_info () |
int email_free_attachment_info(email_attachment_data_t** atch_info) |
Returns EMAIL_ERROR_NONE on success or negative value on failure. |
int email_modify_seen_flag(int *mail_ids, int num, int seen_flag, int onserver) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param int *mail_ids should be allocated and deallocated by Application |
int email_move_mail_to_mailbox(int *mail_ids, int num, email_mailbox_t* new_mailbox) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for params int *mail_ids and email_mailbox_t* new_mailbox should be allocated and deallocated by Application |
int email_move_all_mails_to_mailbox(email_mailbox_t* src_mailbox, email_mailbox_t* new_mailbox) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for params email_mailbox_t* src_mailbox and email_mailbox_t* new_mailbox should be allocated and deallocated by Application |
int email_count_message_with_draft_flag(email_mailbox_t* mailbox, int* total) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_mailbox_t* mailbox should be allocated and deallocated by Application |
int email_count_message_on_sending(email_mailbox_t* mailbox, int* total) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory for param email_mailbox_t* mailbox should be allocated and deallocated by Application |
int email_get_mailbox_list(int account_id, email_mailbox_t** mailbox_list, int* count ) |
Returns EMAIL_ERROR_NONE on success or negative value on failure@n Remarks: - Memory allocation for param email_mailbox_t** mailbox_list will happen in email_get_mailbox_list (). To free this memory, application should call email_free_mailbox () |
int email_free_mailbox(email_mailbox_t** mailbox_list, int count) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_retry_sending_mail( int mail_id, int timeout_in_sec) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_make_db_full() |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_get_mailbox_name_by_mail_id(int mail_id, char **pMailbox_name) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_cancel_sending_mail( int mail_id) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_count_message_all_mailboxes(email_mailbox_t* mailbox, int* total, int* unseen) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_get_latest_unread_mail_id(int account_id, int *pMailID) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_get_max_mail_count(int *Count) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |
int email_get_disk_space_usage(unsigned long *total_size) |
Returns EMAIL_ERROR_NONE on success or negative value on failure |