Defect #2388
closed422 response from mail_handler
0%
Description
To receive email, I'm using simple perl script to pull the mail from POP3 and redirect to rdm-mailhandler.rb.
If issue submission not successful, the script save mail to temp folder and reply to the sender about failure of issue submission.
During 2 weeks running, almost 70% of mail getting 422 response from mail_handler.
Posting to http://redmine.hostname/mail_handler... Response received: 422
6% of them was 500 reponse, last of them was successful.
I attached one of them (causing 422 response) mail-20081223.eml. (mail address and some hostname blocked)
p.s. The issue submission fail notification useful because sender couldn't get any report!
Files
Updated by Jean-Philippe Lang almost 16 years ago
I see no defect here since I can receive the attached email using someting like:
ruby extra\mail_handler\rdm-mailhandler.rb --url http://localhost:3000 --key secret --project redmine -v < mail-20081223.eml
The issue is properly created.
The 422 response that you get means the ticket could not be created. There may be several reasons for that:- the user is unknown (no redmine user with the same email address as the email sender)
- the project is not specified (you may specify a default project using the --project option)
- you have created some required custom fields for the target project/tracker
You may find some usefull information in your log file.
Updated by youngseok yi almost 16 years ago
- Status changed from New to Resolved
Thanks JP. The issue is not from redmine at all!
I had tried to use IPC::Run3 (perl module) to manipulate piping raw mail (scalar buffer in my script) to rdm-mailhandler.rb.
It seems better to save mail as temp file and do as explained above (<
mail-20081223.eml). I don't know why but it works fine.
Updated by Jean-Philippe Lang almost 16 years ago
- Status changed from Resolved to Closed
- Resolution set to Invalid
OK, thanks for the feedback.
Updated by Jean-Philippe Lang almost 15 years ago
- Category changed from Email notifications to Email receiving