maildir-filename.h revision 538303a216166f3526c0ae9658c9978275cfa100
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294Timo Sirainen#ifndef __MAILDIR_FILENAME_H
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch#define __MAILDIR_FILENAME_H
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschstruct maildir_keywords_sync_ctx;
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschconst char *maildir_filename_generate(void);
bdd36cfdba3ff66d25570a9ff568d69e1eb543cfTimo Sirainen
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschvoid maildir_filename_get_flags(struct maildir_keywords_sync_ctx *ctx,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch const char *fname, enum mail_flags *flags_r,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch ARRAY_TYPE(keyword_indexes) *keywords_r);
e98e8ba55a01427844b2d24becd791dde8b0178bTimo Sirainen
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschconst char *maildir_filename_set_flags(struct maildir_keywords_sync_ctx *ctx,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch const char *fname, enum mail_flags flags,
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch ARRAY_TYPE(keyword_indexes) *keywords);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschbool maildir_filename_get_size(const char *fname, char type, uoff_t *size_r);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschunsigned int maildir_filename_base_hash(const void *p);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Boschint maildir_filename_base_cmp(const void *p1, const void *p2);
84a31ddebcf8c3aeaef7b9e54171a48ee1374c45Timo Sirainenint maildir_filename_sort_cmp(const char *fname1, const char *fname2);
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch#endif
f9511e684858bf5f6ac77ab12254b85b737beae8Stephan Bosch