title: How to conditionally send svn commit email, based on commit message keywords?
body: <p>I've got <a href="http://www.visualsvn.com/server/" rel="nofollow noreferrer">VisualSVN</a> running with <a href="http://search.cpan.org/~dwheeler/SVN-Notify-2.79/bin/svnnotify" rel="nofollow noreferrer">svnnotify</a> sending notification email via post-commit (the common setup), but I'd like to <strong>not send email when certain keywords are included in the commit message</strong>, such as "#noemail" or something similar.</p>
  
  <p>Anyone have an example of what I can add to my post-commit hook to look at the commit message and prevent email from being sent if certain keywords exist?</p>
  
  <p>Thanks!</p>
  
  <hr>
  
  <p>FYI, here's an example of my current post-commit content:</p>
  
  <pre><code>set REPOS=%1
  set REV=%2
  set EMAILADDRESSES="example@example.com"
  set OS=Windows_NT
  set PATH=%PATH%;C:\Program Files\VisualSVN Server\bin\;C:\Perl\site\bin;C:\Perl\bin;
  
  svnnotify --repos-path %REPOS% --revision %REV% --to %EMAILADDRESSES% -f svn@example.com --smtp smtp.example.com --subject-prefix "SVN - Rev: %%d - "
  </code></pre>