Gordon Messmer writes:

Nathan Harris wrote:
Anyone successfully running courier-pythonfilter 0.22 with the latest courier?

courier-pythonfilter starts successfully, but every access yields: ||432 Mail filters temporarily unavailable.

I think I've tracked this down to line 278 of cdfilters.C:
        if ( !std::getline(sockstream, sockname).good())

If the filter returns a single-line response, the .good() method will return False, because the stream's eofbit is set (http://www.cplusplus.com/reference/iostream/ios/good.html)

Is the single-line response terminated by a newline?

I'm not a C++ programmer, so I could be wrong. I think the appropriate thing to do is:

        if ( std::getline(sockstream, sockname).fail())

... probably in all three instances in dofilter().

Sam, what do you think?

Probably true, but I suspect that the single-line response isn't terminated by a newline. If it were, there would be no eof.

Attachment: pgp3ia50nhvIv.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to