Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144090072
D34390.id106704.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D34390.id106704.diff
View Options
Index: mail/Makefile
===================================================================
--- mail/Makefile
+++ mail/Makefile
@@ -501,6 +501,7 @@
SUBDIR += py-flufl.bounce
SUBDIR += py-fuglu
SUBDIR += py-imapclient
+ SUBDIR += py-imaplib2
SUBDIR += py-mail-parser
SUBDIR += py-mailmanclient
SUBDIR += py-mailnag
Index: mail/py-imaplib2/Makefile
===================================================================
--- /dev/null
+++ mail/py-imaplib2/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= imaplib2
+PORTVERSION= 3.6
+CATEGORIES= mail python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dereks@lifeofadishwasher.com
+COMMENT= Threaded Python IMAP4 client
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENCE
+
+USES= pytest python:3.6-3.9
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+# Copy tests until a new release
+# https://github.com/jazzband/imaplib2/pull/38
+post-extract:
+ @${MKDIR} ${WRKSRC}/${PORTNAME}/tests
+ @${CP} ${FILESDIR}/test_imports.py ${WRKSRC}/${PORTNAME}/tests/
+
+.include <bsd.port.mk>
Index: mail/py-imaplib2/distinfo
===================================================================
--- /dev/null
+++ mail/py-imaplib2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1645916681
+SHA256 (imaplib2-3.6.tar.gz) = 96cb485b31868a242cb98d5c5dc67b39b22a6359f30316de536060488e581e5b
+SIZE (imaplib2-3.6.tar.gz) = 26252
Index: mail/py-imaplib2/files/test_imports.py
===================================================================
--- /dev/null
+++ mail/py-imaplib2/files/test_imports.py
@@ -0,0 +1,8 @@
+def test_import_normally():
+ from imaplib2 import IMAP4_SSL
+ assert IMAP4_SSL
+
+
+def test_import_hack():
+ from imaplib2.imaplib2 import IMAP4_SSL
+ assert IMAP4_SSL
Index: mail/py-imaplib2/pkg-descr
===================================================================
--- /dev/null
+++ mail/py-imaplib2/pkg-descr
@@ -0,0 +1,7 @@
+Based on RFC 3501 and original imaplib module.
+
+This is a version of imaplib that uses threads to allow full use of
+the IMAP4 concurrency features, and to de-couple a user of imaplib
+from i/o lags, except where explicitly allowed.
+
+WWW: https://github.com/jazzband/imaplib2/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 5, 2:07 PM (5 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28442629
Default Alt Text
D34390.id106704.diff (2 KB)
Attached To
Mode
D34390: [NEW] mail/py-imaplib2: Threaded Python IMAP4 client
Attached
Detach File
Event Timeline
Log In to Comment