Получение почты и создание тикетов в 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
Рекомендуем почитать
Expected kind of OpenSSL::SSL::SSLContext в Redmine

При установке нового redmine 2.3.0 и дальнейшей его конфигурации возникает ошибка при отправке почты: (Expected kind of OpenSSL::SSL::SSLContext)) Лечится эта Читать дальше...

Лечим кодировку при экспорте CSV в Redmine

Поставил недавно последний Redmine 2.x. Обнаружилось что при экспорте в формат CSV неверно отображаются русские символы. Поэтому в нем хочу Читать дальше...

Знаки вопроса в redmine

После установки свеженького redmine обнаружилась проблема с отображением русских символов. Вместо них были только знаки вопроса. Для решения данной проблемы Читать дальше...

Интеграция redmine с LDAP (Active Directory)

Процесс интеграции redmine с LDAP довольно прост. Состоит он из 2 этапов. Для начала создайте пользователя в своем домене, например Читать дальше...

Поделиться

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

  1. I just want to tell you that I’m new to weblog and truly liked you’re web-site. Probably I’m want to bookmark your site . You certainly have perfect posts. Kudos for sharing with us your web page.

  2. Aw, this was an actually great message. In suggestion I would like to put in composing such as this in addition? requiring time and also real initiative to make a very good article? however what can I say? I put things off alot and also never seem to obtain something done.

  3. We still cannot quite believe I would come to be those types of checking important points entirely on your webblog. My children i are sincerely thankful for ones generosity also giving me possibility pursue our chosen profession path. Information info I acquired of the web-site.

  4. When I originally commented I clicked the -Inform me when new remarks are added- checkbox as well as currently each time a comment is included I obtain 4 emails with the very same remark. Is there any way you can remove me from that service? Thanks!

  5. My spouse and I absolutely love your blog and find a lot of your post’s to be exactly
    I’m looking for. Do you offer guest writers to write content in your case?
    I wouldn’t mind composing a post or elaborating on most of the subjects you write about here.

    Again, awesome web site!

  6. Great blog post. I learn something more tough on different blog sites daily. It will certainly constantly be promoting to review content from other writers and practice a something from their shop. I?d like to use some with the material on my blog whether you don?t mind. Natually I?ll give you a link on your internet blog site. Many thanks for sharing.

  7. I was suggested this web site by my cousin. I am now not positive whether this publish is written by
    means of him as no one else recognise such unique
    about my difficulty. You’re amazing! Thank you!

  8. Hmm is anyone else having problems with the pictures on this blog loading?
    I’m trying to find out if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  9. I was pretty pleased to uncover this page. I need to to thank you for your time due to this fantastic read!! I definitely savored every part of it and I have you book marked to look at new information in your site.

  10. We’re a gaggle of volunteers and starting a new scheme in our community.

    Your website provided us with helpful info to work on. You have performed an impressive activity
    and our entire group will probably be thankful to you.

  11. Woah! I’m really enjoying the template/theme of this site.

    It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between usability and appearance.
    I must say that you’ve done a amazing job with this.
    Additionally, the blog loads extremely fast for me on Internet
    explorer. Excellent Blog!

  12. After research a few of the blog posts on your website now, as well as I absolutely like your means of blog writing. I bookmarked it to my book marking web site list and will certainly be examining back soon. Pls have a look at my internet site also and let me know what you believe.

  13. Greetings! This is my first visit to your blog! We are a group of volunteers and starting a new project in a community in the same niche.
    Your blog provided us valuable information to work on. You have done a wonderful
    job!

  14. An impressive share, I just offered this onto a coworker who was doing a little evaluation on this. And he in fact acquired me morning meal due to the fact that I discovered it for him. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for investing the moment to review this, I really feel highly about it as well as enjoy reading more on this subject. Ideally, as you end up being know-how, would certainly you mind upgrading your blog site with more details? It is extremely useful for me. Large thumb up for this post!

  15. I found your blog website on google and also examine a few of your early messages. Remain to keep up the excellent operate. I simply extra up your RSS feed to my MSN Information Visitor. Seeking onward to finding out more from you later on!?

  16. This is the best blog for any individual who wishes to discover this subject. You realize so much its almost hard to say with you (not that I really would want?HaHa). You most definitely placed a brand-new spin on a topic thats been written about for many years. Terrific stuff, just excellent!

  17. I’m impressed, I must say. Rarely do I encounter a blog that’s equally educative and amusing, and let me tell you, you’ve hit the nail on the head. The problem is an issue that not enough people are speaking intelligently about. I’m very happy that I found this during my hunt for something relating to this.

  18. Unquestionably believe that which you said.
    Your favorite reason appeared to be on the internet the easiest thing
    to be aware of. I say to you, I certainly get annoyed
    while people think about worries that they plainly do not know
    about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people can take a
    signal. Will likely be back to get more. Thanks

  19. Do you have a spam issue on this blog; I also am a blogger,
    and I was curious about your situation; many of us have created some nice practices and
    we are looking to trade strategies with others,
    why not shoot me an email if interested.

  20. You are so interesting! I don’t believe I’ve read something like that before.
    So good to find somebody with a few genuine thoughts on this subject matter.
    Really.. many thanks for starting this up. This web site is something that’s needed on the internet,
    someone with a bit of originality!

  21. Can I just say what a relief to locate somebody who really understands what theyre talking about on the web. You definitely recognize just how to bring an issue to light and also make it crucial. More individuals require to read this and comprehend this side of the tale. I angle believe youre not a lot more preferred because you absolutely have the present.

  22. I?m amazed, I must claim. Really rarely do I come across a blog that?s both enlightening and also amusing, and let me inform you, you have actually struck the nail on the head. Your idea is superior; the problem is something that insufficient individuals are talking intelligently around. I am really happy that I came across this in my search for something relating to this.

  23. I was curious if you ever considered changing the
    layout of your website? Its very well written; I love what youve
    got to say. But maybe you could a little more in the way of content
    so people could connect with it better. Youve got an awful lot of text for only having one or 2 images.
    Maybe you could space it out better?

  24. The following time I read a blog site, I really hope that it doesn’t dissatisfy me as long as this. I mean, I understand it was my selection to read, however I really assumed youd have something intriguing to claim. All I listen to is a number of grumbling about something that you might repair if you werent also hectic searching for focus.

  25. Nice article. I discover something more challenging on various blogs daily. It will always be stimulating to review material from other writers and also exercise a little something from their shop. I?d prefer to use some with the material on my blog site whether you don?t mind. Natually I?ll give you a web link on your web blog. Thanks for sharing.

  26. An impressive share, I just offered this onto a colleague that was doing a little analysis on this. And also he as a matter of fact bought me morning meal due to the fact that I found it for him. smile. So let me reword that: Thnx for the reward! But yeah Thnkx for spending the moment to discuss this, I feel highly concerning it as well as enjoy reading more on this topic. When possible, as you become proficiency, would you mind updating your blog with more details? It is very helpful for me. Large thumb up for this blog post!

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

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