Trying to modify email template

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
rb9999
Newbie
Newbie
Posts: 7
Joined: March 4th, 2023, 6:20 am

Trying to modify email template

Post 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.
Last edited by rb9999 on March 4th, 2023, 8:24 am, edited 1 time in total.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

Re: Trying to modify email template

Post 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.
rb9999
Newbie
Newbie
Posts: 7
Joined: March 4th, 2023, 6:20 am

Re: Trying to modify email template

Post by rb9999 »

This is what I get when I click the test button. SABnzbd is trying to execute it, so it seems.
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Trying to modify email template

Post by safihre »

No, you configured the path to the template also for Notification Script. That's not what you are supposed to do.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
rb9999
Newbie
Newbie
Posts: 7
Joined: March 4th, 2023, 6:20 am

Re: Trying to modify email template

Post by rb9999 »

Ahh, I see now. I set the folder under Scripts folder and not Email Templates folder. When I change it, it works.
Post Reply