index-mailbox-check.c revision 6246b93fb37890dcb2f4df9896438f3f376ab284
/* Copyright (C) 2002 Timo Sirainen */
#include "lib.h"
#include "ioloop.h"
#include "index-storage.h"
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
struct index_notify_file {
struct index_notify_file *next;
char *path;
};
struct index_notify_io {
struct index_notify_io *next;
};
static void check_timeout(void *context)
{
struct index_notify_file *file;
int notify;
/* check changes only when we can also notify of new mail */
if ((unsigned int)(ioloop_time - last_check) <
return;
}
}
if (notify) {
}
}
static void notify_callback(void *context)
{
} else {
}
}
const char *path)
{
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, ...) */
}
{
struct index_notify_file *file;
struct index_notify_io *aio;
/* reset notify stamp */
ibox->notify_last_sent = 0;
}
}
}
}