Documentation in RT::Crypt::GnuPG is misleading

Hey,

Just a note to people who want to implement GPG based encrypted email with RT that the docs in RT::Crypt::GnuPG are a bit misleading. In the Passphrases section it states that you can provide a hash of email address -> passphrase mappings. This won’t work if you want to receive encrypted email, you get an error message logged that looks like this:

[warning]: Use of uninitialized value $args{"Address"} in hash element at /usr/share/request-tracker4/lib/RT/Crypt/Role.pm line 97. (/usr/share/request-tracker4/lib/RT/Crypt/Role.pm:94)

This is because the email address that the email was received to isn’t passed through. I found that I had to implement a gpg-agent, more or less following this post: RT::Crypt::GPG with gpg-agent .

This is RT 4.4.1, but I checked the code in 4.4.4, and it is the same.

Hopefully this post proves helpful to someone who hits the same error.

Cheers,
Andrew