Opened 2 years ago
mail2trac: accept any subject with a ticket number in it (update feature)
|Reported by:||michelbriand@…||Owned by:||zitune|
I'd like to have mail2trac update a ticket when the subject contains a
ticket number, not only when the subject matches the ticket complete
subject (as constructed with 'ticket_subject_template' and
'smtp_subject_prefix' in email2ticket.py around line 300).
So I suggest a regex like this :
subject_re = '.*#([0-9]+).*'
It will accept any email with a subject containing a ticket number,
whatever the remaining of the subject.
I find this behavior handy because team members can now update a
ticket easily : they just have to know the ticket number.
I tested that on my local trac. Tell me if you need a patch against SVN
to integrate this feature ?
Moreover you may want to have this behavior configurable. I suggest a
setting like 'accept_simple_subject'.