Pipemode question

Patrick Brunschwig patrick.brunschwig at gmx.net
Sun Nov 16 13:45:28 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have the following problem: some PGP/MIME messages (i.e. messages with
a detached signature) cannot be correctly verified with Enigmail. The
reason for this seems to be that enigmail currently always creates a
clearsigned message and pipes that to gpg, which seems to work mostly
but not always (yes, we do escape leading "-" characters correctly).

Unfortunately, Mozilla restricts to having only one file descriptor for
piping to gpg, stdin, so I cannot use the --verify '-&n'.

Thus, I have made some tests with --pipemode, which would work fine and
verify my messages correctly. The only issue is the "@" character which
is used as a controlling character in pipemode. If the @ character is
part of the message body to verify, verification is never successful,
because gpg interprets it as "change to command mode". I have tried to
use @@ and other things, but nothing works.

My question: is there any way to "escape" an @ character so that gpg
doesn't change to the command mode?

Here is a small example that fails to verify:

@<@B-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/t3EK2KgHx8zsInsRAsNhAJ4vss8YLRajAQWJligBrE2w5kpRDQCggWl3
ZueevqjVD+Og4LhZLNjVgrI=
=ZEQZ
- -----END PGP SIGNATURE-----
@tThis is a test
with an @ character
@.@>

- -Patrick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/t3Fo2KgHx8zsInsRAmCmAJwNY1A+eBXVpgKCXg2eFJVCqlprWQCghy+L
DHlK9a112w1iXCe1L7asWtY=
=UmsV
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list