summaryrefslogtreecommitdiffabout
path: root/kmicromail/libetpan/generic/mailfolder.h
blob: 3ecad236b36ec832554de3acd9a57c06201df342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef MAILFOLDER_H

#define MAILFOLDER_H

#include "mailstorage_types.h"

int mailfolder_noop(struct mailfolder * folder);

int mailfolder_check(struct mailfolder * folder);

int mailfolder_expunge(struct mailfolder * folder);

int mailfolder_status(struct mailfolder * folder,
    uint32_t * result_messages, uint32_t * result_recent,
    uint32_t * result_unseen);

int mailfolder_append_message(struct mailfolder * folder,
    char * message, size_t size);

int mailfolder_get_messages_list(struct mailfolder * folder,
    struct mailmessage_list ** result);

int mailfolder_get_envelopes_list(struct mailfolder * folder,
    struct mailmessage_list * result);

int mailfolder_get_message(struct mailfolder * folder,
    uint32_t num, mailmessage ** result);

int mailfolder_get_message_by_uid(struct mailfolder * folder,
    const char * uid, mailmessage ** result);

#endif