Changeset 282:e2d2b114427b

Show
Ignore:
Timestamp:
09/11/11 21:02:47 (6 months ago)
Author:
Menno Smits <menno@…>
Branch:
default
Message:

clean up UID/SEQ distinction

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imapclient/response_parser.py

    r278 r282  
    6565    while True: 
    6666        try: 
    67             msg_id = _int_or_error(response.next(), 'invalid message ID') 
     67            msg_id = seq = _int_or_error(response.next(), 'invalid message ID') 
    6868        except StopIteration: 
    6969            break 
     
    7979            raise ParseError('uneven number of response items: %s' % repr(msg_response)) 
    8080 
    81         # always return the 'sequence' of the message, so it is available 
     81        # always return the sequence of the message, so it is available 
    8282        # even if we return keyed by UID. 
    83         msg_data = {'SEQ': msg_id} 
     83        msg_data = {'SEQ': seq} 
    8484        for i in xrange(0, len(msg_response), 2): 
    8585            word = msg_response[i].upper()