Show
Ignore:
Timestamp:
05/01/10 13:42:35 (2 years ago)
Author:
Menno Smits <menno@…>
Branch:
default
Message:

Fixed problem when literal is followed by a non-literal (#33)

This problem manifested itself with GMail's IMAP. Patch based on what
Fergal sent in with the bug report.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imapclient/imapclient.py

    r93 r96  
    599599 
    600600        data = data.lstrip() 
     601        msgid = None 
    601602        if data[0].isdigit(): 
    602603            # Get message ID 
     
    606607            assert data.startswith('('), data 
    607608            data = data[1:] 
    608             if data.endswith(')'): 
    609                 data = data[:-1] 
    610  
    611         else: 
    612             msgid = None 
     609 
     610        if data.endswith(')'): 
     611            data = data[:-1] 
    613612 
    614613        for name, item in FetchTokeniser().process_pairs(data):