parameters: (self, charset, *criteria)
return_statement: return self._untagged_response(typ, dat, name)
docstring: Search mailbox for matching messages.
  
          (typ, [data]) = <instance>.search(charset, criterion, ...)
  
          'data' is space separated list of matching message numbers.
docstring_summary: Search mailbox for matching messages.
docstring_tokens: Search mailbox for matching messages .
function: def search(self, charset, *criteria):
          """Search mailbox for matching messages.
  
          (typ, [data]) = <instance>.search(charset, criterion, ...)
  
          'data' is space separated list of matching message numbers.
          """
          name = 'SEARCH'
          if charset:
              typ, dat = self._simple_command(name, 'CHARSET', charset, *criteria)
          else:
              typ, dat = self._simple_command(name, *criteria)
          return self._untagged_response(typ, dat, name)
function_tokens: def search ( self , charset , * criteria ) : name = 'SEARCH' if charset : typ , dat = self . _simple_command ( name , 'CHARSET' , charset , * criteria ) else : typ , dat = self . _simple_command ( name , * criteria ) return self . _untagged_response ( typ , dat , name )