[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-storage.c,1.12,1.13

cras at procontrol.fi cras at procontrol.fi
Tue Nov 12 07:27:32 EET 2002


Update of /home/cvs/dovecot/src/lib-storage/index/maildir
In directory danu:/tmp/cvs-serv11814/src/lib-storage/index/maildir

Modified Files:
	maildir-storage.c 
Log Message:
mailbox_check_interval setting: Dovecot can notify client of new mail in
selected mailbox soon after it's received. This setting specifies the
minimum interval in seconds between new mail notifications to client -
internally they may be checked more or less often. Setting this to 0
disables the checking.



Index: maildir-storage.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/maildir/maildir-storage.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- maildir-storage.c	19 Oct 2002 14:51:59 -0000	1.12
+++ maildir-storage.c	12 Nov 2002 05:27:30 -0000	1.13
@@ -139,8 +139,10 @@
 
 	ibox = index_storage_init(storage, &maildir_mailbox, index, name,
 				  readonly, fast);
-	if (ibox != NULL)
+	if (ibox != NULL) {
 		ibox->expunge_locked = maildir_expunge_locked;
+		index_mailbox_check_add(ibox, t_strconcat(path, "/new", NULL));
+	}
 	return (Mailbox *) ibox;
 }
 




More information about the dovecot-cvs mailing list