'Equality as defined by https://tools.ietf.org/html/rfc5280#section-7.5
:param other:
Another EmailAddress object
:return:
A boolean'

def __eq__(self, other):

    if (not isinstance(other, EmailAddress)):
        return False
    if (not self._normalized):
        self.set(self.native)
    if (not other._normalized):
        other.set(other.native)
    if ((self._contents.find('@') == (-1)) or (other._contents.find('@') == (-1))):
        return (self._contents == other._contents)
    (other_mailbox, other_hostname) = other._contents.rsplit('@', 1)
    (mailbox, hostname) = self._contents.rsplit('@', 1)
    if (mailbox != other_mailbox):
        return False
    if (hostname.lower() != other_hostname.lower()):
        return False
    return True
