diff --git a/src/engine/api/geary-account-information.vala b/src/engine/api/geary-account-information.vala index 242a3561..9dcd367e 100644 --- a/src/engine/api/geary-account-information.vala +++ b/src/engine/api/geary-account-information.vala @@ -54,7 +54,8 @@ public class Geary.AccountInformation : BaseObject { value = email_domain; } else { string[] host_parts = this.incoming.host.split("."); - if (host_parts.length > 2) { + // If first part is an integer, looks like an ip so ignore it + if (host_parts.length > 2 && int.parse(host_parts[0]) == 0) { host_parts = host_parts[1:host_parts.length]; } value = string.joinv(".", host_parts);