[CrackMonkey] NO MIME, buttfuck!

Mike Goldman whig at debian.org
Fri Feb 11 19:10:01 PST 2000


Mike Goldman wrote:

> +    def CheckUserKillFile(self, user, email):
> +        """Return whether email is killfiled."""
> +       user = self.GetUserCanonicalAddress(user)
> +       if self.killfile.has_key(user):
> +           for addr in self.killfile[user]: # should bsearch
> +               if email == addr: return 1
> +       return 0
> +

Better make that:

    def CheckUserKillFile(self, user, email):
        """Return whether email is killfiled."""
        if not self.has_key(killfile): return 0
        user = self.GetUserCanonicalAddress(user)
        if self.killfile.has_key(user):
            for addr in self.killfile[user]: # should bsearch
                if email == addr: return 1
        return 0

Otherwise, it may break existing lists....







More information about the Crackmonkey mailing list