The email templates (and email subject lines) are fully customizeable in Malevich. When Malevich installs, default templates are copied to "%ProgramFiles(x86)%\Malevich Project\Malevich Code Review System\templates" directory (on a 64-bit machine; substitute ProgramFiles for ProgramFiles(x86) on a 32-bit OS).

Note: If you are deploying from your own build, the templates below are available in the source code section. http://malevich.codeplex.com/SourceControl/ListDownloadableCommits.aspx then click on the change set, expand "Malevich", then "notifier", then look at the txt files in that directory.

To customize, select the type of the templates you will use (HTML or text, you CAN mix and match), customize the right files, and copy them into the directory in your Malevich installation from where notifier runs (this would NOT be a directory under Program Files).

You can use the following macros in the files:
For subjects (Subjects.txt):
{CL} - change list number or shelf set name
{Reviewee} - alias of the reviewee
{Details} - abbreviated description of the change list
{Verdict} - the overall response to the review, LGTM, LGTM with minor tweaks, Needs work, etc. This is only set in the response email subject.

For email templates:
{MalevichId} - review ID in the Malevich database (as in the review URL: http://server/malevich/Default.aspx?cid=...)
{CL} - change list number or shelf set name
{Reviewee} - alias of the reviewee
{Reviewer} - alias of the reviewer
{Webserver} - hostname of the machine where Malevich is installed, useful for forming URL links (http://server/malevich/Default.aspx)
{WebRoot} - application root for the Malevich web site, useful for forming URL links (http://server/malevich/Default.aspx)
{Verdict} - the overall response to the review, LGTM, LGTM with minor tweaks, Needs work, etc. This is only set in the response email subject.
{Details} - description of the change list or review comments, depending on email template. These will be formatted appropriately for HTML or text template.

Last edited Jan 18, 2010 at 11:53 PM by SergeySolyanik, version 4

Comments

No comments yet.