As stated in the comments of profile.py there is a
problem with the line-endings returned by MimeWriter.
I had problems in communicating with other
BEEP-implementations. The following lines show a diff
of a very simply fix, which is not beautyful but works
for the moment...
diff -c -r1.16 profile.py
*** beepy/profiles/profile.py 28 Sep 2004 01:19:20
-0000 1.16
--- beepy/profiles/profile.py 15 Mar 2005 20:41:54 -0000
***************
*** 36,41 ****
--- 36,42 ----
# library here.
import StringIO
import mimetools, mimetypes, MimeWriter
+ from email.Utils import fix_eols
# Traceback information is useful for unexpected
exceptions when
# developing profiles, so I've put this in here.
***************
*** 159,164 ****
--- 160,167 ----
if len(msg) > constants.MAX_PAYLOAD_SIZE:
log.warn("payload is large and should be
fragmented")
+ msg = fix_eols(msg)
+
return msg