artemis.py
changeset 53 c335d316f54d
parent 50 10fa939a4a3e
equal deleted inserted replaced
52:bf3b55a54cff 53:c335d316f54d
   167     else:
   167     else:
   168         root = keys[0]
   168         root = keys[0]
   169         outer.add_header('Message-Id', "<%s-%s-artemis@%s>" % (issue_id, _random_id(), socket.gethostname()))
   169         outer.add_header('Message-Id', "<%s-%s-artemis@%s>" % (issue_id, _random_id(), socket.gethostname()))
   170         outer.add_header('References', mbox[(comment < len(mbox) and keys[comment]) or root]['Message-Id'])
   170         outer.add_header('References', mbox[(comment < len(mbox) and keys[comment]) or root]['Message-Id'])
   171         outer.add_header('In-Reply-To', mbox[(comment < len(mbox) and keys[comment]) or root]['Message-Id'])
   171         outer.add_header('In-Reply-To', mbox[(comment < len(mbox) and keys[comment]) or root]['Message-Id'])
   172     repo.add([issue_fn[(len(repo.root)+1):] + '/new/'  + mbox.add(outer)])   # +1 for the trailing /
   172     repo[None].add([issue_fn[(len(repo.root)+1):] + '/new/'  + mbox.add(outer)])   # +1 for the trailing /
   173 
   173 
   174     # Fix properties in the root message
   174     # Fix properties in the root message
   175     if properties:
   175     if properties:
   176         root = _find_root_key(mbox)
   176         root = _find_root_key(mbox)
   177         msg = mbox[root]
   177         msg = mbox[root]