Geary.Imap.Quirks: Add quirks for Dovecot

Dovecot 2.3.4.1 and earlier uses "MISSING_MAILBOX" and "MISSING_DOMAIN"
in the address structures of FETCH ENVELOPE replies when the mailbox or
domain is missing.

See https://dovecot.org/pipermail/dovecot/2020-August/119658.html
This commit is contained in:
Michael Gratton 2020-08-18 15:13:56 +10:00 committed by Michael James Gratton
parent 31f10e2787
commit 50f2ca98b5

View file

@ -67,6 +67,8 @@ public class Geary.Imap.Quirks : BaseObject {
update_for_gmail();
} else if (greeting.has_prefix("The Microsoft Exchange")) {
update_for_outlook();
} else if (greeting.has_prefix("Dovecot")) {
update_for_dovecot();
}
}
}
@ -101,4 +103,18 @@ public class Geary.Imap.Quirks : BaseObject {
this.max_pipeline_batch_size = 25;
}
/**
* Updates this quirks object with known quirks for Dovecot
*
* Dovecot 2.3.4.1 and earlier uses "MISSING_MAILBOX" and
* "MISSING_DOMAIN" in the address structures of FETCH ENVELOPE
* replies when the mailbox or domain is missing.
*
* See [[https://dovecot.org/pipermail/dovecot/2020-August/119658.html]]
*/
public void update_for_dovecot() {
this.empty_envelope_mailbox_name = "MISSING_MAILBOX";
this.empty_envelope_host_name = "MISSING_DOMAIN";
}
}