Получение почты и создание тикетов в Redmine

Появилась недавно небольшая задачка, которая позволяет создавать / отвечать на тикеты в Redmine через email. Получение почты можно организовать как по протоколу pop3, так и через IMAP. В моем случае доступ к почтовому серверу осуществлялся через IMAP Google Apps.

Не будем вдаваться в детали, а сразу перейдем к команде на получение почты. И установки ее в планировщике Linux cron. Итак, откроем консоль и попробуем дать команду от пользователя redmine(или root, главное чтобы права были)

rake -f /usr/local/share/redmine/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com [email protected] password=PwdToEmail ssl=SSL port=993 project=mail allow_override=tracker,priority,project

Если никаких ошибок не вывалилось, то добавим в планировщик выполнение команды на получение почты.  Открываем /etc/crontab и прописываем:

*  *    * * *   root    rake -f /usr/local/share/redmine/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com [email protected] password=YOUR_PASSWORD ssl=SSL port=993 project=mail allow_override=tracker,priority,project

Сохраняем файл. У меня redmine настроен так, что уведомления приходят от [email protected], поэтому отвечая на письмо с новым или измененным тикетом, я получаю автоматический ответ в redmine.

В redmine я создал новый проект “Почта” с Идентификатором mail, и если явно не указать в письме project, то задача попадает в этот проект.

Пример письма:

This is a new issue that overrides a few attributes
[...]
Project: foo
Tracker: Bug
Priority: Urgent
Status: Resolved

31 комментарий к “Получение почты и создание тикетов в Redmine

  1. Aw, this was an incredibly good post. Taking the time and actual effort to create a great article… but what can I say… I hesitate a whole lot and never manage to get nearly anything done.

  2. Can I just say what an alleviation to locate someone who really recognizes what theyre talking about on the net. You absolutely understand exactly how to bring an issue to light as well as make it essential. More people require to read this and also understand this side of the tale. I cant think youre not more prominent since you definitely have the gift.

  3. The following time I check out a blog, I really hope that it doesn’t dissatisfy me as long as this one. I suggest, I recognize it was my selection to review, but I in fact thought youd have something interesting to say. All I hear is a number of whining about something that you could repair if you werent also active searching for attention.

  4. Hey terrific website! Does running a blog such as this require a great deal of work?
    I have no expertise in computer programming however I was hoping to
    start my own blog soon. Anyhow, if you have any suggestions or tips for new blog owners please share.
    I know this is off subject nevertheless I simply needed to ask.
    Cheers!

  5. Hi there just wanted to give you a brief heads up and let you know
    a few of the pictures aren’t loading correctly. I’m not sure
    why but I think its a linking issue. I’ve tried
    it in two different browsers and both show the
    same outcome.

  6. Good message. I find out something a lot more tough on various blog sites everyday. It will certainly always be stimulating to check out web content from other writers and also practice a little something from their shop. I?d choose to use some with the content on my blog site whether you don?t mind. Natually I?ll provide you a link on your internet blog site. Many thanks for sharing.

  7. Howdy, I believe your site could possibly be having web browser compatibility
    problems. When I look at your web site in Safari, it looks fine but when opening in Internet Explorer,
    it’s got some overlapping issues. I simply wanted to provide you with a quick heads up!
    Aside from that, excellent site!

  8. I just like the helpful information you supply on your articles.
    I’ll bookmark your weblog and take a look at again here
    regularly. I am reasonably certain I’ll be told lots of new stuff right here!
    Good luck for the following!

  9. Fantastic goods from you, man. I’ve understand your stuff previous
    to and you’re just extremely great. I actually like what you’ve acquired here, really like what
    you are saying and the way in which you say it.
    You make it entertaining and you still take care of to keep it smart.
    I cant wait to read much more from you. This is actually a terrific site.

  10. Hey there! I simply would love to provide a huge thumbs up for the fantastic info you have here on this blog post. I will certainly be returning to your blog for even more quickly.

  11. An excellent share, I simply provided this onto an associate who was doing a little analysis on this. As well as he actually bought me breakfast since I found it for him. smile. So let me reword that: Thnx for the treat! Yet yeah Thnkx for spending the moment to discuss this, I really feel highly concerning it as well as enjoy learning more on this subject. If possible, as you come to be proficiency, would certainly you mind updating your blog site with even more information? It is extremely valuable for me. Huge thumb up for this blog post!

  12. I was extremely delighted to discover this web-site. I wanted to thanks for your time for this remarkable read!! I certainly delighting in every little bit of it and I have you bookmarked to look into new stuff you post.

Оставить ответ

Ваш адрес email не будет опубликован. Обязательные поля помечены *