Home | History | Annotate | Download | only in Lib

Lines Matching refs:dat

192         typ, dat = self.capability()

193 if dat == [None]:
195 self.capabilities = tuple(dat[-1].upper().split())
283 typ, dat = self._untagged_response('OK', [None], name)
284 if dat[-1]:
285 return typ, dat
286 typ, dat = self.noop() # Prod server for response
287 return self._untagged_response(typ, dat, name)
349 typ, dat = self._simple_command('AUTHENTICATE', mech)
351 raise self.error(dat[-1])
353 return typ, dat
361 typ, dat = self._simple_command(name)
362 return self._untagged_response(typ, dat, name)
382 typ, dat = self._simple_command('CLOSE')
385 return typ, dat
428 typ, dat = self._simple_command(name)
429 return self._untagged_response(typ, dat, name)
443 typ, dat = self._simple_command(name, message_set, message_parts)
444 return self._untagged_response(typ, dat, name)
452 typ, dat = self._simple_command('GETACL', mailbox)
453 return self._untagged_response(typ, dat, 'ACL')
460 typ, dat = self._simple_command('GETANNOTATION', mailbox, entry, attribute)
461 return self._untagged_response(typ, dat, 'ANNOTATION')
471 typ, dat
472 return self._untagged_response(typ, dat, 'QUOTA')
480 typ, dat = self._simple_command('GETQUOTAROOT', mailbox)
481 typ, quota = self._untagged_response(typ, dat, 'QUOTA')
482 typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
494 typ, dat = self._simple_command(name, directory, pattern)
495 return self._untagged_response(typ, dat, name)
505 typ, dat = self._simple_command('LOGIN', user, self._quote(password))
507 raise self.error(dat[-1])
509 return typ, dat
535 try: typ, dat = self._simple_command('LOGOUT')
536 except: typ, dat = 'NO', ['%s: %s' % sys.exc_info()[:2]]
540 return typ, dat
551 typ, dat = self._simple_command(name, directory, pattern)
552 return self._untagged_response(typ, dat, name)
559 typ,dat = self._simple_command('MYRIGHTS', mailbox)
560 return self._untagged_response(typ, dat, 'MYRIGHTS')
568 typ, dat = self._simple_command(name)
569 return self._untagged_response(typ, dat, name)
591 typ, dat = self._simple_command(name, message_num, message_part, start, length)
592 return self._untagged_response(typ, dat, 'FETCH')
625 typ, dat = self._simple_command(name, 'CHARSET', charset, *criteria)
627 typ, dat = self._simple_command(name, *criteria)
628 return self._untagged_response(typ, dat, name)
649 typ, dat = self._simple_command(name, mailbox)
652 return typ, dat
675 typ, dat = self._simple_command('SETANNOTATION', *args)
676 return self._untagged_response(typ, dat, 'ANNOTATION')
684 typ, dat = self._simple_command('SETQUOTA', root, limits)
685 return self._untagged_response(typ, dat, 'QUOTA')
698 typ, dat = self._simple_command(name, sort_criteria, charset, *search_criteria)
699 return self._untagged_response(typ, dat, name)
710 typ, dat = self._simple_command(name, mailbox, names)
711 return self._untagged_response(typ, dat, name)
721 typ, dat = self._simple_command('STORE', message_set, command, flags)
722 return self._untagged_response(typ, dat, 'FETCH')
739 typ, dat = self._simple_command(name, threading_algorithm, charset, *search_criteria)
740 return self._untagged_response(typ, dat, name)
760 typ, dat = self._simple_command(name, command, *args)
765 return self._untagged_response(typ, dat, name)
798 def _append_untagged(self, typ, dat):
800 if dat is None: dat = ''
805 (typ, len(ur.get(typ,'')), dat))
807 ur[typ].append(dat)
809 ur[typ] = [dat]
926 dat = self.mo.group('data')
927 self.tagged_commands[tag] = (typ, [dat])
947 dat = self.mo.group('data')
948 if dat is None: dat = '' # Null untagged response
949 if dat2: dat = dat + ' ' + dat2
953 while self._match(Literal, dat):
965 self._append_untagged(typ, (dat, data))
969 dat = self._get_line()
971 self._append_untagged(typ, dat)
975 if typ in ('OK', 'NO', 'BAD') and self._match(Response_code, dat):
980 self._mesg('%s response: %s' % (typ, dat))
1073 def _untagged_response(self, typ, dat, name):
1076 return typ, dat
1472 typ, dat = getattr(M, cmd)(*args)
1473 M._mesg('%s => %s %s' % (cmd, typ, dat))
1474 if typ == 'NO': raise dat[0]
1475 return dat
1497 dat = run(cmd, args)
1502 uid = dat[-1].split()