How can I prevent GPG signature from displaying when submitting bugs via the Launchpad Email API?

Asked by Keith Hughitt on 2010-09-29

When using the Launchpad Email API (https://help.launchpad.net/Bugs/EmailInterface) to submit a bug report, you are required to attach a GPG before the report will be accepted. When I sign messages, however, the GPG signature shows up as part of the bug report, e.g.

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

(description...)

 affects project
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBHGBAgAGBQJMo4+DAAoJEEzkDnpJVN54siMH/RomAcrSh216hJyUROBV11Vq
O0i8/P5gK6JgUIG4SRbvCo6KRUVOtzLrrtoOFTiS+VV5a35AdsD1GJCoVQ5ukd1N
9YAXoBtWN6E5dtuSDF+T4IJbui7/3h6ykuUkB0LgIgBXX4t0NaVJx5jKKSslZG0n
mxgTC2z4xodxTjL83GOlH9btAFf6qZfgyXI9aFNtqSm7PwTyIeKk7HJdyBjYYuJa
hImICo42d6N7FdBvccNsFh22RkwT3hrZ6VFti5dJTWjN56FsdqFJ1N4X3a/YleTm
Jr1dvyIWlOa1VInbOU9VaSbxNloq2h6+mHg+un3fqpAaotFTuWemXEdr5pbxbYI=
=L3Ql
-----END PGP SIGNATURE-----

Is this due to the client I'm using to attach the signature, in this case, Thunderbird 3.1, or should Launchpad be parsing that out for me?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Keith Hughitt
Solved:
2010-10-06
Last query:
2010-10-06
Last reply:
2010-10-06
Gavin Panella (allenap) said : #1

Can you link to the bug where you're seeing this problem?

Keith Hughitt (keith-hughitt) said : #2

Sure. Here is one example of a bug submitted in this manor:

https://bugs.edge.launchpad.net/helioviewer.org/+bug/651406

Gavin Panella (allenap) said : #3

Hi Keith,

I think there are two problems here:

- The formatter we're using for the description is the wrong one. It
  is using text_to_html() but should be using email_to_html(). This
  would leave the PGP boilerplate and signature in place but make it
  foldable, and folded closed by default.

- The absence of a blank line before the BEGIN PGP SIGNATURE line
  would confuse the formatter in any case; it prevents it from
  recognising the signature block.

I will file some bugs.

Thanks!

Gavin.

Keith Hughitt (keith-hughitt) said : #4

Great. Thanks for following up Gavin!