Project

General

Profile

Actions

Patch #1616

open

Allow email to create and reply to forum messages

Added by Joshua Hoover over 15 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
2008-07-10
Due date:
% Done:

0%

Estimated time:

Description

Summary

This is a patch for #277 that provides the ability to send messages to forums via email. This gives Redmine a mailing list like capability by utilizing the work done in #1110 (Allow email to create issue or add comment), which has been available since r1572. By enabling this functionality users can create new and reply to existing forum messages that will be sent out via email to all those who are watching that forum.

Configuration

There are two areas of configuration for this feature. One is how you get emails into Redmine and the other is an optional configuration to set a different emission email address specifically for forum emails.

Receiving Forum Message Emails for Redmine Processing

In order to receive emails into Redmine the documentation found here should be used. This documentation covers specific settings for creating issues within Redmine. The only issue attribute that applies to this patch is the project attribute. If you set the project attribute. I have done my functional testing using the IMAP setup. The rake command looks something like this:

rake redmine:email:receive_imap host=imap.domain.com port=XXX ssl=true username=username@domain.com password=password_here RAILS_ENV=_production_

Using the IMAP setup, you must schedule the rake command to run on a regular basis using cron or another job scheduling mechanism.

Forum Emission Email Address

If you want to use a different reply-to email address for forum messages than you use for other emails sent from Redmine, then you'll need to do the following:

  1. Login to your Redmine instance as an Administrator
  2. Click the Administration link at the top of the page
  3. Click on the Settings link
  4. Click on the Email Notifications tab
  5. Enter the email address for forum emails in the Forum emission email address field
    • This email address should go to the email account receiving forum emails (configured above in the Receiving Forum Message Emails for Redmine Processing section)
  6. Click the Save button

User Documentation

The following describes how to make use of the email to forum functionality.

How to Create a New Forum Message via Email

In order to create a new forum message, you simply address an email to the email address specified in either the Adminitration->Settings->Email Notifications Forum emission email address field (if populated) or the Emission email address (if the the Forum emission email address field is not populated). The subject of the email should be in the format of:

[Project Name - Forum Name] Forum message subject goes here

The format of the email body is not important. The script that processes the forum emails is setup to determine the project and forum names based on the email subject.

How to Reply to a Forum Message via Email

This is pretty simple. When you receive an email of a forum message you simply reply to the message and write your reply in the body of the email. One important thing to note is that you SHOULD NOT change the subject line if you want the email to be recognized as a reply to an existing forum message. The script that processes the forum emails is setup to determine the original forum message being replied to by the portion of the subject that follows the square brackets.

Receive Forum Message Emails in Your Email Inbox

In case it's not clear how you receive forum messages, I'm adding that info here. The best way to subscribe to receive emails for a particular forum is to:

  1. Click on the Forums tab in Redmine
  2. Click on the name of the forum you want to subscribe to
  3. Click on the Watch link so that the star icon turns yellow

You can also subscribe to all forums (and all other Redmine email notifications) by clicking on the My account link in the upper right hand of the page and then select For any event on all my projects from the drop down menu under the Email notifications section.


Files


Related issues

Related to Redmine - Defect #7790: wrong assigning via email created messageClosed2011-03-05

Actions
Related to Redmine - Feature #15141: Incoming emails without redmine subject line are posted as a new messageNew

Actions
Related to Redmine - Feature #16006: Include attachments in forum post notificationsClosedGo MAEDA

Actions
Actions #1

Updated by Joshua Hoover over 15 years ago

My initial diff didn't have the test fixtures needed to run the unit tests.

Actions #2

Updated by Jean-Philippe Lang over 15 years ago

  • Target version deleted (0.8)
Actions #3

Updated by Joshua Hoover over 15 years ago

I've had this patch running using IMAP for about a 35 user instance of Redmine without problems. Any chance this gets into Redmine in the future? :)

Actions #4

Updated by Brad Schick about 15 years ago

Would be nice to have this. Seems rather surprising that Redmine supports email integration for issues, but not for forums since forums integration would appear simpler.

Actions #5

Updated by Andreas Huggel about 15 years ago

+1 for this, I think this is needed to complete #1110: Currently, with email for issues enabled, if a user replies to a forum post, the email ends up creating a new issue. I'll wait for this feature before turning on any email support.

