## mail-ops

mail-ops

## Functions

void | mail_transfer_messages ()
void | mail_sync_folder ()
void | mail_sync_store ()
void | mail_empty_trash ()
void | mail_send_queue ()
void | (*MailProviderFetchLockFunc) ()
void | (*MailProviderFetchUnlockFunc) ()
CamelFolder * | (*MailProviderFetchInboxFunc) ()
void | mail_fetch_mail ()
void | mail_filter_folder ()
void | mail_process_folder_changes ()
void | mail_execute_shell_command ()

## Types and Values

#define | MAIL_USER_KEY_EDITING

## Description

## Functions

### mail_transfer_messages ()

    void
    mail_transfer_messages (EMailSession *session,
                            CamelFolder *source,
                            GPtrArray *uids,
                            gboolean delete_from_source,
                            const gchar *dest_uri,
                            guint32 dest_flags,
                            void (*done) (gboolean ok, gpointer data),
                            gpointer data);

### mail_sync_folder ()

    void
    mail_sync_folder (CamelFolder *folder,
                      gboolean test_for_expunge,
                      void (*done) (CamelFolder *folder, gpointer data),
                      gpointer data);

### mail_sync_store ()

    void
    mail_sync_store (CamelStore *store,
                     gint expunge,
                     void (*done) (CamelStore *store, gpointer data),
                     gpointer data);

### mail_empty_trash ()

    void
    mail_empty_trash (CamelStore *store);

### mail_send_queue ()

    void
    mail_send_queue (EMailSession *session,
                     CamelFolder *queue,
                     CamelTransport *transport,
                     const gchar *type,
                     gboolean immediately,
                     GCancellable *cancellable,
                     CamelFilterGetFolderFunc get_folder,
                     gpointer get_data,
                     CamelFilterStatusFunc status,
                     gpointer status_data,
                     gboolean (* done) (gpointer data, const GError *error, const GPtrArray *failed_uids),
                     gpointer data);

### MailProviderFetchLockFunc ()

    void
    (*MailProviderFetchLockFunc) (const gchar *source);

### MailProviderFetchUnlockFunc ()

    void
    (*MailProviderFetchUnlockFunc) (const gchar *source);

### MailProviderFetchInboxFunc ()

    CamelFolder *
    (*MailProviderFetchInboxFunc) (const gchar *source,
                                   GCancellable *cancellable,
                                   GError **error);

### mail_fetch_mail ()

    void
    mail_fetch_mail (CamelStore *store,
                     const gchar *type,
                     MailProviderFetchLockFunc lock_func,
                     MailProviderFetchUnlockFunc unlock_func,
                     MailProviderFetchInboxFunc fetch_inbox_func,
                     GCancellable *cancellable,
                     CamelFilterGetFolderFunc get_folder,
                     gpointer get_data,
                     CamelFilterStatusFunc status,
                     gpointer status_data,
                     void (*done) (gpointer data),
                     gpointer data);

### mail_filter_folder ()

    void
    mail_filter_folder (EMailSession *session,
                        CamelFolder *source_folder,
                        GPtrArray *uids,
                        const gchar *type,
                        gboolean notify);

### mail_process_folder_changes ()

    void
    mail_process_folder_changes (CamelFolder *folder,
                                 CamelFolderChangeInfo *changes,
                                 void (*process) (CamelFolder *folder, CamelFolderChangeInfo *changes, GCancellable *cancellable, GError **error, gpointer user_data),
                                 void (* done) (gpointer user_data),
                                 gpointer user_data);

### mail_execute_shell_command ()

    void
    mail_execute_shell_command (CamelFilterDriver *driver,
                                gint argc,
                                gchar **argv,
                                gpointer data);

## Types and Values

### MAIL_USER_KEY_EDITING

    #define MAIL_USER_KEY_EDITING "mail-user-key-editing"