MCPcopy Create free account
hub / github.com/RustPython/RustPython / get_flags

Method get_flags

Lib/mailbox.py:420–425  ·  view source on GitHub ↗

Return as a string the standard flags that are set on the keyed message.

(self, key)

Source from the content-addressed store, hash-verified

418 self._toc[key] = new_subpath
419
420 def get_flags(self, key):
421 """Return as a string the standard flags that are set on the keyed message."""
422 info = self.get_info(key)
423 if info.startswith('2,'):
424 return info[2:]
425 return ''
426
427 def set_flags(self, key, flags: str):
428 """Set the given flags and unset all others on the keyed message."""

Callers 15

add_flagMethod · 0.95
remove_flagMethod · 0.95
test_get_MMMethod · 0.45
test_set_MMMethod · 0.45
test_get_flagsMethod · 0.45
test_set_flagsMethod · 0.45
test_add_flagMethod · 0.45
test_remove_flagMethod · 0.45
test_flagsMethod · 0.45
test_mh_to_maildirMethod · 0.45

Calls 2

get_infoMethod · 0.95
startswithMethod · 0.45

Tested by 13

test_get_MMMethod · 0.36
test_set_MMMethod · 0.36
test_get_flagsMethod · 0.36
test_set_flagsMethod · 0.36
test_add_flagMethod · 0.36
test_remove_flagMethod · 0.36
test_flagsMethod · 0.36
test_mh_to_maildirMethod · 0.36
test_mh_to_mboxmmdfMethod · 0.36
test_babyl_to_maildirMethod · 0.36