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
36
37
38
39
40
|
#ifndef HYBBX_MAIL_SQL_H
#define HYBBX_MAIL_SQL_H
#include "hybbx/mail.h"
#include "hybbx/storage.h"
#include "hybbx/types.h"
struct hybbx_service;
struct hybbx_session;
hybbx_result_t hybbx_mail_sql_load_inbox(hybbx_storage_t *storage,
const char *username,
hybbx_mail_entry_t *entries,
size_t max_entries,
size_t *out_count);
hybbx_result_t hybbx_mail_sql_deliver(hybbx_storage_t *storage,
const hybbx_mail_config_t *mail,
const char *from_user,
const char *to_user,
const char *subject,
const char *body);
hybbx_result_t hybbx_mail_sql_read(struct hybbx_service *service,
struct hybbx_session *session,
unsigned list_index);
hybbx_result_t hybbx_mail_sql_delete_range(struct hybbx_service *service,
struct hybbx_session *session,
unsigned from,
unsigned to);
hybbx_result_t hybbx_mail_sql_recycle_empty(struct hybbx_service *service,
struct hybbx_session *session);
unsigned hybbx_mail_sql_purge_recycle(hybbx_storage_t *storage,
const hybbx_mail_config_t *mail,
const char *username);
#endif /* HYBBX_MAIL_SQL_H */
|