Lines Matching refs:instances
35 /* GUID => instances */
257 struct dsync_mail_guid_instances *instances;
270 instances = hash_table_lookup(exporter->export_guids, change->guid);
271 if (instances == NULL) {
272 instances = p_new(exporter->pool,
274 p_array_init(&instances->seqs, exporter->pool, 2);
277 instances);
279 instances->requested = TRUE;
281 seq_range_array_add(&instances->seqs, seq);
728 struct dsync_mail_guid_instances *instances;
743 &guid, &instances)) {
744 if (!instances->requested ||
745 array_count(&instances->seqs) == 0)
748 uids = array_idx(&instances->seqs, 0);
750 if (!instances->searched) {
751 instances->searched = TRUE;
756 seq_range_array_remove(&instances->seqs, seq);
758 if (array_count(&instances->seqs) == 0) {
759 /* no instances left */
765 uids = array_idx(&instances->seqs, 0);
817 struct dsync_mail_guid_instances *instances;
824 instances = *exporter->dsync_mail.guid == '\0' ? NULL :
827 if (instances != NULL) {
845 if (instances != NULL)
846 array_clear(&instances->seqs);
853 struct dsync_mail_guid_instances *instances;
863 instances = hash_table_lookup(exporter->export_guids, request->guid);
864 if (instances == NULL) {
870 instances->requested = TRUE;
905 /* if some instances of messages were expunged, retry fetching them
906 with other instances */