Modify

Opened 12 years ago

#10168 new enhancement

mail2trac: accept any subject with a ticket number in it (update feature)

Reported by: michelbriand@… Owned by: Olivier ANDRE
Priority: normal Component: MailToTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Hello,

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'.

Best regards, Michel

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Olivier ANDRE.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.