Defect #5820

Hard-coded string "no subject" in app/models/mail_handler.rb

Added by Roland Discein about 9 years ago. Updated 25 days ago.

Status:ClosedStart date:2010-07-05
Priority:NormalDue date:
Assignee:Go MAEDA% Done:


Target version:4.1.0
Resolution:Fixed Affected version:


    if issue.subject.blank?
      issue.subject = '(no subject)'
hardcoded in source:app/models/mail_handler.rb

Maybe it can be localized?

My env:

About your application's environment
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.7
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Application root /opt/redmine
Environment development
Database adapter mysql
Database schema version 20100313171051

feature-5820.patch Magnifier (2.05 KB) Mizuki ISHIKAWA, 2019-08-22 10:28

Associated revisions

Revision 18388
Added by Go MAEDA 25 days ago

Fix hard-coded string "no subject" in app/models/mail_handler.rb (#5820).

Patch by Mizuki ISHIKAWA.

Revision 18389
Added by Go MAEDA 25 days ago

Update locales (#5820).

Revision 18390
Added by Go MAEDA 25 days ago

Russian translation for text_no_subject (#5820).

Patch by Roland Discein.


#1 Updated by Roland Discein about 9 years ago

Mistyped: hardcoded entry in source:/trunk/app/models/mail_handler.rb

russian translation is

field_no_subject: Нет темы

#2 Updated by Mizuki ISHIKAWA 28 days ago

I attached a patch.
The subject language is Setting.default_language, not the user language(The reason is the same as #31427#note-9)

#3 Updated by Go MAEDA 27 days ago

  • Category set to I18n
  • Target version set to 4.1.0

Setting the target version to 4.1.0.

#4 Updated by Go MAEDA 25 days ago

  • Tracker changed from Feature to Defect
  • Subject changed from Issues with no subject can have localized title to Hard-coded string "no subject" in app/models/mail_handler.rb
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patch. Thank you for your contribution.

Also available in: Atom PDF