Lines Matching refs:dat
373 typ, dat = self._untagged_response('OK', [None], name)
374 if dat[-1]:
375 return typ, dat
376 typ, dat = self.noop() # Prod server for response
377 return self._untagged_response(typ, dat, name)
442 typ, dat = self._simple_command('AUTHENTICATE', mech)
444 raise self.error(dat[-1].decode('utf-8', 'replace'))
446 return typ, dat
454 typ, dat = self._simple_command(name)
455 return self._untagged_response(typ, dat, name)
475 typ, dat = self._simple_command('CLOSE')
478 return typ, dat
533 typ, dat = self._simple_command(name)
534 return self._untagged_response(typ, dat, name)
548 typ, dat = self._simple_command(name, message_set, message_parts)
549 return self._untagged_response(typ, dat, name)
557 typ, dat = self._simple_command('GETACL', mailbox)
558 return self._untagged_response(typ, dat, 'ACL')
565 typ, dat = self._simple_command('GETANNOTATION', mailbox, entry, attribute)
566 return self._untagged_response(typ, dat, 'ANNOTATION')
576 typ, dat = self._simple_command('GETQUOTA', root)
577 return self._untagged_response(typ, dat, 'QUOTA')
585 typ, dat = self._simple_command('GETQUOTAROOT', mailbox)
586 typ, quota = self._untagged_response(typ, dat, 'QUOTA')
587 typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
599 typ, dat = self._simple_command(name, directory, pattern)
600 return self._untagged_response(typ, dat, name)
610 typ, dat = self._simple_command('LOGIN', user, self._quote(password))
612 raise self.error(dat[-1])
614 return typ, dat
642 typ, dat = self._simple_command('LOGOUT')
644 return typ, dat
655 typ, dat = self._simple_command(name, directory, pattern)
656 return self._untagged_response(typ, dat, name)
663 typ,dat = self._simple_command('MYRIGHTS', mailbox)
664 return self._untagged_response(typ, dat, 'MYRIGHTS')
672 typ, dat = self._simple_command(name)
673 return self._untagged_response(typ, dat, name)
695 typ, dat = self._simple_command(name, message_num, message_part, start, length)
696 return self._untagged_response(typ, dat, 'FETCH')
732 typ, dat = self._simple_command(name, 'CHARSET', charset, *criteria)
734 typ, dat = self._simple_command(name, *criteria)
735 return self._untagged_response(typ, dat, name)
756 typ, dat = self._simple_command(name, mailbox)
759 return typ, dat
782 typ, dat = self._simple_command('SETANNOTATION', *args)
783 return self._untagged_response(typ, dat, 'ANNOTATION')
791 typ, dat = self._simple_command('SETQUOTA', root, limits)
792 return self._untagged_response(typ, dat, 'QUOTA')
805 typ, dat = self._simple_command(name, sort_criteria, charset, *search_criteria)
806 return self._untagged_response(typ, dat, name)
820 typ, dat = self._simple_command(name)
829 return self._untagged_response(typ, dat, name)
840 typ, dat = self._simple_command(name, mailbox, names)
841 return self._untagged_response(typ, dat, name)
851 typ, dat = self._simple_command('STORE', message_set, command, flags)
852 return self._untagged_response(typ, dat, 'FETCH')
869 typ, dat = self._simple_command(name, threading_algorithm, charset, *search_criteria)
870 return self._untagged_response(typ, dat, name)
890 typ, dat = self._simple_command(name, command, *args)
895 return self._untagged_response(typ, dat, name)
944 def _append_untagged(self, typ, dat): argument
945 if dat is None:
946 dat = b''
951 (typ, len(ur.get(typ,'')), dat))
953 ur[typ].append(dat)
955 ur[typ] = [dat]
1060 typ, dat = self.capability()
1061 if dat == [None]:
1063 dat = str(dat[-1], self._encoding)
1064 dat = dat.upper()
1065 self.capabilities = tuple(dat.split())
1086 dat = self.mo.group('data')
1087 self.tagged_commands[tag] = (typ, [dat])
1108 dat = self.mo.group('data')
1109 if dat is None: dat = b'' # Null untagged response
1110 if dat2: dat = dat + b' ' + dat2
1114 while self._match(self.Literal, dat):
1126 self._append_untagged(typ, (dat, data))
1130 dat = self._get_line()
1132 self._append_untagged(typ, dat)
1136 if typ in ('OK', 'NO', 'BAD') and self._match(Response_code, dat):
1143 self._mesg('%s response: %r' % (typ, dat))
1233 def _untagged_response(self, typ, dat, name): argument
1235 return typ, dat
1604 typ, dat = getattr(M, cmd)(*args)
1605 M._mesg('%s => %s %s' % (cmd, typ, dat))
1606 if typ == 'NO': raise dat[0]
1607 return dat
1629 dat = run(cmd, args) variable
1634 uid = dat[-1].split()