Mercurial > dovecot > core-2.2
comparison src/lib-index/maildir/maildir-index.h @ 0:3b1985cbc908 HEAD
Initial revision
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 09 Aug 2002 12:15:38 +0300 |
parents | |
children | 1b34ec11fff8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3b1985cbc908 |
---|---|
1 #ifndef __MAILDIR_INDEX_H | |
2 #define __MAILDIR_INDEX_H | |
3 | |
4 #include "mail-index.h" | |
5 | |
6 /* ":2,DFRST" - leave the 2 extra for other clients' additions */ | |
7 #define MAILDIR_LOCATION_EXTRA_SPACE 10 | |
8 | |
9 MailIndex *maildir_index_alloc(const char *dir); | |
10 | |
11 const char *maildir_filename_set_flags(const char *fname, MailFlags flags); | |
12 | |
13 int maildir_index_rebuild(MailIndex *index); | |
14 int maildir_index_sync(MailIndex *index); | |
15 | |
16 int maildir_index_append_file(MailIndex *index, const char *dir, | |
17 const char *fname); | |
18 int maildir_index_build_dir(MailIndex *index, const char *source_dir, | |
19 const char *dest_dir); | |
20 | |
21 int maildir_open_mail(MailIndex *index, MailIndexRecord *rec, | |
22 off_t *offset, size_t *size); | |
23 | |
24 int maildir_record_update(MailIndex *index, MailIndexUpdate *update, | |
25 int fd, const char *path); | |
26 | |
27 #endif |