diff options
| author | info@mode42.com <info@mode42.com> | 2026-08-08 03:54:55 +0000 |
|---|---|---|
| committer | info@mode42.com <info@mode42.com> | 2026-08-08 03:54:55 +0000 |
| commit | 20cb29c2f8c5c87bc590896854a20b1473ceb358 (patch) | |
| tree | 2857f41513a56ad41af97b57362639298aa7f033 /src/core/mail_sql.h | |
#2
Diffstat (limited to 'src/core/mail_sql.h')
| -rw-r--r-- | src/core/mail_sql.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/core/mail_sql.h b/src/core/mail_sql.h new file mode 100644 index 0000000..cddd856 --- /dev/null +++ b/src/core/mail_sql.h @@ -0,0 +1,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 */ |
