Ben Lowery sent me changes for the SvnPostCommitHook application. From his email: Here's my version of the code. I updated it to be able to use DotNetOpenMail, as I sometimes have problems using CDO through System.Web.Mail. I also updated it to support a pluggable mail formatter, with a text and an HTML formatter in the current code. At the moment, it's up to the mailer to decide how mail is sent, but that could be easily pulled out into a config file at some point, as could the format of the html or the css that I'm using.
Change log details:
- Added abstract base for mailing
- Moved System.Web.Mail based mailer to CdoMailer
- Added option to send mail with DotNetOpenMail
- Added MessageFormatter hierarchy for message formatting
- Added HtmlMessageFormatter for html change messages
- Moved text message formatting into TextMessageFormatter
- Added package batch script to rename exe to post-commit.exe
- Added Library directory for references
- Added log4net to the Library directory
- Made SilentCmdLineApplication::Execute simpler
- Moved parsing logic into SvnLookOutputParser
SvnPostCommitHookv1.4.zip (417.83 KB)