jkraemer / mail-gpg

GPG/MIME extension for the Ruby Mail Library
MIT License
69 stars 24 forks source link

False positive while detecting inline signature #22

Closed dwarfmaster closed 9 years ago

dwarfmaster commented 9 years ago

When detecting inline signatures, signed_inline? only checks if -----BEGIN PGP SIGNED MESSAGE----- is present, but I came across mail where it was present in the citation of a previous mail, thus wrongly marking the mail as signed. An easy fix would be to simply check if -----BEGIN PGP SIGNED MESSAGE----- is present at the begginning of a line. I would have proposed a patch, but my knowledge of ruby is nearly inexistent.

jkraemer commented 9 years ago

good point, thanks for reporting!