Bugzilla::User methods for obtaining user ID info

Gervase Markham gerv at mozilla.org
Wed Nov 27 13:47:09 UTC 2013

On 27/11/13 13:20, Frédéric Buclin wrote:
>> email():    returns the value of login() plus the emailsuffix.
> Used internally to send emails. If emailsuffix is empty, then it exactly
> matches login(). Else it's appended to login_name to form the complete
> email address. Users should never see nor access it, at least from the
> web UI (one would have to check if User.get returns this attribute or not).

OK. So if a template says:

<a href="mailto:[% user.email %]">...

that's wrong? It should be:

<a href="mailto:[% user.login %]">...


I would be very happy if we changed things so that email() is only used
internally to send emails (because it would make my pseudonymity
extension work properly) and I'm happy to prepare a patch, but that's
not the case today.


dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org

More information about the developers mailing list