Besides, at least in my project, there is more traffic in the forum than the issue tracker and of the 270 users some prefer a forum and others, especially people who are involved in several projects, prefer a mailing-list interface. I'd like to make it as easy as possible for both camps to contribute.

Actions #6

Updated by Andreas Huggel about 15 years ago

Just to stress again that this is a real requirement, please see: http://uk.groups.yahoo.com/group/exiv2/message/1501

After announcing the intention to change, I am now finding myself justifying the switch from a Yahoo group to a forum. Those who are challenging the decision are an important user and a key contributor.

There has been no feedback from the project team here since Jean-Philippe removed this issue from the 0.8 roadmap. It would be good to know what the plan is for this issue. Is there any non-obvious constraint that's holding this back?

Actions #7

Updated by Jerome Vanthournout about 15 years ago

+1

Actions #8

Updated by Eric Davis about 15 years ago

  • % Done changed from 100 to 0

Andreas Huggel wrote:

There has been no feedback from the project team here since Jean-Philippe removed this issue from the 0.8 roadmap. It would be good to know what the plan is for this issue. Is there any non-obvious constraint that's holding this back?

I"m sorry if there wasn't a reason let when it was removed from 0.8. We dropped a bunch of features because we wanted to get 0.8 out in 2008 and it was accumulating too many features and the release date kept slipping. I haven't checked the patch but I think this feature could be added to 0.9. My personal goals with 0.9 is adding in better automation and integration with external tools and this is right in line with that goal.

Actions #9

Updated by Jean-Philippe Lang about 15 years ago

r2289 adds ability to reply to forum messages. The subject of the reply can be changed since the application will use the In-Reply-To and References headers to determine the message that the email replies to.

Concerning message creation via email, I think that having to use the syntax [Project Name - Forum Name] in the email subject can be cumbersome. What about assigning an (optional) email address to each forum? This way, users would just have to email to this address to post a message.

Actions #10

Updated by Joshua Hoover about 15 years ago

Jean-Philippe,

I agree that forcing the syntax of [Project Name - Forum Name] in the email subject is cumbersome. The issue I ran into with using "References" headers was that I couldn't seem to reliably get them to stay intact when replying via clients like MS Outlook. If this technique works then that's definitely the way to go.

Creating an email address for each forum is probably the safest and most user friendly way to handle things. However, if you setup a lot of forums across projects, there is the overhead of (manually and separately from setting up the forum in Redmine) setting up all those different email inboxes.

Great work on all of this!

Actions #11

Updated by Arnaud Martel about 15 years ago

Jean-Philippe Lang wrote:

Concerning message creation via email, I think that having to use the syntax [Project Name - Forum Name] in the email subject can be cumbersome. What about assigning an (optional) email address to each forum? This way, users would just have to email to this address to post a message.

First, many thanks for redmine. It's really a very nice application and I'm using it everyday.
I'm working in a company where it's not very easy to create email addresses. Today, I have about 50 projects using Redmine and at least 2 forums per project. So, having an email address for each forum would be very very difficult for me... What I like in this patch (and I'm using it): I can let users manage their own projects, without having to create anything (except project itself and the associated repository). From my point of view, it's very flexible this way. Another good solution is to allow the 2 options (patch AND email address)... ;-)

Arnaud

Actions #12

Updated by Andreas Huggel about 15 years ago

Concerning message creation via email, I think that having to use the syntax [Project Name - Forum Name] in the email subject can be cumbersome. What about assigning an (optional) email address to each forum? This way, users would just have to email to this address to post a message.

Thanks for looking into this. I support the idea of having an email address for each forum, that will make posting very straightforward.

Actions #13

Updated by Andreas Huggel about 15 years ago

Will an anonymous user be able to post to the forums using these email addresses? If that should be possible at all, maybe an additional permission to enable anonymous posting by email is required (disabled by default).

Actions #14

Updated by Jean-Philippe Lang about 15 years ago

The issue I ran into with using "References" headers was that I couldn't seem to reliably get them to stay intact when replying via clients like MS Outlook.

Indeed. I've added subject parsing too in r2294 (topic id was added to the notification subject to identify the topic without ambiguity).

Actions #15

Updated by Hiro SHINOHARA over 14 years ago

Is this work with a recent version? It wasn't on my Redmine 0.8.5.

