mail-search-build.h revision c4b376dd6e0c423006d7ac83a39253bcaf8e7c47
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen#ifndef MAIL_SEARCH_BUILD_H
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen#define MAIL_SEARCH_BUILD_H
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen#include "mail-search.h"
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainenstruct imap_arg;
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainenstruct mailbox;
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenstruct mail_search_args *mail_search_build_init(void);
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenint mail_search_build_from_imap_args(const struct imap_arg *imap_args,
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen const char *charset,
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen struct mail_search_args **args_r,
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen const char **error_r);
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenvoid mail_search_build_add_all(struct mail_search_args *args);
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainenvoid mail_search_build_add_seqset(struct mail_search_args *args,
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen uint32_t seq1, uint32_t seq2);
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen
1176124297af5c56e932c0863c6637ff21d8a0efTimo Sirainen#endif