Thanks to you and Jari for the prompt response.

here are my tests.

on_open
Triggers when rtorrent is shut and restarted - emails sent out.
Stop and restart the torrent file - no email is sent out :)
when torrent is finished - both finished and started emails are sent out :(

on_insert
Triggers when rtorrent is shut and restarted - emails sent out. 

but when I put a torrent file into the watch directory I get the following 
error:-
"Download event action failed: Bad return code."

on_insert = notify_start,"execute=$d.get_custom3=,$d.get_hash=,$d.get_name="

Adrian

Josef Drexler <[EMAIL PROTECTED]> wrote :

> On Sep 2, 2008, at 7:47 AM, Adrian Miller wrote:
> > I am using the on_start command to send an
> e-mail when a file is  
> > uploaded to the watch directory, and the
> on_finished to send an e- 
> > mail when the file has finished.
> >
> > The basics of it is working quite well, however
> if I was to stop a  
> > torrent and restart it it would then send out
> another start e-mail.
> >
> > Also when a torrent has finished it send out its
> finished e-mail  
> > and another started email, it would guess that
> the torrent is  
> > restarted for seeding hence the additional start
> e-mail.
> >
> > is there another command that only looks at the
> .torrent file the  
> > first time it is picked up in the watch
> directory?
> 
> There are also on_open and on_insert. The latter would trigger again  
> whenever you restart rtorrent, but otherwise only once per download.  
> I'm not sure whether on_open gets triggered after the hash check  
> temporarily closes the download when it's done.
> 
> -- 
> Josef Drexler
> [EMAIL PROTECTED]
> _______________________________________________
> Libtorrent-devel mailing list
> [email protected]
> http://rakshasa.no/mailman/listinfo/libtorrent-devel



___________________________________
Hoppy's Webmail



_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to