index-storage.h revision 087e7957fb95f619d86db2d3d8c0664937cea419
#ifndef __INDEX_STORAGE_H
#define __INDEX_STORAGE_H
#include "mail-storage.h"
#include "mail-index.h"
#include "index-mail.h"
/* Return -1 = failure, 0 = don't write the header, 1 = write it */
struct index_autosync_file {
struct index_autosync_file *next;
char *path;
};
struct index_mailbox {
/* expunge messages marked as deleted, requires index to be
exclusively locked */
struct mail_index *index;
struct timeout *autosync_to;
struct index_autosync_file *autosync_files;
unsigned int min_newmail_notify_interval;
unsigned int synced_messages_count;
unsigned int sent_diskspace_warning:1;
};
enum mail_lock_type lock_type);
struct index_mailbox *
enum mail_lock_type data_lock_type);
enum mail_flags *flags,
const char *custom_flags[],
unsigned int custom_flags_count);
struct mail_index_record **rec);
struct mail_index_record *rec,
/* mailbox methods: */
struct mail_storage_callbacks *callbacks,
void *context);
const char *messageset, int uidset);
enum mailbox_status_items items,
struct mailbox_status *status);
int *all_found);
struct mail_fetch_context *
const char *messageset, int uidset);
enum mail_fetch_field wanted_fields);
enum mail_fetch_field wanted_fields);
enum mail_sort_type *sort_program);
struct mail_search_context *
struct mail_search_arg *args,
const enum mail_sort_type *sort_program,
const char *const wanted_headers[]);
#endif