ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Add email header for the type of message (Feature #104)

Added by Eric Davis at 2011-01-22 10:42 pm. Updated at 2011-02-11 07:20 am.

Status:Closed Start date:2011-01-22
Priority:Normal Due date:
Assignee:Felix Schäfer % Done:


Category:Mail Sending
Target version:1.1.0 — Bell
Remote issue URL: Affected version:


If there was a mail header for the type of message, it would make it easier to filter emails. Example:

  • X-ChiliProject-Type: Issue
  • X-ChiliProject-Type: Forum
  • X-ChiliProject-Type: Wiki
  • X-ChiliProject-Type: User

Associated revisions

Revision f35a9112
Added by Felix Schäfer at 2011-02-10 11:04 am

Add Type headers to outgoing emails. #104


Updated by Felix Schäfer at 2011-01-23 12:21 am

The Message-Id already has the object name in it in many cases, thus it's already possible, if not easy/convenient.

Updated by Eric Davis at 2011-01-24 08:57 pm

True but it will be hard to parse out in standard mail clients. My Rackspace email allows exact matches only.

Updated by Holger Just at 2011-01-24 09:01 pm

There are special headers for most (if not all) object types:
  • X-Redmine-Issue-Id
  • X-Redmine-Wiki-Page-Id
  • X-Redmine-Topic-Id

You could filter for the existence of these headers.

Updated by Felix Schäfer at 2011-02-01 10:49 pm

  • Status set to Open

Updated by Steven Risner at 2011-02-08 07:27 pm

Is this feature going to be related to

Updated by Felix Schäfer at 2011-02-08 08:56 pm

Steven Risner wrote:

Is this feature going to be related to

Both issues are not related: this issue is about adding additional headers to outgoing mail, the issue you reference is about incoming mails.

Updated by Thibaut Deloffre at 2011-02-09 10:05 am


I'm freshly new on chiliproject website (2 hours ago \o/) and I began to add header on some mailer methods.
I used redmine_headers method available in the mailer model like these examples:
  • redmine_headers 'Type' => 'Issue'
  • redmine_headers 'Type' => 'Forum'
  • redmine_headers 'Type' => 'Wiki'
  • redmine_headers 'Type' => 'User'

If you have any ideas or advices, tell me them ! :)

Thx !

Updated by Felix Schäfer at 2011-02-10 10:10 am

Ok, I've added them in

I haven't found any headers tested, so nothing on the testing side. I'll pull it in if I get an OK either from Eric or Holger.

  • Status changed from Open to Ready for review

Updated by Eric Davis at 2011-02-10 11:45 pm

Felix: looks good to me. Go ahead and pull it into the official master with git merge --no-ff.

  • Assignee changed from Eric Davis to Holger Just

Updated by Eric Davis at 2011-02-10 11:55 pm

Sorry Holger, I meant this for Felix.

  • Assignee changed from Holger Just to Felix Schäfer

Updated by Felix Schäfer at 2011-02-11 07:20 am

  • Status changed from Ready for review to Closed

Also available in: Atom PDF