[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: Thu, 19 Nov 2009 15:47:40 -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 projectb#345", then it will match twice (with two substitution groups), and send two emails.

Comments? Praise?

-- 
-Justin
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2420301

Received on 2009-11-19 22:23:15 CET

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

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