summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-23 13:17:25 (GMT)
committerGitHub <noreply@github.com>2018-07-23 13:17:25 (GMT)
commit112784984784199d54176132edc38ce8c9b007c1 (patch)
treeafdbf9c19b7526f12466e7cd56108bb9034c2cb5
parent1724c0c984e6406d80d8ebe3bb7b70f23c8b5f45 (diff)
downloadcpython-112784984784199d54176132edc38ce8c9b007c1.zip
cpython-112784984784199d54176132edc38ce8c9b007c1.tar.gz
cpython-112784984784199d54176132edc38ce8c9b007c1.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. (cherry picked from commit caa331d492acc67d8f4edd16542cebfabbbe1e79) Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
-rw-r--r--Lib/imaplib.py1
-rw-r--r--Misc/NEWS.d/next/Library/2018-04-27-22-18-38.bpo-33336.T8rxn0.rst3
2 files changed, 4 insertions, 0 deletions
diff --git a/Lib/imaplib.py b/Lib/imaplib.py
index 1c0b03b..700b19b 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.