[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-storage.c,1.38,1.39
cras at procontrol.fi
cras at procontrol.fi
Fri Feb 14 12:46:47 EET 2003
Update of /home/cvs/dovecot/src/lib-storage/index/mbox
In directory danu:/tmp/cvs-serv6296/src/lib-storage/index/mbox
Modified Files:
mbox-storage.c
Log Message:
Support for IDLE extension.
Index: mbox-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-storage.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- mbox-storage.c 13 Feb 2003 07:34:02 -0000 1.38
+++ mbox-storage.c 14 Feb 2003 10:46:44 -0000 1.39
@@ -338,10 +338,8 @@
ibox = index_storage_init(storage, &mbox_mailbox, index,
name, readonly, fast);
- if (ibox != NULL) {
+ if (ibox != NULL)
ibox->expunge_locked = mbox_expunge_locked;
- index_mailbox_check_add(ibox, index->mailbox_path);
- }
return (struct mailbox *) ibox;
}
@@ -621,6 +619,19 @@
return index_storage_close(box) && !failed;
}
+static void mbox_storage_auto_sync(struct mailbox *box,
+ enum mailbox_sync_type sync_type,
+ unsigned int min_newmail_notify_interval)
+{
+ struct index_mailbox *ibox = (struct index_mailbox *) box;
+
+ ibox->autosync_type = sync_type;
+ ibox->min_newmail_notify_interval = min_newmail_notify_interval;
+
+ index_mailbox_check_remove_all(ibox);
+ index_mailbox_check_add(ibox, ibox->index->mailbox_path);
+}
+
struct mail_storage mbox_storage = {
"mbox", /* name */
@@ -657,6 +668,7 @@
mbox_storage_close,
index_storage_get_status,
index_storage_sync,
+ mbox_storage_auto_sync,
index_storage_expunge,
index_storage_update_flags,
index_storage_copy,
More information about the dovecot-cvs
mailing list