(self, charset, *criteria)
return self._untagged_response(typ, dat, name)
Search mailbox for matching messages.

        (typ, [data]) = <instance>.search(charset, criterion, ...)

        'data' is space separated list of matching message numbers.
Search mailbox for matching messages.
Search mailbox for matching messages .
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)
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 )