diff --git a/lib/mail/gpg/verify_result_attribute.rb b/lib/mail/gpg/verify_result_attribute.rb index c38bd84f..f3fa7c2f 100644 --- a/lib/mail/gpg/verify_result_attribute.rb +++ b/lib/mail/gpg/verify_result_attribute.rb @@ -17,7 +17,7 @@ def verify_result=(result) # checks validity of signatures (true / false) def signature_valid? sigs = self.signatures - sigs.any? && sigs.detect{|s|!s.valid?}.blank? + sigs.any? && sigs.all?{|s|s.valid?} end # list of all signatures from verify_result