Receiving Mail in Redmine
Added by Matt H almost 14 years ago
Hello,
I have been using Redmine for a few months now and would like to incorporate receiving emails. At this point, there is no mail account available to use, so I would like to manually feed emails to Redmine.
We use Lotus Notes 8 here and I can't figure out how to use the rdm-mailhandler to retrieve emails. I am using Windows XP and Mongrel, with Redmine 1.1.2, Ruby 1.8.7, and MySQL. I am trying to add something to issue #200. The sending email address is a registered user in the system.
I have tried the following, to no avail:- rdm-mailhandler, with different switches
- rake redmine:email:read, with different swiches
- redmine:email:receive_pop3
Any thoughts? Thanks to all involved for building such as useful tool.
Thank You,
Matt
Here is what I'm entering in the command prompt:
Redmine-1.1.2>ruby rdm-mailhandler.rb --url http://127.0.0.1 --key key -v < email1.txt Posting to http://127.0.0.1/mail_handler... Response received: 422 Request was denied by your Redmine server. Possible reasons: email is sent from an invalid email address or is missing some information.
Here is a snip from the production.log:
Processing MailHandlerController#index (for 127.0.0.1 at 2011-03-17 12:33:56) [POST] Parameters: {"no_permission_check"=>"", "unknown_user"=>"", "allow_override"=>"", "key"=>"key", "email"=>"To: Matt xxxx <xxxx@xxxx>\nMIME-Version: 1.0\nSubject: Re: Issue Test [#200]\nX-KeepSent: xxxx:xxxx:xxxx;\n type=4; name=$KeepSent\nX-Mailer: Lotus Notes Release 8.0.2FP1 SHF148 July 15, 2009\nFrom: xxxx@xxxx\nMessage-ID: <xxxx.xxxx-xxxx.xxxx-xxxx.xxxx@LocalDomain>\nDate: Wed, 16 Mar 2011 07:30:21 -0500\nX-MIMETrack: Serialize by Notes Client on xxxx(Release 8.0.2FP1\n SHF148|July 15, 2009) at 03/17/2011 10:44:57 AM,\n\t\t Serialize complete at 03/17/2011 10:44:57 AM\nContent-Type: multipart/alternative; boundary=\"=_alternative xxxx_=\"\n\nThis is a multipart message in MIME format.\n--=_alternative xxxx_=\nContent-Type: text/plain; charset=\"US-ASCII\"\n\nThis is a test email.\n\n--=_alternative xxxx_=\nContent-Type: text/html; charset=\"US-ASCII\"\n\n\n<br><font size=2 face=\"sans-serif\">This is a test email.</font>\n<br>\n</font>\n--=_alternative xxxx_=--\n"} Completed in 0ms (View: 0, DB: 0) | 422 Unprocessable Entity [http://127.0.0.1/mail_handler]
Here is the email message:
To: Matt xxxx <xxxx@xxxx> MIME-Version: 1.0 Subject: Re: Issue Test [#200] X-KeepSent: xxxx:xxxx:xxxx; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.0.2FP1 SHF148 July 15, 2009 From: xxxx@xxxx Message-ID: <xxxx.xxxx-xxxx.xxxx-xxxx.xxxx@LocalDomain> Date: Wed, 16 Mar 2011 07:30:21 -0500 X-MIMETrack: Serialize by Notes Client on xxxx(Release 8.0.2FP1 SHF148|July 15, 2009) at 03/17/2011 10:44:57 AM, Serialize complete at 03/17/2011 10:44:57 AM Content-Type: multipart/alternative; boundary="=_alternative xxxx_=" This is a multipart message in MIME format. --=_alternative xxxx_= Content-Type: text/plain; charset="US-ASCII" This is a test email. --=_alternative xxxx_= Content-Type: text/html; charset="US-ASCII" <br><font size=2 face="sans-serif">This is a test email.</font> <br> </font> --=_alternative xxxx_=--