I fixed some part of code to use this cool patch.

  • <a href="http://www.messaliberty.com/2009/11/how-to-use-email-to-create-and-reply-to-forums-on-redmine/">How To Use Email To Create And Reply To Forums on Redmine « messaliberty</a>
Actions #16

Updated by Andreas Huggel over 14 years ago

Any chance this can make it into 0.9?
Thanks

Actions #17

Updated by Andreas Huggel almost 14 years ago

Would be great to see this in 1.0!
Thanks

Actions #18

Updated by Dave Clements about 13 years ago

+1

Actions #19

Updated by Phil Garcia about 13 years ago

+2

Actions #20

Updated by Ladislav Nesnera about 13 years ago

Hie
We would like to migrate our environment to Redmine completely. Forum seems have ability to substitute our current email conferences. Can you update this patch to the latest stable (1.x), please. Thanks a lot

Actions #21

Updated by Hans Bangkok almost 13 years ago

+1

I agree it's important to encourage participation by those who are used to mail-lists - they're often more technically proficient than those who prefer forums.

Actions #22

Updated by Stefan Bellus almost 13 years ago

+1!
Has somebody patch for 1.2.0?
I want to use it to announce new release for all that subscribe for this information as watchers (not only to project members).
My project is library that is used by other teams. I don't know who use it. I have to make possible that all teams that uses my library can get information about new releases/important bug-fixes. I think forum can be right solution.
I will release my library on Hudson and let hudson to send mail to add new topic in forum "Releases".

Actions #23

Updated by Stefan Bellus almost 13 years ago

I made my first patch on linux for redmine.
It is my first code in rubby, and I am very sorry that it is not under test. I have only gedit :).
Patch "forum_message_creation_by_mail.patch" adds forum message creation by email (be sure that user in "from email property" has permission to edit forums) to http://redmine.rubyforge.svn/tags/1.1.2/app/models/mail_handler.rb.
to patch mail_handler.rb go to redmine directory and execute command
patch -p0 < forum_message_creation_by_mail.patch

Actions #24

Updated by Robert Hailey over 12 years ago

At least half of this ticket seems to be done, because I just tried replying to a forum post on 1.1.3 and it seems to work. ???

Actions #25

Updated by Mischa The Evil over 12 years ago

  • Category changed from Forums to Email receiving
Actions #26

Updated by Christian Burger over 10 years ago

I have written a patch which allows to submit new forum messages via e-mail for Redmine version 2.3.2. No testing is implemented and the format is slightly extended: You don't have to say which project the forum is part of:

[Project - Forum] New message subject
and
[Forum] New message subject

are both valid formats. In the latter case the corresponding project is either taken from the default setting or as in my case set through MailhandlerSubAddress.

And if someone is set CC or TO in the mail, he/she is added to the watchers' list. This happens without any regard for permissions; meaning there is no "allowed to add watcher to forum message" permission. Anyone who can post forum messages can do it.

I would implement tests, but I have doubts that my patch will ever find its way into the main repository. I know: Without tests it will never happen. But it seems to me, that the method of how to recognize new forum posts is a bit unclear.

I like the mail address tag idea of MailhandlerSubAddress: you could directly address a forum with an identifier "abc" which is part of a project with identifer "def" via .

Of course, mail address tags are not supported by every MTA and at least one uses a "-" as a separator. So, not very platform independent. But as a fallback you could put the suffix
"def+forum+abc" from ""
into the subject like this
"[def+forum+abc] some new topic"

Actions #27

Updated by T. Hauptman about 10 years ago

I also needed this functionality. I was able to emulate a mailing list using #15141 with specific addresses going to different boards.

I later implemented boards sending out on different addresses, specified in config/configuration.yml

Actions #28

Updated by Toshi MARUYAMA about 10 years ago

  • Related to Feature #15141: Incoming emails without redmine subject line are posted as a new message added
Actions #29

Updated by Toshi MARUYAMA about 10 years ago

  • Related to Feature #16006: Include attachments in forum post notifications added
Actions #30

Updated by Peter L. almost 10 years ago

Please add this!!! Thanks!!

Actions #31

Updated by Javier Sevilla almost 6 years ago

Peter L. wrote:

Please add this!!! Thanks!!

Is this functionality created? I reply all the forum messages and appear without problem, but I can't create a new topic/message in the forum.
I try to send a message with all the subject combinations described in this thread with no result, allway generates a Bug issue....

Please, help me.

Actions

Also available in: Atom PDF