Home | History | Annotate | Download | only in Lib

Lines Matching refs:dat

202         typ, dat = self.capability()
203 if dat == [None]:
205 self.capabilities = tuple(dat[-1].upper().split())
296 typ, dat = self._untagged_response('OK', [None], name)
297 if dat[-1]:
298 return typ, dat
299 typ, dat = self.noop() # Prod server for response
300 return self._untagged_response(typ, dat, name)
362 typ, dat = self._simple_command('AUTHENTICATE', mech)
364 raise self.error(dat[-1])
366 return typ, dat
374 typ, dat = self._simple_command(name)
375 return self._untagged_response(typ, dat, name)
395 typ, dat = self._simple_command('CLOSE')
398 return typ, dat
441 typ, dat = self._simple_command(name)
442 return self._untagged_response(typ, dat, name)
456 typ, dat = self._simple_command(name, message_set, message_parts)
457 return self._untagged_response(typ, dat, name)
465 typ, dat = self._simple_command('GETACL', mailbox)
466 return self._untagged_response(typ, dat, 'ACL')
473 typ, dat = self._simple_command('GETANNOTATION', mailbox, entry, attribute)
474 return self._untagged_response(typ, dat, 'ANNOTATION')
484 typ, dat = self._simple_command('GETQUOTA', root)
485 return self._untagged_response(typ, dat, 'QUOTA')
493 typ, dat = self._simple_command('GETQUOTAROOT', mailbox)
494 typ, quota = self._untagged_response(typ, dat, 'QUOTA')
495 typ, quotaroot = self._untagged_response(typ, dat, 'QUOTAROOT')
507 typ, dat = self._simple_command(name, directory, pattern)
508 return self._untagged_response(typ, dat, name)
518 typ, dat = self._simple_command('LOGIN', user, self._quote(password))
520 raise self.error(dat[-1])
522 return typ, dat
548 try: typ, dat = self._simple_command('LOGOUT')
549 except: typ, dat = 'NO', ['%s: %s' % sys.exc_info()[:2]]
553 return typ, dat
564 typ, dat = self._simple_command(name, directory, pattern)
565 return self._untagged_response(typ, dat, name)
572 typ,dat = self._simple_command('MYRIGHTS', mailbox)
573 return self._untagged_response(typ, dat, 'MYRIGHTS')
581 typ, dat = self._simple_command(name)
582 return self._untagged_response(typ, dat, name)
604 typ, dat = self._simple_command(name, message_num, message_part, start, length)
605 return self._untagged_response(typ, dat, 'FETCH')
638 typ, dat = self._simple_command(name, 'CHARSET', charset, *criteria)
640 typ, dat = self._simple_command(name, *criteria)
641 return self._untagged_response(typ, dat, name)
662 typ, dat = self._simple_command(name, mailbox)
665 return typ, dat
688 typ, dat = self._simple_command('SETANNOTATION', *args)
689 return self._untagged_response(typ, dat, 'ANNOTATION')
697 typ, dat = self._simple_command('SETQUOTA', root, limits)
698 return self._untagged_response(typ, dat, 'QUOTA')
711 typ, dat = self._simple_command(name, sort_criteria, charset, *search_criteria)
712 return self._untagged_response(typ, dat, name)
723 typ, dat = self._simple_command(name, mailbox, names)
724 return self._untagged_response(typ, dat, name)
734 typ, dat = self._simple_command('STORE', message_set, command, flags)
735 return self._untagged_response(typ, dat, 'FETCH')
752 typ, dat = self._simple_command(name, threading_algorithm, charset, *search_criteria)
753 return self._untagged_response(typ, dat, name)
773 typ, dat = self._simple_command(name, command, *args)
778 return self._untagged_response(typ, dat, name)
811 def _append_untagged(self, typ, dat):
813 if dat is None: dat = ''
818 (typ, len(ur.get(typ,'')), dat))
820 ur[typ].append(dat)
822 ur[typ] = [dat]
939 dat = self.mo.group('data')
940 self.tagged_commands[tag] = (typ, [dat])
960 dat = self.mo.group('data')
961 if dat is None: dat = '' # Null untagged response
962 if dat2: dat = dat + ' ' + dat2
966 while self._match(Literal, dat):
978 self._append_untagged(typ, (dat, data))
982 dat = self._get_line()
984 dat)
988 if typ in ('OK', 'NO', 'BAD') and self._match(Response_code, dat):
993 self._mesg('%s response: %s' % (typ, dat))
1091 def _untagged_response(self, typ, dat, name):
1094 return typ, dat
1490 typ, dat = getattr(M, cmd)(*args)
1491 M._mesg('%s => %s %s' % (cmd, typ, dat))
1492 if typ == 'NO': raise dat[0]
1493 return dat
1515 dat = run(cmd, args)
1520 uid = dat[-1].split()