Ticket #44: IMAPClient-0.5.2-repeated-uid.patch

File IMAPClient-0.5.2-repeated-uid.patch, 0.6 KB (added by nya, 2 years ago)
  • imapclient/imapclient.py

    diff -Naru IMAPClient-0.5.2/imapclient/imapclient.py IMAPClient-0.5.2-fix/imapclient/imapclient.py
    old new  
    574574 
    575575            if msgid != None: 
    576576                # Response for a new message 
    577                 current_msg_data = {} 
    578                 out[msgid] = current_msg_data 
     577                if msgid not in out: 
     578                    out[msgid] = {} 
     579                current_msg_data = out[msgid] 
    579580 
    580581            current_msg_data.update(data) 
    581582