summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-23 07:07:03 -0700
committerGitHub <noreply@github.com>2018-07-23 07:07:03 -0700
commit7868426c1fe562d2d70bbfd0bb3d0da82f909001 (patch)
tree40821f1dbb55fea366a07045c63a59b5a0e7030c
parent46cb5fd706563673663e676bb70f46a73f4edc89 (diff)
downloadcpython-git-7868426c1fe562d2d70bbfd0bb3d0da82f909001.tar.gz
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 220d6e1bc0..2e5511e024 100644
--- a/Lib/imaplib.py
+++ b/Lib/imaplib.py
@@ -70,6 +70,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 0000000000..d205c68a95
--- /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.