]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33336, imaplib: Legalize MOVE command (GH-6569)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Jul 2018 14:07:03 +0000 (07:07 -0700)
committerGitHub <noreply@github.com>
Mon, 23 Jul 2018 14:07:03 +0000 (07:07 -0700)
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>
Lib/imaplib.py
Misc/NEWS.d/next/Library/2018-04-27-22-18-38.bpo-33336.T8rxn0.rst [new file with mode: 0644]

index 220d6e1bc0a669f7caa796fce387259adc860ef2..2e5511e02416834e67dd4e39789cde051d4acd34 100644 (file)
@@ -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 (file)
index 0000000..d205c68
--- /dev/null
@@ -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.