[Nym3-commit] r328 - trunk/nymbaron/Client
jr at conuropsis.org
jr at conuropsis.org
Sun Oct 9 03:17:04 CEST 2005
Author: jr
Date: 2005-10-09 03:17:03 +0200 (Sun, 09 Oct 2005)
New Revision: 328
Modified:
trunk/nymbaron/Client/Main.py
Log:
- Fix mprocess
Modified: trunk/nymbaron/Client/Main.py
===================================================================
--- trunk/nymbaron/Client/Main.py 2005-10-08 17:41:32 UTC (rev 327)
+++ trunk/nymbaron/Client/Main.py 2005-10-09 01:17:03 UTC (rev 328)
@@ -980,7 +980,18 @@
# TODO : id is forced lowercase by mixminion.
print id
nick = tm.nickFromId(id)
- processMessage(nameo, config, ui, nick)
+ decf = open(nameo, "r")
+ decmsg = decf.read()
+ decf.close()
+ #TODO if the message is not empty
+ #we remove the first character of the message which is a '\n'
+ #this character is added by mixminion to separate the message body
+ #from optional mixminion headers. We assert these are always empty
+ #in our case and that removing the first "\n" of the message gives us
+ #the message body
+ assert (not decmsg) or (decmsg[0] == '\n')
+ if decmsg: decmsg = decmsg[1:]
+ processMessage(decmsg, config, ui, nick)
sys.exit(0)
if args[1] == "list-accounts":
More information about the Nym3-commit
mailing list