summaryrefslogtreecommitdiffabout
path: root/kmicromail/libetpan/generic/mailfolder.h
blob: ff53470d7e9fa89b5a31f3f1bed15db24daa4262 (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
33
34
35
#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_append_message_flags(struct mailfolder * folder,
    char * message, size_t size, struct mail_flags * flags);

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