git: bb280cd78e8c - main - mail/py-imap-tools: New port

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Sun, 18 Feb 2024 12:09:24 UTC
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bb280cd78e8c19e0dca13d8b2d613ce969e2398e

commit bb280cd78e8c19e0dca13d8b2d613ce969e2398e
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-02-12 13:55:26 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-02-18 12:07:07 +0000

    mail/py-imap-tools: New port
    
    Work with email via IMAP
---
 mail/Makefile                |  1 +
 mail/py-imap-tools/Makefile  | 17 +++++++++++++++++
 mail/py-imap-tools/distinfo  |  3 +++
 mail/py-imap-tools/pkg-descr | 10 ++++++++++
 4 files changed, 31 insertions(+)

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