• Home
  • Raw
  • Download

Lines Matching refs:dat

203         typ, dat = self.capability()
204 if dat == [None]:
206 self.capabilities = tuple(dat[-1].upper().split())
299 typ, dat = self._untagged_response('OK', [None], name)
300 if dat[-1]:
301 return typ, dat
302 typ, dat = self.noop() # Prod server for response
303 return self._untagged_response(typ, dat, name)
365 typ, dat = self._simple_command('AUTHENTICATE', mech)
367 raise self.error(dat[-1])
369 return typ, dat
377 typ, dat = self._simple_command(name)
378 return self._untagged_response(typ, dat, name)
398 typ, dat = self._simple_command('CLOSE')
401 return typ, dat
444 typ, dat = self._simple_command(name)
445 return self._untagged_response(typ, dat, name)
459 typ, dat = self._simple_command(name, message_set, message_parts)
460 return self._untagged_response(typ, dat, name)
468 typ, dat = self._simple_command('GETACL', mailbox)
469 return self._untagged_response(typ, dat, 'ACL')
476 typ, dat = self._simple_command('GETANNOTATION', mailbox, entry, attribute)
477 return self._untagged_response(typ, dat, 'ANNOTATION')
487 typ, dat = self._simple_command('GETQUOTA', root)
488 return self._untagged_response(typ, dat, 'QUOTA')
496 typ, dat = self._simple_command('GETQUOTAROOT', mailbox)
497 typ, quota = self._untagged_response(typ, dat, 'QUOTA')
498 typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
510 typ, dat = self._simple_command(name, directory, pattern)
511 return self._untagged_response(typ, dat, name)
521 typ, dat = self._simple_command('LOGIN', user, self._quote(password))
523 raise self.error(dat[-1])
525 return typ, dat
551 try: typ, dat = self._simple_command('LOGOUT')
552 except: typ, dat = 'NO', ['%s: %s' % sys.exc_info()[:2]]
556 return typ, dat
567 typ, dat = self._simple_command(name, directory, pattern)
568 return self._untagged_response(typ, dat, name)
575 typ,dat = self._simple_command('MYRIGHTS', mailbox)
576 return self._untagged_response(typ, dat, 'MYRIGHTS')
584 typ, dat = self._simple_command(name)
585 return self._untagged_response(typ, dat, name)
607 typ, dat = self._simple_command(name, message_num, message_part, start, length)
608 return self._untagged_response(typ, dat, 'FETCH')
641 typ, dat = self._simple_command(name, 'CHARSET', charset, *criteria)
643 typ, dat = self._simple_command(name, *criteria)
644 return self._untagged_response(typ, dat, name)
665 typ, dat = self._simple_command(name, mailbox)
668 return typ, dat
691 typ, dat = self._simple_command('SETANNOTATION', *args)
692 return self._untagged_response(typ, dat, 'ANNOTATION')
700 typ, dat = self._simple_command('SETQUOTA', root, limits)
701 return self._untagged_response(typ, dat, 'QUOTA')
714 typ, dat = self._simple_command(name, sort_criteria, charset, *search_criteria)
715 return self._untagged_response(typ, dat, name)
726 typ, dat = self._simple_command(name, mailbox, names)
727 return self._untagged_response(typ, dat, name)
737 typ, dat = self._simple_command('STORE', message_set, command, flags)
738 return self._untagged_response(typ, dat, 'FETCH')
755 typ, dat = self._simple_command(name, threading_algorithm, charset, *search_criteria)
756 return self._untagged_response(typ, dat, name)
776 typ, dat = self._simple_command(name, command, *args)
781 return self._untagged_response(typ, dat, name)
814 def _append_untagged(self, typ, dat): argument
816 if dat is None: dat = ''
821 (typ, len(ur.get(typ,'')), dat))
823 ur[typ].append(dat)
825 ur[typ] = [dat]
942 dat = self.mo.group('data')
943 self.tagged_commands[tag] = (typ, [dat])
963 dat = self.mo.group('data')
964 if dat is None: dat = '' # Null untagged response
965 if dat2: dat = dat + ' ' + dat2
969 while self._match(Literal, dat):
981 self._append_untagged(typ, (dat, data))
985 dat = self._get_line()
987 self._append_untagged(typ, dat)
991 if typ in ('OK', 'NO', 'BAD') and self._match(Response_code, dat):
996 self._mesg('%s response: %s' % (typ, dat))
1094 def _untagged_response(self, typ, dat, name): argument
1097 return typ, dat
1493 typ, dat = getattr(M, cmd)(*args)
1494 M._mesg('%s => %s %s' % (cmd, typ, dat))
1495 if typ == 'NO': raise dat[0]
1496 return dat
1518 dat = run(cmd, args) variable
1523 uid = dat[-1].split()