artemis.py
changeset 56 0b2722bb35c9
parent 55 c379bed603c6
child 59 6c388fe11dcc
equal deleted inserted replaced
55:c379bed603c6 56:0b2722bb35c9
    58     properties += filter(lambda p: len(p) > 1, cmd_properties)
    58     properties += filter(lambda p: len(p) > 1, cmd_properties)
    59 
    59 
    60     for issue in issues:
    60     for issue in issues:
    61         mbox = mailbox.Maildir(issue, factory=mailbox.MaildirMessage)
    61         mbox = mailbox.Maildir(issue, factory=mailbox.MaildirMessage)
    62         root = _find_root_key(mbox)
    62         root = _find_root_key(mbox)
       
    63         if not root: continue
    63         property_match = True
    64         property_match = True
    64         for property,value in properties:
    65         for property,value in properties:
    65             if value:
    66             if value:
    66                 property_match = property_match and (mbox[root][property] == value)
    67                 property_match = property_match and (mbox[root][property] == value)
    67             else:
    68             else: