aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2024-02-12 13:55:26 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2024-02-18 12:07:07 +0000
commitbb280cd78e8c19e0dca13d8b2d613ce969e2398e (patch)
tree5d241b45ca3765f688ccd66c82fb0c91e19225e3
parentf836820133ad81b454de23c0a90025facede7307 (diff)
mail/py-imap-tools: New port
Work with email via IMAP
-rw-r--r--mail/Makefile1
-rw-r--r--mail/py-imap-tools/Makefile17
-rw-r--r--mail/py-imap-tools/distinfo3
-rw-r--r--mail/py-imap-tools/pkg-descr10
4 files changed, 31 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 15f29f9b1d5a..0e27fbc6ba81 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -505,6 +505,7 @@
SUBDIR += py-flask-mail
SUBDIR += py-flufl.bounce
SUBDIR += py-fuglu
+ SUBDIR += py-imap-tools
SUBDIR += py-imapclient
SUBDIR += py-imaplib2
SUBDIR += py-mail-parser
diff --git a/mail/py-imap-tools/Makefile b/mail/py-imap-tools/Makefile
new file mode 100644
index 000000000000..bce5a0560e3b
--- /dev/null
+++ b/mail/py-imap-tools/Makefile
@@ -0,0 +1,17 @@
+PORTNAME= imap-tools
+PORTVERSION= 1.5.0
+CATEGORIES= mail python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Work with email via IMAP
+WWW= https://github.com/ikvk/imap_tools
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/mail/py-imap-tools/distinfo b/mail/py-imap-tools/distinfo
new file mode 100644
index 000000000000..46eda6193993
--- /dev/null
+++ b/mail/py-imap-tools/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707598252
+SHA256 (imap-tools-1.5.0.tar.gz) = f42dfb1a7db666ef5df4c815e5b6e6571707b188f67c0a411fc5c9a9b4f1b85f
+SIZE (imap-tools-1.5.0.tar.gz) = 34492
diff --git a/mail/py-imap-tools/pkg-descr b/mail/py-imap-tools/pkg-descr
new file mode 100644
index 000000000000..b3154e65f2e5
--- /dev/null
+++ b/mail/py-imap-tools/pkg-descr
@@ -0,0 +1,10 @@
+High level lib for work with email by IMAP:
+- Basic message operations: fetch, uids, numbers
+- Parsed email message attributes
+- Query builder for search criteria
+- Actions with emails: copy, delete, flag, move, append
+- Actions with folders: list, set, get, create, exists, rename,
+ subscribe, delete, status
+- IDLE commands: start, poll, stop, wait
+- Exceptions on failed IMAP operations
+- No external dependencies, tested