[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Enhancing mailer.py for email-based issue trackers

From: <Justin.Vallon_at_deshaw.com>
Date: Wed, 18 Nov 2009 17:44:26 -0500

We have an in-house issue tracker that accepts emails of the form project-issues_at_example.com with the subject 'Project#1234: .*', where Project#1234 is the issue number.

Attached is a patch that adds a search_logmsg property to the mailer groups.

Suppose you put "projecta#123" into your log message to relate back to the issue tracker, and that email to projecta-tracker_at_example.com with subject "projecta#123: whatever" gets attached to issue projecta#123. The following group would accomplish this:

[issuetracker]
search_logmsg = (?P<bugid>(?P<project>projecta|project|project)#\d+)
to_addr = %(project)s-tracker_at_example.com
commit_subject_prefix = %(bugid)s:
propchange_subject_prefix = %(bugid)s:

The search_logmsg matches against every occurrence in the log message. Thus, if the message is "fixed projecta#123 and projecta#124", then it will match twice (with two substitution groups), and send two emails.

Comments? Praise?

-- 
-Justin
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419733
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

Received on 2009-11-18 23:53:50 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.