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