Modify

Opened 2 years ago

#10168 new enhancement

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

Reported by: michelbriand@… Owned by: zitune
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)

Add Comment

Modify Ticket

Action
as new The owner will remain zitune.
Author


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

 
Note: See TracTickets for help on using tickets.