maildir-uidlist.c revision 892f02d4ab8f764f86015009aaf7437349398286
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen/* Copyright (C) 2003 Timo Sirainen */
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen/* how many seconds to wait before overriding uidlist.lock */
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainenint maildir_uidlist_try_lock(struct mail_index *index)
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen path = t_strconcat(index->control_dir, "/" MAILDIR_UIDLIST_NAME, NULL);
5f08b0309190ec818d46bfe0e497468b30714a93Timo Sirainen fd = file_dotlock_open(path, NULL, 0, UIDLIST_LOCK_STALE_TIMEOUT,
const char *path;
unsigned int version;
int fd;
return NULL;
return NULL;
return uidlist;
const char *line;
unsigned int uid;
uid = 0;
line++;
const char *p, *fname;
return FALSE;
return FALSE;
return FALSE;
return FALSE;
return TRUE;
return FALSE;
if (!failed) {
FALSE) <= 0) {
db_path);
if (failed)
return !failed;