--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.issues/d9133b0e69e403c0/new/1239134046.M751897P28808Q1.cole Tue Apr 07 12:56:48 2009 -0700
@@ -0,0 +1,7 @@
+From: Dmitriy Morozov <dmitriy@mrzv.org>
+Date: Tue, 07 Apr 2009 12:53:56
+State: new
+Subject: Documentation
+Message-Id: <d9133b0e69e403c0-0-artemis@cole>
+
+Write documentation.
--- a/artemis.py Tue Apr 07 12:44:49 2009 -0700
+++ b/artemis.py Tue Apr 07 12:56:48 2009 -0700
@@ -138,7 +138,6 @@
if not id:
outer.add_header('Message-Id', "<%s-0-artemis@%s>" % (issue_id, socket.gethostname()))
- root = 0
else:
root = keys[0]
outer.add_header('Message-Id', "<%s-%s-artemis@%s>" % (issue_id, _random_id(), socket.gethostname()))
@@ -147,14 +146,15 @@
repo.add([issue_fn[(len(repo.root)+1):] + '/new/' + mbox.add(outer)]) # +1 for the trailing /
# Fix properties in the root message
- msg = mbox[root]
if properties:
+ root = _find_root_key(mbox)
+ msg = mbox[root]
for property, value in properties:
if property in msg:
msg.replace_header(property, value)
else:
msg.add_header(property, value)
- mbox[root] = msg
+ mbox[root] = msg
mbox.close()