Menu

Unable to generate email

Help
jlavoy
2008-03-19
2013-05-01
  • jlavoy

    jlavoy - 2008-03-19

    Hello,

    I was wondering if someone might be able to tell me what I'm doing wrong; set up seems pretty easy, but I'm unable to get Notify working.

    What I'm trying to do: Set up email notification on post-commit.
    Background Information:
    1. I have verified Subversion is configured correctly and working (without Hooks).
    2. I've verified that the SMTP server works through another application that uses it and have also run tests through Telnet services (it does not require a username & password) 

    Here's the email portion of my configuration file (I have replaced personal information)

        <SVNConfig ExePath="C:\Program Files\Subversion\bin\svnlook.exe" />
        <MailServer Name="smtp.test.com"
                    FromAddress="from@test.com"
                    Username=""
                    Password="
                    />

        <ReproPathConfig controlledPaths="/">
            <MailTo EMailAddress="myEmail@test.com"  EMailType="HTML" EMailSuppressionChar="~"/>

    So the scenario I've been running through is a simple commit of a change in a text file.  Without any hooks, the commit works perfectly (using Tortoise).  However, when the hook is set up, the commit takes, but the status window (Tortoise) just sits there saying "Sending content" and never completes (I've let it run for a good long time too).  I've checked my SVN Notify log files and this is what I see everytime.

    [3/18/2008 6:26:05 PM]        *************************
    [3/18/2008 6:26:05 PM]        Staring process for Revision 10 [E:/SVN/PMIS]
    [3/18/2008 6:26:05 PM]        Configuration file deserialized
    [3/18/2008 6:26:06 PM]        HTML Message Generated
    [3/18/2008 6:26:06 PM]        Generating e-mail message

    It never seems to get past the "Generating e-mail message" step, and I can't figure out why!  I've checked all the other posts and it doesn't seem like anyone has this problem.  I'd really love to use this program as it seems very handy, please help!  Thanks!

     
    • mmckechney

      mmckechney - 2008-03-19

      Jack - can you send me your entire configuration file (with the personal information removed). That will help me diagnosing where the issue is. Please send it to me at my e-mail address if you don't feel comfortable posting it on the forum.

      Thanks,
      Mike

       
    • jlavoy

      jlavoy - 2008-03-19

      Mike,

      Thanks for the quick reply, here is my full configuration file.  The rest of the file should contain the default settings.

      <?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="smtp.test.com"
                      FromAddress="SVN@test.com"
                      Username=""
                      Password="
                      />
          <ReproPathConfig controlledPaths="/">
              <MailTo EMailAddress="myEmail@test.com"  EMailType="HTML" EMailSuppressionChar="~"/>
            <Execute Application="notepad.exe"/>

            <DefaultLogMessage Text="#user# has decided not to add a log message. Don't worry, severe punishment will be administered in short order."/>
            <CommitRequirements FailureMessage="Please add a commit message">
               <CommitRequirement Description="Any Text" Regex="\w"/>
               <!--<FolderNameExclusion  FolderName="Process" FolderNameRegex="\w"  FailureMessage="Failed on AddDelete" ControlledActionType="AddDelete"/> -->
               <FileTypeExclusion   FileNameRegex="\w" FailureMessage="Failed on AddDelete file type exclusion" ControlledActionType="AddDelete"/>
               <FileTypeTagCheck   FileExtension=".txt"  FailureMessage="Failed on .txt AddDelete tag regex" ControlledActionType="AddDelete" Regex="\[\]"/>
            </CommitRequirements>
            <CommitterExclusions>
               <CommitterExclude SvnID="mmckechn" CommitterExclusionType="ProcessExecution"/>
            </CommitterExclusions>
          </ReproPathConfig>
         
          <!--<LockedPaths>
          </LockedPaths>-->

          <PrePropChangeRequirements FailureMessage="A revision comment may only be changed if it includes a Change Request number. Please add [CR ###] to the changed message.">
              <PrePropChangeRequirement Description="Bug Number" Regex="\[c?r? ?#?([0-9]+(?:\s*,?\s*[0-9]+)*)\]" IsBugMatch="true"/>
          </PrePropChangeRequirements>

      </subversionNotifyConfig>

       
    • mmckechney

      mmckechney - 2008-03-19

      I think I see the problem. It looks like I left an element in my sample configuration file that is causing the issue. The ExecuteApplication element in the config file will open an instance of notepad on the server side and won't continue until that instance is closed (this is great for when I'm testing but not so good if it finds it's way into a "production" configuration.) Try deleting this element and you should be up and running. Sorry about that and I'll take that out if the release package when I get the chance.
      Mike

       
    • jlavoy

      jlavoy - 2008-03-19

      Mike,

      That did it, thank you for the quick responses, I really appreciate it.

      Regards,

      Jack

       

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.