https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292011-04-30T11:40:59ZRedmineRedmine - Patch #8257: Proposal for supporting project-specific wildcard addresses in default mail handlerhttps://www.redmine.org/issues/8257?journal_id=285202011-04-30T11:40:59ZMarcus Ilgner
<ul></ul><p>Ok, improved regex with support for specifing tracker as well as project (as long as one doesn't use dashes in the project name, I suppose...)<br /><pre>
123a124,127
> m = email.match(/^To: [^-]+-([^-]+)(?:-([\w]+))?@/)
> issue_attributes['project'] = m[1] unless m.nil?
> issue_attributes['tracker'] = m[2] unless m.nil? || m[2].nil?
>
</pre></p> Redmine - Patch #8257: Proposal for supporting project-specific wildcard addresses in default mail handlerhttps://www.redmine.org/issues/8257?journal_id=285862011-05-03T18:03:37Zjohann sebatian
<ul><li><strong>Assignee</strong> changed from <i>Marcus Ilgner</i> to <i>johann sebatian</i></li></ul> Redmine - Patch #8257: Proposal for supporting project-specific wildcard addresses in default mail handlerhttps://www.redmine.org/issues/8257?journal_id=872952018-09-15T07:14:18ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>You can select a project by subaddress since Redmine 3.2. It means that you can use email addresses like this: <code>foo+projectid@redmine.example.com</code>. See <a class="issue tracker-3 status-5 priority-4 priority-default closed" title="Patch: MailHandler: Select project by subaddress (redmine+project@example.com) (Closed)" href="https://www.redmine.org/issues/20732">#20732</a> and <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/RedmineReceivingEmails#Target-Project-from-Email-Sub-Address">RedmineReceivingEmails</a> for details.</p> Redmine - Patch #8257: Proposal for supporting project-specific wildcard addresses in default mail handlerhttps://www.redmine.org/issues/8257?journal_id=872962018-09-15T07:14:38ZGo MAEDA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-5 priority-4 priority-default closed" href="/issues/20732">Patch #20732</a>: MailHandler: Select project by subaddress (redmine+project@example.com)</i> added</li></ul>