Temporarily disable Email sending

Get help, report and discuss bugs.
Post Reply
CBers
Posts: 136
Joined: 24 Aug 2014, 11:35

Temporarily disable Email sending

Post by CBers » 10 Jun 2019, 08:28

Hi hugbug.

Long time no speak, partly due to no issues :) - I hope you're well.

I set up NzbGet for a friend of mine at the weekend and enabled the emails script so that he knew if something worked/failed etc.

He complained after a few hours that he was getting 100s of emails due to successful and failures, as he had added quite a few series to the download queue via Sonarr.

I tried disabling the email sending, but it wasn't obvious how to do it immediately.

I un-ticked the Email.py script on the "EXTENSION SCRIPTS" page and restarted NzbGet, but it didn't stop any emails from being sent from the content in the download queue.

The emails did stop after the original queue of downloads had completed and he didn't get any more after he added more downloads.

So my question is, does the Email.py script get called for all downloads that are added before the script is disabled, or should it only get called at the end of a download and only if checked ?

To me, it seems that everything already in the queue has an action to call the script, but if you disable the script, it doesn't take affect on the current queue content, only newly added content.

Hope that makes sense.

Thanks.

hugbug
Developer & Admin
Posts: 7340
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Temporarily disable Email sending

Post by hugbug » 10 Jun 2019, 08:55

Each nzb has its own list of extension scripts activated for it. Option Extensions defines which scripts are activated by default when a new nzb is added.

In other words: it worked as designed.

CBers
Posts: 136
Joined: 24 Aug 2014, 11:35

Re: Temporarily disable Email sending

Post by CBers » 10 Jun 2019, 11:21

So as I said, each download (NZB) added to the queue has any script assigned to it, to run on completion and the only way to stop the email script from running, is to disable the script before adding the download?
hugbug wrote:
10 Jun 2019, 08:55
In other words: it worked as designed.
That's fine, as long as I know :D

I assume there's no way of stopping the script(s) from running once downloads have been added, unless you physically move the script(s) from the scripts folder, which will cause an internal error?

Thanks.

hugbug
Developer & Admin
Posts: 7340
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Temporarily disable Email sending

Post by hugbug » 10 Jun 2019, 19:05

Click on a download in queue, then button Postprocess, now you can select scripts.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests