Question about sendemail.from

231 views
Skip to first unread message

이정구

unread,
Aug 25, 2021, 2:22:59 AM8/25/21
to Repo and Gerrit Discussion
Hi, team.

I have a question about email notification.
Gerrit email notification doesn't show real user name.
The email sender is always displayed the same (Name of user not set).

To resolve this,  I changed the sendemail.from property to MIXED.
But it didn't work.
Could you let me know how I can relsolve it, please?
Belows are my gerrit.config and sender of email notification.

[sendemail]
   from = MIXED
---------------------------
sender : Name of user not set (Code Review) <gerrit@4782b253028a>

[sendemail]
   from = USER
-----------------------------
sender: Name of user not set (Code Review) <gerrit@4782b253028a>

[sendemail]
    from = SERVER
------------------------------
sender: Gerrit Code Review <gerrit@4782b253028a>

[sendemail]
    from = My Gerrit <no_r...@example.com>
--------------------------------
sender: My Gerrit <no_r...@example.com>

[sendemail] 
    from = MIXED
[user]
    email = my_e...@example.com
-------------------------------------------------
sender: Name of user not set (Code Review) <my_e...@example.com>

Thanks,
Junggu

Sven Selberg

unread,
Aug 25, 2021, 3:28:27 AM8/25/21
to Repo and Gerrit Discussion
On Wednesday, August 25, 2021 at 8:22:59 AM UTC+2 hyde...@gmail.com wrote:
Hi, team.

I have a question about email notification.
Gerrit email notification doesn't show real user name.
The email sender is always displayed the same (Name of user not set).

To resolve this,  I changed the sendemail.from property to MIXED.
But it didn't work.
Could you let me know how I can relsolve it, please?

We use something like this:

from = ${user} (Gerrit) <my-g...@org.com

이정구

unread,
Aug 25, 2021, 5:55:54 AM8/25/21
to Repo and Gerrit Discussion
I tried, but it failed.
I think ${user} doesn't work for me.

[sendemail]
        from = ${user} (Gerrit) <no_r...@example.com>
------------------------------------------------------------------------------------
sender : Name of user not set (Gerrit) <no_r...@example.com>

2021년 8월 25일 수요일 오후 4시 28분 27초 UTC+9에 Sven Selberg님이 작성:

Sven Selberg

unread,
Aug 25, 2021, 7:08:35 AM8/25/21
to Repo and Gerrit Discussion
On Wednesday, August 25, 2021 at 11:55:54 AM UTC+2 hyde...@gmail.com wrote:
I tried, but it failed.
I think ${user} doesn't work for me.

"Name of user not set" is the default value when Full Name is not set:
Is "Full Name" set for the user you are testing with?

이정구

unread,
Aug 30, 2021, 6:04:29 AM8/30/21
to Repo and Gerrit Discussion
Hi, Sven

Thanks for your comment, I found my mistake and solved my issue.

Regards,
Junggu

2021년 8월 25일 수요일 오후 8시 8분 35초 UTC+9에 Sven Selberg님이 작성:

Sven Selberg

unread,
Aug 30, 2021, 6:14:42 AM8/30/21
to Repo and Gerrit Discussion
On Monday, August 30, 2021 at 12:04:29 PM UTC+2 hyde...@gmail.com wrote:
Hi, Sven

Thanks for your comment, I found my mistake and solved my issue.

For others with similar issues, how did you solve the issue [DC].

이정구

unread,
Aug 31, 2021, 1:04:23 AM8/31/21
to Repo and Gerrit Discussion
In my case, I set 'User Settings' -> 'Full name' again. 
I don't know why, but it doesn't seem to work properly even though there was a value in the full name.
After resetting the full name, it worked properly.
2021년 8월 30일 월요일 오후 7시 14분 42초 UTC+9에 Sven Selberg님이 작성:
Reply all
Reply to author
Forward
0 new messages