Project

General

Profile

Actions

Defect #15985

open

Email address with non-ASCII character causes delivery error

Added by Marc D. over 9 years ago. Updated over 6 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

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.


Related issues

Related to Redmine - Defect #28878: Email does not support Russian-language domains.New

Actions
Related to Redmine - Feature #29208: IDN support for email addresses of user accountsNew

Actions
Actions #1

Updated by Go MAEDA over 6 years ago

  • Subject changed from E-Mail with ß causes error to Email address with non-ASCII character causes delivery error

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

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?}
Actions #2

Updated by Go MAEDA over 6 years ago

  • Target version set to 3.3.3
Actions #3

Updated by Jean-Philippe Lang over 6 years ago

  • Target version deleted (3.3.3)

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.

Actions #4

Updated by Go MAEDA over 6 years ago

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

Actions #5

Updated by Go MAEDA over 5 years ago

  • Related to Defect #28878: Email does not support Russian-language domains. added
Actions #6

Updated by Go MAEDA about 5 years ago

  • Related to Feature #29208: IDN support for email addresses of user accounts added
Actions

Also available in: Atom PDF