プロジェクト

全般

プロフィール

Vote #72837

完了

Error when receiving an email without subject header

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
29
version_id:
61
issue_org_id:
12396
author_id:
17358
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
59
ステータス-->[Closed]

説明

Hello.

Because we did not find a solution for this problem "in the forum":http://www.redmine.org/boards/2/topics/32649 I will open a ticket for this.

My system information:

Environment:
  Redmine version                          2.1.3.stable
  Ruby version                             1.9.3 (i686-linux)
  Rails version                            3.2.8
  Environment                              production
  Database adapter                         Mysql2
Redmine plugins:
  no plugin installed
The system does send mail out without any issue. Sending over TLS (GMail) is working properly. If I try to generate redmine tickets from an IMAP inbox with the command:
rake -f /var/www/clients/client1/web11/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com \
ssl=1 port=993 username=XXX password=XXX folder=Labor move_on_success="[Google Mail]/All Mail" \
move_on_failure="[Google Mail]/All Mail" tracker=support project=support allow_override=tracker,project --trace
The login to the IMAP server can be established and mails get flagged as read, but whenever an unread mail is in the inbox, I get the following error:
** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_imap
rake aborted!
undefined method `match' for nil:NilClass
/var/www/clients/client1/web11/redmine/app/models/mail_handler.rb:135:in `dispatch'
/var/www/clients/client1/web11/redmine/app/models/mail_handler.rb:116:in `receive'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/actionmailer-3.2.8/lib/action_mailer/base.rb:404:in `block in receive'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `block in instrument'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:in `instrument'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/actionmailer-3.2.8/lib/action_mailer/base.rb:401:in `receive'
/var/www/clients/client1/web11/redmine/app/models/mail_handler.rb:44:in `receive'
/var/www/clients/client1/web11/redmine/lib/redmine/imap.rb:35:in `block in check'
/var/www/clients/client1/web11/redmine/lib/redmine/imap.rb:32:in `each'
/var/www/clients/client1/web11/redmine/lib/redmine/imap.rb:32:in `check'
/var/www/clients/client1/web11/redmine/lib/tasks/email.rake:133:in `block (3 levels) in '
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/task.rb:227:in `call'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/task.rb:227:in `block in execute'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/task.rb:222:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/task.rb:222:in `execute'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/task.rb:166:in `block in invoke_with_call_chain'
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/task.rb:159:in `invoke_with_call_chain'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/task.rb:152:in `invoke'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:141:in `invoke_task'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:99:in `block (2 levels) in top_level'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:99:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:99:in `block in top_level'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:108:in `run_with_threads'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:93:in `top_level'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:71:in `block in run'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:158:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/lib/rake/application.rb:68:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/rake-10.0.1/bin/rake:37:in `'
/usr/local/rvm/gems/ruby-1.9.3-p194/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p194/bin/rake:19:in `
' /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval' /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `
' Tasks: TOP => redmine:email:receive_imap

Any help appreciated.


journals

It looks like the email you're receiving does have any subject. Could you attach the raw email here?
--------------------------------------------------------------------------------
This should be fixed by r10850. Can you give it a try?
--------------------------------------------------------------------------------
Installed the trunk last night.
Issue seems to be fixed now.

Thank you very much.
--------------------------------------------------------------------------------
Thanks for the feedback.
--------------------------------------------------------------------------------
Merged in 2.1-stable.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン2.1.4_61 にセット

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

いいね!0
いいね!0