Ian Bicking <[EMAIL PROTECTED]> writes:

>> Can you enlighten me on how paste discovers the email?  The default
>> Pylons config has the email addr in `email_to`.  I don't want the
>> error mails but I still want mails so I removed `email_to` and added
>> `webmaster_email` in my .ini.  Now the error mails are sent to the
>> webmaster.
>
> Any of the keys error_email, admin_email, webmaster_email, or 
> sysadmin_email can be used.  It looks like if one is empty it'll try the 
> next, so setting it to an empty value won't help.  It's in 
> paste.exceptions.errormiddleware:106

I see.  If set

  error_email = /dev/null

The error mail aborts with 

  SMTPRecipientsRefused: 
   {'/dev/null': 
    (501, '</dev/null>: recipient address must contain a domain')}


I could use an addr that Exim on localhost sends to dev/null but that
doesn't seem like the right solution.  I can also patch Paste but I'd
prefer a solution working with the stable componenents out there.  

Any idea?  Monkey patching?

Also, the get all the variables in the manually sent error mails,
should I use this?

  paste.exceptions.errormiddleware.send_report(...)

-- 
Yannick Gingras

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to