jazzband / imaplib2

Fork of Piers Lauder's imaplib2 library for Python.
https://imaplib2.readthedocs.io/
MIT License
34 stars 29 forks source link

Migration of imaplib2 to stdlib #12

Open thekix opened 3 years ago

thekix commented 3 years ago

Hi,

I was thinking about the idea of moving imaplib2 to the Python 3 standard libs. That idea was done by Maxim Khitrov here [1] but had some problems here [2]. I would like to propose it again.

I all of us agree it, we can start to update the impalib2 code to make the imaplib and imaplib2 interface compatible (for backward compatibility). We need check the imaplib patches that can apply in imaplib2,.... Perhaps we can send some patches to the imaplib standard lib.

What do you think?

Happy new year! Best regards, kix

[1] https://python-ideas.python.narkive.com/dgZhBV1Y/new-imaplib-implementation-for-python-3-2-standard-library [2] https://python-ideas.python.narkive.com/dgZhBV1Y/new-imaplib-implementation-for-python-3-2-standard-library#post18

chris001 commented 3 years ago

@thekix Nota Bene! The Maxim Khitrov project "imaplib2" is different from our "imaplib2" by Piers!

thekix commented 3 years ago

@chris001 thanks a lot,

That is new for me. We should think about this if we decide migrate. Also, we should check how many applications are using the stdlib-imaplib, piers-imaplib2 and mxk-imaplib2 [1]

Regards, kix

[1] https://github.com/mxk/py-imaplib2

chris001 commented 3 years ago

Ideally, we should implement a new "imaplib2 interface" layer, which lets us use all 3 IMAP4 libraries! User can select his preferred library! Default would be piers-imaplib2! But at the higher level, they should all ultimately accomplish the same tasks and achieve the exact same result, on the 1IMAP41 server! Which would be verified by means of tests which run in Travis-CI against the top 10 most popular IMAP4 servers!