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

read project from email subject #1

Open
tofi86 opened this issue Aug 28, 2014 · 1 comment
Open

read project from email subject #1

tofi86 opened this issue Aug 28, 2014 · 1 comment

Comments

@tofi86
Copy link
Contributor

tofi86 commented Aug 28, 2014

would it be possible to use the email subject to identify the project the mail should be added to?
this would be more useful than just one project per user...

@markwhitfeld
Copy link
Owner

This would definitely be possible. This is a very simple plugin that just makes a small patch to the mail handler where it decides which project to use for the email.
See (in this project): /lib/redmine_incoming_emails/patches/mail_handler_patch.rb
The intent of the plugin is to allow for flexibility of the choice of project on a per user basis.
So if you would like to contribute then you can make the changes and submit a pull request.

I would say that the best way to enable the feature you suggested would be to add an item to the per user drop down list on the configuration screen that says something like '(first word in subject line)' or '(in subject line)'. If this option is selected then, in the mail handler, you could check for this value and inspect the subject line to get the project name. I would also say that there should be some validation here with a fallback to the default project if a valid project could not be determined from the subject line.

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