lib/gettor/filters.py
def checkAddressHack(userAddress):
    """This makes it possible to add hardcoded blacklist entries *ugh*
       XXX: This should merge somehow with the GetTor blacklisting
            mechanism at some point
    """
    logging.debug("Checking user address %s.." % userAddress)
    if re.compile(".*@.*torproject.org.*").match(userAddress):
        return False
        
    # Make sure we drop bounce mails
    if userAddress == "<>":
        logging.debug("We've received a bounce")
        return False

    # User address looks good.
    return True
This makes it possible to add hardcoded blacklist entries *ugh*
       XXX: This should merge somehow with the GetTor blacklisting
            mechanism at some point
    
This makes it possible to add hardcoded blacklist entries *ugh
XXX: This should merge somehow with the GetTor blacklisting
mechanism at some point
This makes it possible to add hardcoded blacklist entries * ugh XXX : This should merge somehow with the GetTor blacklisting mechanism at some point
def checkAddressHack(userAddress):
    logging.debug("Checking user address %s.." % userAddress)
    if re.compile(".*@.*torproject.org.*").match(userAddress):
        return False
    if userAddress == "<>":
        logging.debug("We've received a bounce")
        return False
    return True
def checkAddressHack ( userAddress ) : logging . debug ( "Checking user address %s.." % userAddress ) if re . compile ( ".*@.*torproject.org.*" ) . match ( userAddress ) : return False if userAddress == "<>" : logging . debug ( "We've received a bounce" ) return False return True
This makes it possible to add hardcoded blacklist entries *ugh
XXX: This should merge somehow with the GetTor blacklisting
mechanism at some point
This makes it possible to add hardcoded blacklist entries * ugh XXX : This should merge somehow with the GetTor blacklisting mechanism at some point
"""This makes it possible to add hardcoded blacklist entries *ugh*
       XXX: This should merge somehow with the GetTor blacklisting
            mechanism at some point
    """ # Make sure we drop bounce mails # User address looks good.
userAddress