9 messages in net.sourceforge.lists.courier-usersRe: [courier-users] No luck with cour...
FromSent OnAttachments
Nathan HarrisJul 19, 2007 11:57 am 
Gordon MessmerJul 19, 2007 1:35 pm 
Jérôme BlionJul 19, 2007 3:04 pm 
Gordon MessmerJul 20, 2007 10:43 am 
Sam VarshavchikJul 20, 2007 2:32 pm 
Gordon MessmerJul 20, 2007 2:48 pm 
Sam VarshavchikJul 20, 2007 3:29 pm 
Gordon MessmerJul 20, 2007 11:43 pm.patch
Nathan HarrisJul 23, 2007 7:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] No luck with courier-pythonfilter and courier-0.56.0.20070701Actions...
From:Gordon Messmer (yiny@eburg.com)
Date:Jul 20, 2007 10:43:18 am
List:net.sourceforge.lists.courier-users

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)

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?