On 24/11/2003 at 17:50:20(+0100), Andrea Barisani used 1.0K to say:
>
> Hi everybody!
>
> I've experienced an odd problem when using detached signatures with mutt.
> When I receive a message mutt properly invokes gpg and verifies the
> signature, however if I save the message and the detached signature in two
> files (message.txt and message.asc) issuing `gpg --verify message.asc
> message.txt) gives me BAD signature!!
>
> Do you have any clue about this problem?
>
> Could be possible that something is changed when saving the message to disk?
Yes. To make it short, the message that mutt makes the gpg check against
is exactly what is contained between the "--boundary" lines. However, when you
save an "attachment", mutt formats/decodes the text as necessary according to
Context-Type.
For example:
- Headers are removed -- Content-{Type,Disposition,etc}:
- The text is decoded. So the gpg --verify might be executed against the base64
encoded message, but when saving the message itself, you get the pretty text.
- Not sure, but I also believe it would convert the text encoding to the
current locale.
To see the differences -- try "| more" when you're looking at the message, and
when you're looking at the attachments.
--
/\ Georgi Georgiev /\ BOFH Excuse #252: Our ISP is having /\
\/ [EMAIL PROTECTED] \/ {switching,routing,SMDS,frame relay} \/
/\ +81(90)6266-1163 /\ problems /\
--
[EMAIL PROTECTED] mailing list