Lines Matching defs:file
1 /* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
30 struct mailbox_notify_file *file;
34 for (file = box->notify_files; file != NULL; file = file->next) {
35 if (stat(file->path, &st) == 0 &&
36 ST_CHANGED(file->last_st, st)) {
37 file->last_st = st;
60 struct mailbox_notify_file *file;
68 file = i_new(struct mailbox_notify_file, 1);
69 file->path = i_strdup(path);
71 file->last_st = st;
72 file->io_notify = io;
74 file->next = box->notify_files;
75 box->notify_files = file;
89 struct mailbox_notify_file *file;
92 file = box->notify_files;
93 box->notify_files = file->next;
95 io_remove(&file->io_notify);
96 i_free(file->path);
97 i_free(file);
112 struct mailbox_notify_file *file;
122 for (file = box->notify_files; file != NULL && !failed; file = file->next) {
123 switch (io_add_notify(file->path, notify_extract_callback, box, &io)) {
129 "%s not found - can't watch it", file->path);