diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2018-07-23 11:28:54 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-07-23 11:28:54 (GMT) |
commit | caa331d492acc67d8f4edd16542cebfabbbe1e79 (patch) | |
tree | e9c8422bef72963ee69dc48d9a82deef9e627db3 | |
parent | 752d4b7531093c55d6f0a5846748f981d79b29d3 (diff) | |
download | cpython-caa331d492acc67d8f4edd16542cebfabbbe1e79.zip cpython-caa331d492acc67d8f4edd16542cebfabbbe1e79.tar.gz cpython-caa331d492acc67d8f4edd16542cebfabbbe1e79.tar.bz2 |
bpo-33336, imaplib: Legalize MOVE command (GH-6569)
imaplib now allows MOVE command in IMAP4.uid() (RFC 6851:
IMAP MOVE Extension) and potentially as a name of supported
method of IMAP4 object.
-rw-r--r-- | Lib/imaplib.py | 1 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-04-27-22-18-38.bpo-33336.T8rxn0.rst | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index e1cece0..0dfd852 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -79,6 +79,7 @@ Commands = { 'LOGIN': ('NONAUTH',), 'LOGOUT': ('NONAUTH', 'AUTH', 'SELECTED', 'LOGOUT'), 'LSUB': ('AUTH', 'SELECTED'), + 'MOVE': ('SELECTED',), 'NAMESPACE': ('AUTH', 'SELECTED'), 'NOOP': ('NONAUTH', 'AUTH', 'SELECTED', 'LOGOUT'), 'PARTIAL': ('SELECTED',), # NB: obsolete diff --git a/Misc/NEWS.d/next/Library/2018-04-27-22-18-38.bpo-33336.T8rxn0.rst b/Misc/NEWS.d/next/Library/2018-04-27-22-18-38.bpo-33336.T8rxn0.rst new file mode 100644 index 0000000..d205c68 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-04-27-22-18-38.bpo-33336.T8rxn0.rst @@ -0,0 +1,3 @@ +``imaplib`` now allows ``MOVE`` command in ``IMAP4.uid()`` (RFC +6851: IMAP MOVE Extension) and potentially as a name of supported +method of ``IMAP4`` object. |