Michelle,
Thank you! I don't really need to use email notification. I tried to comment
out sending email function from trac-post-commit-hook, still does not do
anything. Does the email function have to be there? I am pretty new on
programming. It is intimidating to work that way.
Thank you!
Lynda

On Thu, Jan 7, 2010 at 12:04 PM, Michelle Young <
[email protected]> wrote:

>  lynda wrote:
>
>> I can run trac-post-commit-hook by go to hooks directory, run command
>> like: Python trac-post-commit-hook -p C:/trac -r 83 , it updates my
>> ticket. However, it does not update my tickets if I use TSVN commit.
>> I
>> am using windows server 2008, trac with mod_wsgi using apache as
>> server. My trac version is 0.11.6, the trac-post-commit-hook copy is
>> for 0.11.6 also.  I have been reasearching the issue, but cannot find
>> any help on it.
>> Any help, ideas and suggestions will be greatly appreciated.
>> best Regards
>> Lynda
>>
>>
>>
> I had a similar problem with SVN under Win2008 Server.  I believe it is
> because the account that the service runs under is not allowed to send mail.
>  There are comments in the docs about the hooks not having access to the
> environment and variables, so I think it can't find something that the
> mailer needs, something that the command line finds thru the environment
> (path, etc.).
>
> I eventually solved the problem by writing a .net program to send the mail
> and then, in the hook,  launched a CMD to call the program  in a separate
> environment.
> This also gave me the flexibility to do some custom definitions, store them
> in SQL, and use them to customize the emails.
>
> You might also be able to fix it (or at least test the theory) by adding
> the environment definitions to your script, but it might break if the real
> environment changes later and the script is not changed to match.  I'm not a
> fan of that kind of maintenance.
>
> post-commit.cmd:
> start "snvemail" /SEPARATE e:\SvnHookScripts\PostCommitEmail.cmd %1 %2
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<trac-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Reply via email to