Menu

EMail problem

Help
Marius
2008-04-07
2013-05-01
  • Marius

    Marius - 2008-04-07

    Hello

    I can't get the plugin to send emails. Log says:

    [07/04/2008 14:10:16]        *************************
    [07/04/2008 14:10:16]        Staring process for Revision 1923-1 [E:/Repository]
    [07/04/2008 14:10:17]        Configuration file deserialized
    [07/04/2008 14:10:17]        Commit Paths: /XXXXXXXXXX/Trunk/Source/
    [07/04/2008 14:10:17]        Checking for Folder Name Exclusions
    [07/04/2008 14:10:17]        Passed Folder Name Exclusion test.
    [07/04/2008 14:10:17]        Checking for File Type Exclusions
    [07/04/2008 14:10:17]        File Name Regex Exclusion found for '/UfrmMain.pas'
    [07/04/2008 14:10:17]        FileTypeExclusion: No ControlledActionType match found for U   XXXXXXXXXXX/Trunk/Source/UfrmMain.pas
    [07/04/2008 14:10:17]        Passed File Type Exclusion test.
    [07/04/2008 14:10:17]        Checking for FileType Requirements complete. Not Required.
    [07/04/2008 14:10:17]        Commit Regex Found: t
    [07/04/2008 14:10:17]        All Pre-commit checks passed.
    [07/04/2008 14:10:17]        *************************
    [07/04/2008 14:10:17]        Staring process for Revision 1924 [E:/Repository]
    [07/04/2008 14:10:18]        Configuration file deserialized
    [07/04/2008 14:10:19]        HTML Message Generated
    [07/04/2008 14:10:19]        Generating e-mail message
    [07/04/2008 14:10:19]        System.NullReferenceException: Object reference not set to an instance of an object.
       at SubversionNotify.Program.PostCommitProcessing(HTMLProcessor proc, subversionNotifyConfig cfg, String logFileName, String baseFolder)
       at SubversionNotify.Program..ctor(String repository, String revision, ProcessType prePost)
       at SubversionNotify.Program.Main(String[] args)
    [07/04/2008 14:10:19]        C:\Program Files\Subversion Notify\SubversionNotify.log
    Subversion Notify error.
    Please have your administrator check the log for details on how to correct the issue

    Config file below:

    <?xml version="1.0" standalone="yes"?>
    <subversionNotifyConfig xmlns="http://www.mckechney.com/SubversionNotifyConfig.xsd">
      <SVNConfig ExePath="C:\Program Files\Subversion\bin\svnlook.exe" />
        <MailServer Name="192.168.0.2" Username="" Password="" FromAddress="anonymous@xxxxx.co.uk" EMailSubjectTag="[SVN]"/>
        <ReproPathConfig controlledPaths="/">
          <MailTo EMailAddress="xxxxxxxx@xxxxxx.co.uk" EMailType="HTML" EMailSuppressionChar="~" CustomSubjectFormat="#user# - #fileNames#"/>
          <DefaultLogMessage Text="#user# has decided not to add a log message."/>
          <CommitRequirements FailureMessage="Please add a commit message">
            <CommitRequirement Description="Any Text" Regex="\w"/>
            <FolderNameExclusion FolderName="bin" FolderNameRegex="^bin$" FailureMessage="You cannot add bin folders to the repository." ControlledActionType="Add"/>
            <FileTypeExclusion FileExtension=".suo" FileNameRegex="\w" FailureMessage="You cannot add .suo files to the repository." ControlledActionType="Add"/>
          </CommitRequirements>
        </ReproPathConfig>
        <LockedPaths></LockedPaths>
    </subversionNotifyConfig>

    What am I missing?

    Thanks
    Marius

     
    • ollie stockley

      ollie stockley - 2008-04-07

      I found that I needed to set CommitterExclusions (even when I didn't really want to) so my version has the following lines at the end of each ReproPathConfig.

      <CommitterExclusions>
          <CommitterExclude SvnID="mmckechn" CommitterExclusionType="ProcessExecution"/>
      </CommitterExclusions>

      I'm unlikely to have Mike try to commit to my internal repository, so it won't cause me any problems :-)

      maybe this will work for you?

       
      • Marius

        Marius - 2008-04-07

        That fixes it

        Thanks :-)

         
        • mmckechney

          mmckechney - 2008-04-07

          Sorry about that and thanks to Ollie for providing the work around!
          I have corrected the issue and have committed a new version (v1.4.4.3) that now makes the <CommitterExclusions> element truly optional.

          You can grab this exe from here until I post a "real" release:
          http://svn-notify.svn.sourceforge.net/viewvc/\*checkout*/svn-notify/trunk/SubversionNotify/bin/Debug/SubversionNotify.exe?revision=15&pathrev=15

          Thanks and if you have any other issues or suggestions for new features, please don't hesitate to let me know and ask!
          Mike

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.