The translationnotifications mailer is broken, which is preventing translators to receive emails and digests about pending translator tasks.
As far as I was told, the issue is with `MailAddress` but I'm seeing other errors with `JobExecutor` and `sendEmail`.
EventBus reports errors because of a `Non-scalar value found in the event`. According to @Ottomata in -analytics today this is because:
```lang=IRC
<ottomata> to field is being set an instance of MailAddress
<ottomata> which is failing because MailAddress is not a scalar
<ottomata> MailAddress's toString does work as expected though
```
Looking for related errors in Logstash I can find as well 4,000+ JobExecutor sendMail errors since January 2023. See [[ https://logstash.wikimedia.org/goto/76a6a0a02918ca151dbc5f471534860f | this Logstash query ]] e.g.:
```
"Failed executing job: sendMail Special:MyLanguage/Main_Page to={\"name\":\"***REDACTED***\",\"realName\":\"\",\"address\":\"\"} from={\"name\":\"\",\"realName\":\"\",\"address\":\"wiki@wikimedia.org\"} body=string(1324) subj=Digest email for translation requests from Meta replyto={\"name\":\"\",\"realName\":\"\",\"address\":\"***REDACTED***\"} namespace=-1 title=MyLanguage/Main_Page requestId=9be0ac0706badf0d293ec762",
```
==== Error ====
* mwversion: 1.41.0-wmf.4
* reqId: 9be0ac0706badf0d293ec762
* [[ https://logstash.wikimedia.org/app/dashboards#/view/AXFV7JE83bOlOASGccsT?_g=(time:(from:'2023-04-16T10:00:12.558Z',to:'2023-04-18T10:00:12.558Z'))&_a=(query:(query_string:(query:'reqId:%229be0ac0706badf0d293ec762%22'))) | Find reqId in Logstash ]]
```name=normalized_message,lines=10
Non-scalar value found in the event
```
```name=,lines=10
exception.trace
```
==== Impact ====
==== Notes ====
=== Original Task Description ===
I have opted-in to translation notifications via a weekly email digest for Spanish via Meta-Wiki [[ https://meta.wikimedia.org/wiki/Special:TranslatorSignup | Special:TranslatorSignup ]] for quite some time. However, and despite translation notifications been sent according to [[ https://meta.wikimedia.org/wiki/Special:Log?type=notifytranslators | the relevant on-wiki log ]], I have received no ~~email or~~ digests, which makes me suspect that ~~either the whole "email" feature is broken, or maybe just~~ the digest option is not working.
Just in case, my email address is valid and verified/confirmed as well.
Thank you.