Just ignore the duplicates. Normally this shouldn't happen, but due to
some bugs for example a Sieve script could be returned once by doveadm_sieve
plugin and another time from mail_attribute_dict.
skip for this sync. */
continue;
}
+ if (attr_change != NULL && attr_change->exported) {
+ /* duplicate attribute returned.
+ shouldn't normally happen, but don't crash. */
+ i_warning("Ignoring duplicate attributes '%s'", key);
+ continue;
+ }
attr = &exporter->attr;
i_zero(attr);
attr->value_stream = value.value_stream;
attr->last_change = value.last_change;
if (attr_change != NULL) {
- i_assert(!attr_change->exported);
attr_change->exported = TRUE;
attr->key = attr_change->key;
attr->deleted = attr_change->deleted &&