プロジェクト

全般

プロフィール

Vote #74866

未完了

Email address with non-ASCII character causes delivery error

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
低め
担当者:
-
カテゴリ:
Email notifications_9
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
9
version_id:
0
issue_org_id:
15985
author_id:
88806
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
76
ステータス-->[New]

説明

I know that e-mailadresses with "ß" are invalid in general, but you can enter them in redmine. That causes that any notification to a ticket which are related to the person with the "ß" mail couldnt be send.

The "to:" mailadress in the maillog is something like "to=<=?UTF-8?B?bWFyY2VsLnBsYcOfQGJ1cmctZ21iaC5kZQ==?=>" for everyone who is related.
-> No one will be notified.


journals

Non-ASCII characters cannot be used in an email address.
This issue can be fixed by the following patch.

<pre><code class="diff">
Index: app/models/email_address.rb
===================================================================
--- app/models/email_address.rb (revision 16179)
+++ app/models/email_address.rb (working copy)
@@ -26,7 +26,7 @@
after_destroy :destroy_tokens, :deliver_security_notification_destroy

validates_presence_of :address
- validates_format_of :address, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, :allow_blank => true
+ validates_format_of :address, :with => /\A([[:ascii:]&&[^@\s]]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i, :allow_blank => true
validates_length_of :address, :maximum => User::MAIL_LENGTH_LIMIT, :allow_nil => true
validates_uniqueness_of :address, :case_sensitive => false,
:if => Proc.new {|email| email.address_changed? && email.address.present?}
</code></pre>
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Go MAEDA wrote:
> Non-ASCII characters cannot be used in an email address.

Yes, they can. More and more clients and server support that.
We cannot simply disallow them in Redmine.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Go MAEDA wrote:
> > Non-ASCII characters cannot be used in an email address.
>
> Yes, they can. More and more clients and server support that.
> We cannot simply disallow them in Redmine.

Thanks for the advice. Now I understand that.

https://en.wikipedia.org/wiki/International_email#Email_addresses
https://tools.ietf.org/html/rfc6530
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,28878,Email does not support Russian-language domains.
relates,New,29208,IDN support for email addresses of user accounts

Admin Redmine さんが約4年前に更新

  • カテゴリEmail notifications_9 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0