Project

General

Profile

Actions

Defect #7917

closed

Creating users via email fails if user real name containes special chars

Defect #7917: Creating users via email fails if user real name containes special chars

Added by Poul Thomsen over 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
-
Category:
Email receiving
Target version:
Resolution:
Fixed
Affected version:

Description

If importing issues using the following command

/usr/bin/rake -f /opt/redmine/Rakefile redmine:email:receive_pop3 RAILS_ENV="production" host=xxxxxx username=xxxxxx password=xxxxxx project=xxxxxx allow_override=project,tracker,category,priority unknown_user=create no_permission_check=1 tracker=support

In some cases mails will be left on the server with the message:

--> Message <xxxxxxxxxxxx.xxxx.com> NOT processed and left on the server

When sending a mail with a MailAutherName containing danish special chars "æøå" the mail will be ignored.

It's not a problem creating the user in the system using æøå only the auto creation that fails.

Ruby version: 1.8.7 (i486-linux)
Rails version: 2.3.5
Redmine version: 1.1.2.stable.5164 (MySQL)
Mysql version: 5.1.41-3ubuntu12.9


Related issues 4 (0 open — 4 closed)

Related to Redmine - Defect #8157: Redmine do not send notification emails if a recipients email address is not validClosedActions
Related to Redmine - Defect #6088: eMail in uncommon formats considered invalidClosedActions
Related to Redmine - Defect #8733: Sending email fails when one of members has illegal characters in email addressClosedActions
Has duplicate Redmine - Defect #9469: redmine:email:receive_imap rejects emails from people with accentuated characters in their nameClosedActions

Updated by Peter Brauner over 15 years ago Actions #1

This is an issue for me as well. Living Sweden we have the letters ÅÄÖ åäö in the alphabet.
Now when using unknown_user=create the mails from the imap server is marked as read but is not delivered to Redmine. If I set the rake to use unknown_user=accept the mails will go through but then of course the user will be set to anonymous and won´t get an account and therefor not any follow ups on the issues.

Cheers!

//Peter Brauner

Updated by Etienne Massip over 15 years ago Actions #2

  • Target version set to Candidate for next minor release

Updated by Rogério Carrasqueira over 15 years ago Actions #3

Hi!,

I'm having the same problem with latin caracters. I think that it can be treated as an important feature.

Updated by Poul Thomsen over 15 years ago Actions #5

Anyone know of a workaround for this?, this is quite game breaking for us unfortunately.

Updated by liku xiong· about 15 years ago Actions #6

  • % Done changed from 0 to 20

Updated by liku xiong· about 15 years ago Actions #7

  • Assignee set to Felix Schäfer
  • % Done changed from 20 to 50

Updated by Felix Schäfer about 15 years ago Actions #8

  • Assignee deleted (Felix Schäfer)

Updated by Bruno Bigras about 15 years ago Actions #9

Poul Thomsen wrote:

Anyone know of a workaround for this?, this is quite game breaking for us unfortunately.

I just made a Python class that connects to the IMAP server and then creates a user for each ignored email (those marked as "Seen"). I currently use it in my cron.

https://github.com/brunoqc/create-redmine-users-from-imap

Updated by Jean-Philippe Lang about 15 years ago Actions #10

  • Status changed from New to Closed
  • Target version changed from Candidate for next minor release to 1.3.0
  • Resolution set to Fixed

This should be fixed by r7952. There are now defaults for login/firstname/lastname when those extracted from the email are not considered valid.

If you still have problem with user creation after r7952, please attach a raw email so I can do some testing.

Actions

Also available in: PDF Atom