maildir-open.c revision b37634f5bf23ff8c72b88ef6966fd5c730017419
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen/* Copyright (C) 2002 Timo Sirainen */
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenstatic int do_open(struct mail_index *index, const char *path, void *context)
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen index_file_set_syscall_error(index, path, "open()");
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenstruct istream *maildir_open_mail(struct mail_index *index,
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen i_assert(index->lock_type != MAIL_LOCK_UNLOCK);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen /* check for inconsistency here, to avoid extra error messages */