Search found 10 matches

by ReinholD
March 14th, 2011, 6:22 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

It's normal that Python re-creates the PYC files, that's just the byte code file. Do you claim that the *old* PYC file comes back? Isn't the patched PY file somehow overwritten? Well, I've figured it out, but it raises more questions that it answers. the patched PY haven't been overwritten. I ran t...
by ReinholD
March 14th, 2011, 5:12 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

Hmm.. I have a problem.. I noticed the tv e-mails stopped working the other day.. I checked the folders, and discovered that the emailer.pyc had been re-added. It seems like it is re-added every time SAB is restarted.. I can fix this temporarily, by just not restarting SAB.. But is there another fix?
by ReinholD
March 9th, 2011, 6:06 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

shypike wrote: Delete the emailer.pyc file and replace emailer.py with the attached file.
Good luck.
works like a charm! thank you so much!

Donation procedure initiating in 3.. 2.. 1....
by ReinholD
March 9th, 2011, 3:21 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

Does the package come with Python sources? If you want, I can send you a patched emailer.py module. Check first if you can find this file. The package runs solely python i think.. the emailer.py is there, along with an emailer.pyc(?). In fact all the .py files in the folder have a corresponding .py...
by ReinholD
March 9th, 2011, 2:39 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

I checked the code. Some time ago, support for a recipient list was built in. So email will be sent to all recipients, but only in one transaction. This means that the $to variable will contain the full list of recipients, making the implementation of your idea impossible. I can fix this by sending...
by ReinholD
March 9th, 2011, 12:42 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

First of all, SABnzbd does not support lists of recipients. OK, it puts the literal string into the $to field (like "a@b.com,c@d.com"), but handling is done by your email provider. No guarantees. Some use "," some use ";", some don't support lists at all. This explains...
by ReinholD
March 9th, 2011, 10:07 am
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

I'm not sure why you test for $to. The recipient is always the same, so testing for $to serves no purpose. Suppose you want to send an email to two parties, you would need two templates, each with one hard-coded email address in the to: field. If you want to send TV emails just to one recipient, yo...
by ReinholD
March 9th, 2011, 7:45 am
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

You probably should use this: <!--#if $cat == "tv" and $to == "my@mail.com" #--><!--#slurp#--> hmm.. I tried searching through the Cheetah wiki and on google, and I remember coming across some && statements.. but I guess that was wrong. I'll tryout your advice, and see w...
by ReinholD
March 8th, 2011, 1:24 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

Re: e-mail template creates weird error-report

What's your assumption about the programming language of the email template? You seem to assume you can use C or C++ constructions. However it's a mix of Cheetah template macros and Python. Documented here: http://wiki.sabnzbd.org/email-templates and here: http://www.cheetahtemplate.org/docs/users_...
by ReinholD
March 8th, 2011, 12:51 pm
Forum: General Help
Topic: e-mail template creates weird error-report
Replies: 18
Views: 6780

e-mail template creates weird error-report

Hey guys. I have a problem. I recently edited my e-mail template, because i needed to use multiple mails. I made it so, that if it was a tv-show that was downloaded, it would only send a mail to me. this is what the headers looks like: <!--#if $cat == "tv" && $to == "my@mail.c...