Page 1 of 1

Trying to modify email template

Posted: March 4th, 2023, 8:05 am
by rb9999
NOTE: Links contain a space after the top level domain name. The system won't allow me to post links.

I reinstalled my entire setup on my Synology Media Setup using the Trash Guide. I am running version 3.7.2 and my entire setup in Docker containers. I am trying to set up a custom email script for SABnzbd. I took the Standard Template script I found online here: https://sabnzbd.org/wiki/extra/email-templates

I created a script directory and dropped the file in there. Here is the file I pasted: https://0bin.net/paste/X5QUHeo4#qf9Rrrm ... Y54l8mTQHW

I made a simple modification by changing a word in the text so I'll know if the new script was used. Then I went to the Notifications Tab and ticked Enable Notification Script and chose the new script from the dropdown list and saved. The new notification is not working.

If I click the Test Notification button, I get this error "Notification script returned exit code -1 and output "None""

The log file shows this: https://0bin.net/paste/2NFLDfcw#CEuJDdq ... kxe728yZaK


Note, this template file is unchanged...I decided to leave as is but I still get the same error. I also made sure that the file is using Unix Linefeed...I created in Notepad ++.

I also tried setting the execute permissions but I could no longer see the template file in the drop down list. I also tried making sure the owner was correct. Nothing works.

Re: Trying to modify email template

Posted: March 4th, 2023, 8:18 am
by sander

Code: Select all

2023-03-03 19:19:47,556::INFO::[misc:1166] [N/A] Running external command: ['/config/scripts/RBemail-us-en.tmpl', 'other', 'SABnzbd: Other Messages', 'Test Notification']
...
OSError: [Errno 8] Exec format error: '/config/scripts/RBemail-us-en.tmpl'
It looks you're are trying to run a template file as an exectuable. Which is impossible.

Re: Trying to modify email template

Posted: March 4th, 2023, 8:24 am
by rb9999
This is what I get when I click the test button. SABnzbd is trying to execute it, so it seems.

Re: Trying to modify email template

Posted: March 4th, 2023, 8:40 am
by safihre
No, you configured the path to the template also for Notification Script. That's not what you are supposed to do.

Re: Trying to modify email template

Posted: March 4th, 2023, 8:52 am
by rb9999
Ahh, I see now. I set the folder under Scripts folder and not Email Templates folder. When I change it, it works.