imap emails are read but no issue created
Added by jerome l over 11 years ago
Hello
I am using imap gmail account and this commande to receive mail for google mail and open issue in my redmine:
rake -f /var/www/redmine/Rakefile redmine:email:helpdesk:receive_imap RAILS_ENV="production" host=imap.gmail.com username=**@gmail.com password=*** port=993 ssl=1 project=xxx
or this one
rake redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com port=993 ssl=1 username=**@gmail.com password=*** folder=INBOX move_on_success=SUCCESS allow_override=tracker,priority,category,status --trace
in the inbox email changed drom unread to read and for the second commande, are moved to success folder, but not issuer created on my project xxxx
Do you know any logfile that could help me understand what is going wrong ?
what project configuratioin should i check ? permission, email sender adress?
thanks for your help
my environment
Environment:
Redmine version 2.3.1.stable
Ruby version 1.9.3 (i486-linux)
Rails version 3.2.13
Environment production
Database adapter Mysql2
Replies (14)
RE: imap emails are read but no issue created - Added by Jan Niggemann (redmine.org team member) over 11 years ago
The first one is just wrong, it contains the word "helpdesk":
rake -f /var/www/redmine/Rakefile redmine:email:helpdesk:receive_imap
"redmine:email:receive_imap" would be correct.
In the second example you set no default project, maybe the issue is created in a project you're not looking at?
RE: imap emails are read but no issue created - Added by jerome l over 11 years ago
Dear Jan,
thanks a lot, you were right, now it's working.
may i ask you another question.To Jan or someone else :)
it's about override option.
i would like issue to be created in a default project, for example xxx, and if a sender send an issue for anotger project, he inserts in his email the option: projet= yyy
So for that I use the command:
rake -f /var/www/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=mail.**.** username=**@***.** password=***** port=143 project=xxxx allow_override=project unknown_user=accept --trace
The problem is that the issue is still created in the default project xxx.
Maybe i am not using the good option or my command is incorrect?
Thanks for all your help
RE: imap emails are read but no issue created - Added by Jan Niggemann (redmine.org team member) over 11 years ago
If you write projet in your mail then it's not recognized, the keywords have to be in English, the values are localized.
I use this in eMails, note the German values:
Project: AAA Tracker: Fehler Category: BBB Status: Neu Priority: Hoch Assigned to: CCC Start date: 2013-06-17
RE: imap emails are read but no issue created - Added by jerome l over 11 years ago
thanks Jan for your answer,
It's a mistake in my post, in the email I use Project= yyyy
I notice that you wrote Project:
I have seen several documentation, including the official one here http://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails, where it's written Project=, maybe my problem is coming from here?
I am using version,
Environment: Redmine version 2.3.1.stable
Ruby version 1.9.3 (i486-linux)
Rails version 3.2.13
Environment production
Database aapter Mysql2
Could you confirm which one I must use for my version ?
RE: imap emails are read but no issue created - Added by jerome l over 11 years ago
does someone know if it's : or = that is correct for the allow_override attribute ?
RE: imap emails are read but no issue created - Added by jerome l over 11 years ago
Dear Jan
I have done a copy and paste of your attributes and it still doesnt work
Project: AAA
email body
issue created on project BBB
i have checked the project identifier it is ok.
here is my task, maybe you will find something, i am really stuck on this problem.
###
/usr/local/bin/rake -f /var/www/redmine/Rakefile redmine:email:receive_imap RAILS_ENV="production" host=mail.******.ch username=support2@******.org password=*** port=143 project=BBB allow_override=Project unknown_user=accept --trace
I just need that point working to put redmine on production, thanks for your time.
Best regards
RE: imap emails are read but no issue created - Added by jerome l over 11 years ago
Dear Jan,
problem was coming from the upper case in the attribute of my command.
the good one is allow_override=project and not Project
we can close this issue :)
thanks again
RE: imap emails are read but no issue created - Added by Jan Niggemann (redmine.org team member) over 11 years ago
Good to hear it's working now :-)
RE: imap emails are read but no issue created - Added by Thomas Godard over 11 years ago
Hello !
As my problem is quite the same as this one, I will explain my own problem here.
I am currently trying to create issues in Redmine using email. The e-mails are read but no issue is created.
My environment :
Redmine version : 2.3.1
Ruby version : 1.9.3
Rails version : 3.2.13
Server version : Apache/2.2.6(Debian)
MySQL version : 5.1.66-0+squeeze1(Debian)
Passenger version : 4.0.5
Here is my rake command.
root@redmine:/opt/redmine-2.3.1# rake redmine:email:receive_imap RAILS_ENV="production" host=myhost username="myusername" password="mypassword" project="sigram" tracker="Indefini" status="Nouveau" allow_override=project,tracker,priority,category,status
sigram is the project identifier. I have a tracker named Indefini and a status named Nouveau .
The mail adress I am currently testing is the mail adress of a Redmine Admin. He can create new issues.
I have tried several email patterns o check if one would work but none of them did :
______________
1:
project: sigram
tracker: Indefini
priority: Normal
status: Nouveau
subject: Email Test
description: Permet de vérifier si la configuration mail fonctionne.
2:
Project: sigram
Tracker: Indefini
Priority: Normal
Status: Nouveau
Subject: Email Test
Description: Permet de vérifier si la configuration mail fonctionne.
3:
Permet de vérifier si la configuration mail fonctionne.
Project: sigram
Tracker: Indefini
Priority: Normal
Status: Nouveau
Subject: Email Test
4:
Permet de vérifier si la configuration mail fonctionne.
Project: sigram
Tracker: Indefini
Priority: Normal
Status: Nouveau
______________
I also tried another rake command :
root@redmine:/opt/redmine-2.3.1# rake redmine:email:receive_imap RAILS_ENV="production" host=myhost username="myusername" password="mypassword" project=sigram tracker=Indefini status=Nouveau allow_override=project,tracker,priority,category,status
My apologize, I know that this is a problem that has been solved for many persons but I still can't fix it ... I've been trying to figure this out for 2 days and I really have no more options left than abusing of your time ...
Thank you very much.
RE: imap emails are read but no issue created - Added by jerome l over 11 years ago
hi Thomas,
I answer in english for the rest of the world even if I think you are french like me :)
I don't see mistake in your command, have you checked your production.log?
also if you add --trace at the end of your command you will have a description of the error, that will help you.
give us the output of that.
see you
RE: imap emails are read but no issue created - Added by Thomas Godard over 11 years ago
--trace doesn't show any error.
Therefore, I looked in the production.log and found a clue !
MailHandler: ignoring email from Redmine emission address [my_mail_address]
This is the problem.
I just tried to add the option : unknown_user=accept and still get the same problem ...
Would the problem be that I am actually sending the email to myself ?
RE: imap emails are read but no issue created - Added by jerome l over 11 years ago
Yes I had the same error I think, redmine is ignoring email from itself.
try create another adresse that for the sender that is different from the address who receives and let us know.
RE: imap emails are read but no issue created - Added by Thomas Godard over 11 years ago
My emails are still ignored by Redmine.
I have checked again my email address. The user sending the mail has the possibility to create new issues.
Edit :
During my previous tests, I had given to Redmine my email address to send mails. By giving to Redmine its own mail address, I do not have anymore problem.
Thank you for helping !
RE: imap emails are read but no issue created - Added by Daniel Drexlmaier over 5 years ago
Same Problem here, no solution
Problem U+1F642Slightly Smiling Face Unicode-Zeichen