@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DefaultEmail)) return false;

        DefaultEmail that = (DefaultEmail) o;

        if (!content.equals(that.content)) return false;
        if (!date.equals(that.date)) return false;
        if (!from.equals(that.from)) return false;
        if (!subject.equals(that.subject)) return false;
        if (!to.equals(that.to)) return false;

        return true;
    }