index-mailbox-check.c revision 183bea41fa640dc8117f3eb45ff935cd81377a84
/* Copyright (c) 2002-2011 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "index-storage.h"
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#define NOTIFY_DELAY_MSECS 500
struct index_notify_file {
struct index_notify_file *next;
char *path;
};
struct index_notify_io {
struct index_notify_io *next;
};
{
}
{
struct index_notify_file *file;
}
}
if (notify)
}
{
}
}
{
struct index_notify_file *file;
struct index_notify_io *aio;
}
/* we still add a timeout if we don't have one already,
* because we don't know what happens with [di]notify
* when the filesystem is remote (NFS, ...) */
check_timeout, box);
}
}
{
struct index_notify_file *file;
struct index_notify_io *aio;
}
}
}