]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33336, imaplib: Legalize MOVE command (GH-6569)
authorMatěj Cepl <mcepl@cepl.eu>
Mon, 23 Jul 2018 11:28:54 +0000 (13:28 +0200)
committerVictor Stinner <vstinner@redhat.com>
Mon, 23 Jul 2018 11:28:54 +0000 (13:28 +0200)
imaplib now allows MOVE command in IMAP4.uid() (RFC 6851:
IMAP MOVE Extension) and potentially as a name of supported
method of IMAP4 object.

Lib/imaplib.py
Misc/NEWS.d/next/Library/2018-04-27-22-18-38.bpo-33336.T8rxn0.rst [new file with mode: 0644]

index e1cece0b283f2be0870b7a45bbc3217da92bb15b..0dfd8524a53a3542bd52b6019f7145650ec7353a 100644 (file)
@@ -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 (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.