Note: There are a few cases of duplicates in user autocompletion which are being worked on.

set Comment field in GPG email to the URL of the bug

RESOLVED FIXED

Status

()

bugzilla.mozilla.org
Extensions: SecureMail
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: atoll, Assigned: glob)

Tracking

Production

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
When sending bugmail, we plaintext reference the bug # in the email plaintext headers. It would be helpful to have a direct link to the bug in the plaintext email as well (when viewing GPG emails on non-GPG clients).

Could you please activate the 'comment' attribute in the Crypt::OpenGPG code?

https://github.com/btrott/Crypt-OpenPGP/blob/77352f28bfa9f9ad9f31f8ac145b0be39c5addba/lib/Crypt/OpenPGP/Armour.pm#L142

indicates that you just need to add a 'Comment => $bmo_url' parameter to the Headers hash.

I request that the URL is the *only thing* in the Comment, since no further information is required and that provides the best usability (obvious clickable url on line 4 of the email).
(Assignee)

Updated

2 years ago
Assignee: nobody → glob
Weird. I thought of this idea just the other day, then forgot it again :-)

Gerv
(Assignee)

Comment 2

2 years ago
Created attachment 8649705 [details] [diff] [review]
1190476_1.patch

i performed some testing with atoll and this appears to do the trick.
Attachment #8649705 - Flags: review?(dkl)
(Reporter)

Comment 3

2 years ago
Before:

-----BEGIN PGP MESSAGE-----
Version: Crypt::OpenPGP 1.04

hQIOA7Z/9NBBpcqLEAf/bMV+r9xTcPKkbUmoxzjFs8NlVQ/v4vyeAVF9AhTr70JP


After:

-----BEGIN PGP MESSAGE-----
Comment: http://bz/1190476/show_bug.cgi?id=888

hQMMA7Z/9NBBpcqLEAgAilS8GOEtWVvdLlFTxU1jd+8rH3zxiJUbIZbiTgTMXeBM


The message decrypts cleanly and to the same content as before.
Comment on attachment 8649705 [details] [diff] [review]
1190476_1.patch

Review of attachment 8649705 [details] [diff] [review]:
-----------------------------------------------------------------

r=dkl
Attachment #8649705 - Flags: review?(dkl) → review+
(Assignee)

Comment 5

2 years ago
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   df1f6c9..667ecc3  master -> master
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.