tomtjes
(Thomas Reintjes)
09.Апрель.2023 16:29:46
1
В разделе Администрирование > Электронная почта > Отклонённые у меня есть письмо со следующей ошибкой:
Ошибка
Email::Receiver::OldDestinationError
отсутствует перевод: en.emails.incoming.errors.old_destination_error
Пока я возился с переводами для своего сайта, я думаю, что это проблема не только для меня. Похоже, что в файле server.en.yml на GitHub действительно отсутствует этот перевод.
3 лайка
gerhard
(Gerhard Schlager)
19.Апрель.2023 07:27:04
2
Переношу это в категорию bug , чтобы оно не потерялось.
Нам нужно исправить это и, по возможности, добавить спецификацию или правило линтинга , чтобы гарантировать, что каждая ошибка в Email::Receiver имеет соответствующий перевод. Примечания в этом файле явно недостаточно.
Также необходимо проверить, не отсутствуют ли другие переводы.
errors:
empty_email_error: "Happens when the raw mail we received was blank."
no_message_id_error: "Happens when the mail has no 'Message-Id' header."
auto_generated_email_error: "Happens when the 'precedence' header is set to: list, junk, bulk or auto_reply, or when any other header contains: auto-submitted, auto-replied or auto-generated."
no_body_detected_error: "Happens when we couldn't extract a body and there were no attachments."
no_sender_detected_error: "Happens when we couldn't find a valid email address in the From header."
from_reply_by_address_error: "Happens when the From header matches the reply by email address."
inactive_user_error: "Happens when the sender is not active."
silenced_user_error: "Happens when the sender has been silenced."
bad_destination_address: "Happens when none of the email addresses in To/Cc fields matched a configured incoming email address."
strangers_not_allowed_error: "Happens when a user tried to create a new topic in a category they're not a member of."
insufficient_trust_level_error: "Happens when a user tried to create a new topic in a category they don't have the required trust level for."
reply_user_not_matching_error: "Happens when a reply came in from a different email address the notification was sent to."
topic_not_found_error: "Happens when a reply came in but the related topic has been deleted."
topic_closed_error: "Happens when a reply came in but the related topic has been closed."
bounced_email_error: "Email is a bounced email report."
screened_email_error: "Happens when the sender's email address was already screened."
unsubscribe_not_allowed: "Happens when unsubscribing via email is not allowed for this user."
email_not_allowed: "Happens when the email address is not on the allowlist or is on the blocklist."
unrecognized_error: "Unrecognized Error"
4 лайка
JAYT
(John Thomas)
04.Июль.2023 21:13:57
3
Видно из источника писем, который раньше работал. (Список рассылки для клуба, для которого я администрирую экземпляр Discourse.)
Email::Receiver::InvalidPost
Отсутствует перевод: en_GB.emails.incoming.errors.invalid_post
Есть идеи, что это означает? Для этих постов перевод не требуется.