Jerome Blion wrote:
I performed other tests...
Here is the mail I can read in the final mailbox:
==============================================================
...
line 1
line 2
line 3y courier 0.59
line 1
line 2
line 3
==============================================================
Oh... Well, that's because I am a *huge* idiot.
The attached patch should fix that problem. Please test it.
Index: courier/xfilter.py
===================================================================
RCS file: /home/gordon/src/cvsroot/courier-pythonfilter/courier/xfilter.py,v
retrieving revision 1.22
diff -u -r1.22 xfilter.py
--- courier/xfilter.py 28 May 2008 04:32:56 -0000 1.22
+++ courier/xfilter.py 17 Jul 2008 21:29:39 -0000
@@ -272,6 +272,7 @@
def newSubmit(self):
bfo = open(self.bodyFile, 'r+')
+ bfo.truncate(0)
g = email.generator.Generator(bfo, mangle_from_=False)
g.flatten(self.message)
# Make sure that the file ends with a newline, or courier
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users