Sam Varshavchik wrote:
\n would've been good enough, although I'll change my code . You're
probably not the only one who'll run into this, I suppose, so I might
as well do it. I'll work on the corrected version this weekend.
I might be.... Courier::Filter doesn't look like it'd be affected.
For now, anyone using pythonfilter and the dev release of Courier can
apply this patch to pythonfilter. I'll publish a fixed release whenever
the next release of Courier is published. Will the documentation note
the required newline? :)
### Eclipse Workspace Patch 1.0
#P courier-pythonfilter
Index: pythonfilter
===================================================================
RCS file: /home/gordon/src/cvsroot/courier-pythonfilter/pythonfilter,v
retrieving revision 1.14
diff -u -r1.14 pythonfilter
--- pythonfilter 5 May 2007 19:29:31 -0000 1.14
+++ pythonfilter 21 Jul 2007 06:32:56 -0000
@@ -192,9 +192,9 @@
# If all modules are ok, accept message
# else, write back error code and message
if replyCode == '':
- activeSocket.send('200 Ok')
+ activeSocket.send('200 Ok\n')
else:
- activeSocket.send(replyCode)
+ activeSocket.send('%s\n' % replyCode)
# Acquire the lock and update the thread count.
activeFiltersLock.acquire()
global activeFilters
-------------------------------------------------------------------------
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