Project

General

Profile

reply to issues using email

Added by Josh Cox almost 9 years ago

after running this command

sudo -u redmine -H bundle exec rake redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com port=993 ssl=true username=USER@gmail.com password=PASS folder=Inbox move_on_success=SUCCESS move_on_failure=failed project=projectid --trace
** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_imap

I am not getting redmine to receive replies to any issues. I have ensured that all the above folders do exist in an imap client (thunderbird), and all capitalization is accurate (including the uppercase I in Inbox).

I then quit thunderbird to ensure it was not marking messages read or seen or not new.

If alter any of the details (change the username of the gmail user for example) it indeed then fails.

** Invoke redmine:email:receive_imap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute redmine:email:receive_imap
rake aborted!
Net::IMAP::NoResponseError: Lookup failed 

so I'm pretty certain it's logging in correctly. Is there something else I can do to debug why it's not moving any messages at all? not to failed or SUCCESS?


Replies (1)

RE: reply to issues using email - Added by Josh Cox almost 9 years ago

rereading this post I realize I should add:

grep -i mail log/production.log
tail -f log/production.log

do wonders for debugging this, however, I'm still not seeing any errors thrown when I run the rake, yet it is now placing it in the 'failed' directory without any reason?

    (1-1/1)