#NEWLINE# def list_messages( self ) : #NEWLINE# #INDENT# select_query = 'select uid, flags, headers from message where account = ? and folder = ?' #NEWLINE# results = self . _execute ( select_query , ( self . _account . name , self . name ) ) #NEWLINE# for ( uid , flat_flags , l1_headers ) in flat_flags : #NEWLINE# #INDENT# ( yield ( uid , unflatten ( flat_flags ) , l1_headers . encode ( 'latin-1' ) ) )