Beispiel #1
0
    def is_bounce(self, threshold=0.3):
        """
        Determines whether the message is a bounce message based on
        salmon.bounce.BounceAnalzyer given threshold.  0.3 is a good
        conservative base.
        """
        if not self.bounce:
            self.bounce = bounce.detect(self)

        return self.bounce.score > threshold
Beispiel #2
0
    def is_bounce(self, threshold=0.3):
        """
        Determines whether the message is a bounce message based on
        salmon.bounce.BounceAnalzyer given threshold.  0.3 is a good
        conservative base.
        """
        if not self.bounce:
            self.bounce = bounce.detect(self)

        return self.bounce.score > threshold