aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-09-23 10:47:17 -0400
committerW. Trevor King <wking@drexel.edu>2009-09-23 10:47:17 -0400
commit868122d0b9076b4ffbedf50d2bff491f0493e8c0 (patch)
treeb7aafe3cf72e71b5da01cb92d6a80b919e00c42c /interfaces
parentb910115f83a697cef38dd91c76b40c3a49954044 (diff)
downloadbugseverywhere-868122d0b9076b4ffbedf50d2bff491f0493e8c0.tar.gz
Fixed mutliple in-reply-to splitting in be-mbox-to-xml
Diffstat (limited to 'interfaces')
-rwxr-xr-xinterfaces/xml/be-mbox-to-xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/interfaces/xml/be-mbox-to-xml b/interfaces/xml/be-mbox-to-xml
index dc6a1c5..9e5c4e6 100755
--- a/interfaces/xml/be-mbox-to-xml
+++ b/interfaces/xml/be-mbox-to-xml
@@ -65,11 +65,13 @@ def comment_message_to_xml(message, fields=None):
fields[u'in-reply-to'] = refs[0] # default to the first
else: # check for mutliple in-reply-to references.
refs = fields[u'in-reply-to'].split()
+ found_ref = False
for ref in refs: # search for a known reference id.
if ref in KNOWN_IDS:
fields[u'in-reply-to'] = ref
+ found_ref = True
break
- if fields[u'in-reply-to'] == None and len(refs) > 0:
+ if found_ref == False and len(refs) > 0:
fields[u'in-reply-to'] = refs[0] # default to the first
if fields['alt-id'] != None: