Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set X-Redmine-Project email header #61

Open
s-andy opened this issue Mar 9, 2018 · 3 comments
Open

Set X-Redmine-Project email header #61

s-andy opened this issue Mar 9, 2018 · 3 comments

Comments

@s-andy
Copy link

s-andy commented Mar 9, 2018

Redmine sets a couple of special X-Redmine- headers in native email messages. These headers can then be used by email clients to filter messages.

It would be great, if Mentions plugin did the same. Especially, I'm interested in X-Redmine-Project.

@teranex
Copy link

teranex commented Nov 8, 2018

I was also looking for the X-Redmine-Project header

@s-andy
Copy link
Author

s-andy commented Nov 8, 2018

@teranex, just for your information, I managed to add such header via monkey-patching, something like:

alias_method_chain :notify_mentioning, :redmine_headers
...
def notify_mentioning_with_redmine_headers(issue, journal, user)
    redmine_headers 'Project' => issue.project.identifier,
                    'Issue-Id' => issue.id
    notify_mentioning_without_redmine_headers(issue, journal, user)
end

@teranex
Copy link

teranex commented Nov 21, 2018

@s-andy thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants