Project

General

Profile

Actions

Defect #11191

closed

receive_imap failed with localizaed characters in attachments or subject

Added by Arnis Juraga over 12 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

Today I have noticed IMAP read problems, when email attachment is text file with localized characters.
I had the same problem with email having localized characters in SUBJECT line, but cannot reproduce it anymore :(

But I can reproduce problem with attachemnt.

rake task script:

#!/bin/bash
export GEM_HOME=/var/lib/gems/1.8/gems/
export PATH=/var/lib/gems/1.8/bin:$PATH
cd /opt/redmine/redmine-2.0.2/ 
rake redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com ssl=SSL port=993
username=XXXX@XXXX.XXX password=XXXXXXXXXXX move_on_success=izlasitie move_on_failure=failed project=incoming unknown_user=create no_permission_check=1 --trace

Trace result:

root@int:~# /opt/redmine/scripts/redminemail.sh
** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_imap
rake aborted!
"šrutu apraksti -"...
/var/lib/gems/1.8/gems/mail-2.4.4/lib/mail/message.rb:2046:in `conv'
/var/lib/gems/1.8/gems/mail-2.4.4/lib/mail/message.rb:2046:in `decode_body_as_text'
/var/lib/gems/1.8/gems/mail-2.4.4/lib/mail/message.rb:1786:in `decoded'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:245:in `add_attachments'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:243:in `each'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:243:in `add_attachments'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:175:in `receive_issue'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:152:in `dispatch_to_default'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:137:in `dispatch'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:113:in `receive'
/var/lib/gems/1.8/gems/actionmailer-3.2.5/lib/action_mailer/base.rb:404:in `receive'
/var/lib/gems/1.8/gems/activesupport-3.2.5/lib/active_support/notifications.rb:123:in `instrument'
/var/lib/gems/1.8/gems/activesupport-3.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/lib/gems/1.8/gems/activesupport-3.2.5/lib/active_support/notifications.rb:123:in `instrument'
/var/lib/gems/1.8/gems/actionmailer-3.2.5/lib/action_mailer/base.rb:401:in `receive'
/opt/redmine/redmine-2.0.2/app/models/mail_handler.rb:44:in `receive'
/opt/redmine/redmine-2.0.2/lib/redmine/imap.rb:35:in `check'
/opt/redmine/redmine-2.0.2/lib/redmine/imap.rb:32:in `each'
/opt/redmine/redmine-2.0.2/lib/redmine/imap.rb:32:in `check'
/opt/redmine/redmine-2.0.2/lib/tasks/email.rake:133
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/var/lib/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/var/lib/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/var/lib/gems/1.8/bin/rake:19:in `load'
/var/lib/gems/1.8/bin/rake:19
Tasks: TOP => redmine:email:receive_imap

Files

attachedtextfile.txt (32 Bytes) attachedtextfile.txt Email attachment Arnis Juraga, 2012-06-18 15:12
redmine_mail_receive.diff (487 Bytes) redmine_mail_receive.diff Steffen Zieger, 2013-04-16 15:38
redmine_attachment_charset_issue.diff (1.69 KB) redmine_attachment_charset_issue.diff Steffen Zieger, 2013-06-03 16:36
Actions

Also available in: Atom PDF