Olemis,
Than you very much!
SVN:Notify is a perl module. Anyway, since email is sent by trac, I
guess I don't need it. The trac email notification works fine. When I
change a ticket status through the trac web site, it sents out ticket.
 the post-commit hook needs to be added to the repos hook script file
(first check point)
Do you mean the repository hooks folder? yes, all files post-
commit.bat, trac-commit-post-hook.cmd, trac-commit-post-hook are
located in my repository/hooks directory

I don't have a mailer.py or mailer.conf in any where. I do have a
mailerdaemon.py at  C:\Python26\ Tools\mailerdaemon.py
at my trac-post-commit-hook.cmd, my line of calling trac-post-commit-
hook is like this:
Python "%~dp0\trac-post-commit-hook" -p "%TRAC_ENV%" -r "%REV%" 2>&1
1>>c:/temp/trachook.log
There is nothing in trachook.log. I tried to print out options.project
from trac-post-commit-hook, it log in trachook.log correctly: C:\trac.
I have tried other prints, but it gives me errors to run the trac-post-
commit-hook script. I think it might be empty value, for example,
print "what is this value ", sys.argv[0]  I don't know anything about
python, what the value can I print out from the trac-post-commit-
hook?
Thanks
Lynda


On Jan 8, 11:48 am, Olemis Lang <[email protected]> wrote:
> On Fri, Jan 8, 2010 at 2:18 PM, lynda <[email protected]> wrote:
> > When I commented out these 2 lines related with email notification in
> > trac-post-commit-hook script:
> > line 107: # from trac.ticket.notification import TicketNotifyEmail
> > line 186: #tn = TicketNotifyEmail(self.env)
> >  The script still does not update my trac ticket and no error out yet.
> > Is commenting out email function a right way to identify if the
> > notification caused the not updating tickets?
>
> AFAICR ... the script performs all processing (ticket updates and so
> on ...) before sending e-mails ... so that should not be the problem
> (CMIIW)
>
> > Can anyone suggest other
> > ways to find the problem?
> > What can i do to debug this issue?
> > I have download SVN:Notify module from cpan,
>
> Is it a Perl module ?
>
> > and so far my SVN"Notify
> > has not been sending email out yet when I test it from window command
> > line using my gmail account.
>
> Notification e-mails are sent by Trac . That's one thing, whereas
> commit hook not working is another thing. If you want to debug
> notifications I suggest you to configure Trac notifications in
> trac.ini and use tickets (create and modify some just to test ;o). If
> that does not work then you have another problem (... that could be
> solved in a separate thread ;o)
>
> OTOH the post-commit hook needs to be added to the repos hook script
> file (first check point) and has to run successfully from the command
> line (second check point ;o) . You could try to redirect stderr to a
> file inside the script . Something like
>
> {{{
> mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf
>
> }}}
>
> becomes
>
> {{{
> mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf           2> 
> C:\error.log
>
> }}}
>
> --
> Regards,
>
> Olemis.
>
> Blog ES:http://simelo-es.blogspot.com/
> Blog EN:http://simelo-en.blogspot.com/
>
> Featured article:
-- 
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