Project

General

Profile

Actions

Defect #2388

closed

422 response from mail_handler

Added by youngseok yi almost 16 years ago. Updated almost 15 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

mail-20081223.eml (32.1 KB) mail-20081223.eml 422 response youngseok yi, 2008-12-23 05:19
Actions #1

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.

Actions #2

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.

Actions #3

Updated by Jean-Philippe Lang almost 16 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

OK, thanks for the feedback.

Actions #4

Updated by Jean-Philippe Lang almost 15 years ago

  • Category changed from Email notifications to Email receiving
Actions

Also available in: Atom PDF