Actions
Defect #5698
closedredmine:email:receive_imap fails silently for mails with subject longer than 255 characters
Start date:
2010-06-16
Due date:
% Done:
100%
Estimated time:
Resolution:
Fixed
Affected version:
Description
The automatic issue creation from mailbox silently ignores emails which have a subject longer than 255 characters - the model validation for Issue fails, and the mail is ignored.
We ran into this problem while automatically importing exceptions from client sites into Redmine via e-mail (exception messages would sometimes amount to more than 255 characters).
It would be better to just chop the subject off at 255 characters and create the issue like that. Can be modified this way:
in app/models/mail_handler.rb at line 137:
issue.subject = email.subject.chomp[0..254]
Files
Actions