durusmail: quixote-users: ERROR_EMAIL messages have blank subject and message body under SCGI
Session demo / management with mod_python
ERROR_EMAIL messages have blank subject and message body under SCGI
2003-09-02
ERROR_EMAIL messages have blank subject and message body under SCGI
2003-10-13
2003-10-14
2003-10-14
2003-10-14
ERROR_EMAIL messages have blank subject and message body under SCGI
Michael Watkins
2003-10-14
Thanks Jon; I had not dug into this but have been surprised that no one
else has experienced this issue - perhaps there aren't many SCGI users
yet? For me the issue occurs on several machines and OS versions here,
both dev and production boxes.

Curious - what OS does your Quixote/SCGI application run on? I'm running
FreeBSD 4.8-STABLE and 5.1-CURRENT.

Mike

On Mon, 2003-10-13 at 00:01, Jon Dugan wrote:
> On Tue, Sep 02, 2003 at 12:09:53AM -0700, Michael Watkins wrote:
> > ERROR_EMAIL messages have blank subject and message body under SCGI --
> > yet when running the same code as CGI the error email dispatched when an
> > exception occurs contains the traceback within the message body and a
> > meaningful subject.
> >
> > Ideas?
>
>   I had the same problem.  It looks like when the pipe was opened to the
>   sendmail process under SCGI stdin wasn't attached to the process opened by
>   the pipe.  (I ran a test where I called cat - > /tmp/foo instead of
>   sendmail and /tmp/foo was empty.)
>
>   I ended up rewriting the mail_erorr function.  I opted to use the smtplib
>   from the Python library rather than the sendmail stuff in Quixote.  I could
>   have used the Quixote sendmail stuff, but it seems like it is kind of dated
>   since Python offers the same functionality now -- I'm guessing it wasn't
>   there when Quixote was first implemented.
>
>   I've attached patches against both Quixote 0.6.1 and the 20031008 snapshot.
>
> Jon




reply