- data = urllib.urlencode((("message-id", messageid), ("created", createddate), ("contentmd5", md5sum)))
+ if prevmessageid:
+ messageid = prevmessageid + " " + messageid
+ data = urllib.urlencode((
+ ("message-id", messageid), \
+ ("created", createddate), \
+ ("contentmd5", md5sum) \
+ ))