View | Details | Raw Unified | Return to bug 262233 | Differences between
and this patch

Collapse All | Expand All

(-)mail/Makefile (+1 lines)
Lines 511-516 Link Here
511
    SUBDIR += py-milter
511
    SUBDIR += py-milter
512
    SUBDIR += py-notmuch
512
    SUBDIR += py-notmuch
513
    SUBDIR += py-notmuch2
513
    SUBDIR += py-notmuch2
514
    SUBDIR += py-offlineimap3
514
    SUBDIR += py-postfix-mta-sts-resolver
515
    SUBDIR += py-postfix-mta-sts-resolver
515
    SUBDIR += py-premailer
516
    SUBDIR += py-premailer
516
    SUBDIR += py-pymailq
517
    SUBDIR += py-pymailq
(-)mail/py-offlineimap3/Makefile (+87 lines)
Added Link Here
1
PORTNAME=	offlineimap3
2
PORTVERSION=	g20220325
3
CATEGORIES=	mail python
4
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
6
MAINTAINER=	dereks@lifeofadishwasher.com
7
COMMENT=	Two-way synchronization of local Maildir and IMAP folders
8
9
LICENSE=	GPLv2
10
LICENSE_FILE=	${WRKSRC}/COPYING
11
12
# setup.py requires these during build time. Possible move to setup/install_requires:
13
# https://github.com/OfflineIMAP/offlineimap3/issues/110
14
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}distro>=0:sysutils/py-distro@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}imaplib2>=3.5:mail/py-imaplib2@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}rfc6555>=0:mail/py-rfc6555@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}certifi>=2020.6.20:security/py-certifi@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}distro>=0:sysutils/py-distro@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}imaplib2>=3.5:mail/py-imaplib2@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}rfc6555>=0:mail/py-rfc6555@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}urllib3>=1.25.9:net/py-urllib3@${PY_FLAVOR}
24
25
# Upstream doesn't have exact version currently only able to test up to 3.9 since
26
# imaplib2 is 3.6-3.9.
27
USES=		pytest python:3.7-3.9
28
29
# Project is currently not publishing to pypi sdist.  pypi/naming status:
30
# https://github.com/OfflineIMAP/offlineimap3/issues/111
31
USE_GITHUB=	yes
32
GH_ACCOUNT=	OfflineIMAP
33
GH_TAGNAME=	253f97a3e947
34
35
USE_PYTHON=	autoplist concurrent distutils
36
37
CONFLICTS_INSTALL=	mail/py-offlineimap
38
39
NO_ARCH=	yes
40
41
PORTDOCS=	*
42
PORTEXAMPLES=	offlineimap.conf
43
44
OPTIONS_DEFINE=		DOCS EXAMPLES GSSAPI MANPAGES
45
OPTIONS_DEFAULT=	MANPAGES
46
47
COMMON_BUILD_DEPENDS=	a2x:textproc/asciidoc \
48
			gmake:devel/gmake
49
50
DOCS_BUILD_DEPENDS=	${COMMON_BUILD_DEPENDS} \
51
			${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
52
53
GSSAPI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gssapi>=1.6.9:security/py-gssapi@${PY_FLAVOR}
54
55
MANPAGES_BUILD_DEPENDS=	${COMMON_BUILD_DEPENDS}
56
MANPAGES_PLIST_FILES+=	man/man1/offlineimap.1.gz \
57
			man/man7/offlineimapui.7.gz
58
59
# In concurrent env. sphinx-build is only exist for py38 add "-${PYTHON_VER}" to command
60
post-patch:
61
	cd ${WRKSRC} && \
62
	${REINPLACE_CMD} '/^SPHINXBUILD = sphinx-build$$/s/$$/-${PYTHON_VER}/' \
63
		docs/Makefile
64
65
post-build-DOCS-on:
66
	${MKDIR} ${STAGEDIR}${DOCSDIR}
67
	cd ${WRKSRC}/docs && ${GMAKE} docs && \
68
	cd html && \
69
	${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
70
		'! ( -name .lock -or -name .buildinfo )'
71
72
post-build-MANPAGES-on:
73
	${MKDIR} ${STAGEDIR}${MAN7PREFIX}/man/man7/
74
	${MKDIR} ${STAGEDIR}${MAN7PREFIX}/man/man1/
75
	cd ${WRKSRC}/docs && ${GMAKE} man && \
76
	${INSTALL_MAN} offlineimapui.7 ${STAGEDIR}${MAN7PREFIX}/man/man7/ && \
77
	${INSTALL_MAN} offlineimap.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
78
79
post-install-EXAMPLES-on:
80
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
81
	${INSTALL_DATA} ${WRKSRC}/offlineimap.conf ${STAGEDIR}${EXAMPLESDIR}
82
83
pre-test:
84
	cd ${WRKSRC} && \
85
	${CP} test/credentials.conf.sample test/credentials.conf
86
87
.include <bsd.port.mk>
(-)mail/py-offlineimap3/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1659827944
2
SHA256 (OfflineIMAP-offlineimap3-g20220325-253f97a3e947_GH0.tar.gz) = c1bcc5e18df029bf377dafbef38aeb651455238b60279e45aad2c81d2b95da0f
3
SIZE (OfflineIMAP-offlineimap3-g20220325-253f97a3e947_GH0.tar.gz) = 703329
(-)mail/py-offlineimap3/files/patch-offlineimap_imapserver.py (+11 lines)
Added Link Here
1
--- offlineimap/imapserver.py.orig	2022-02-27 05:55:01 UTC
2
+++ offlineimap/imapserver.py
3
@@ -879,7 +879,7 @@ class IdleThread:
4
             while not success:
5
                 imapobj = self.parent.acquireconnection()
6
                 try:
7
-                    imapobj.select(self.folder)
8
+                    imapobj.select(imaputil.foldername_to_imapname(self.folder))
9
                 except OfflineImapError as e:
10
                     if e.severity == OfflineImapError.ERROR.FOLDER_RETRY:
11
                         # Connection closed, release connection and retry.
(-)mail/py-offlineimap3/files/patch-test_tests_test__01__basic.py (+59 lines)
Added Link Here
1
--- test/tests/test_01_basic.py.orig	2022-03-04 03:43:46 UTC
2
+++ test/tests/test_01_basic.py
3
@@ -17,6 +17,8 @@ import unittest
4
 import logging
5
 from test.OLItest import OLITestLib
6
 
7
+import pytest
8
+
9
 # Things need to be setup first, usually setup.py initializes everything.
10
 # but if e.g. called from command line, we take care of default values here:
11
 if not OLITestLib.cred_file:
12
@@ -47,6 +49,7 @@ class TestBasicFunctions(unittest.TestCase):
13
     def tearDown(self):
14
         OLITestLib.delete_remote_testfolders()
15
 
16
+    @pytest.mark.skip(reason="skpping test needs remote auth")
17
     def test_01_olistartup(self):
18
         """Tests if OLI can be invoked without exceptions
19
 
20
@@ -60,6 +63,7 @@ class TestBasicFunctions(unittest.TestCase):
21
                             "mails, but sync led to {0} folders and {1} mails"
22
                         .format(boxes, mails))
23
 
24
+    @pytest.mark.skip(reason="skpping test needs remote auth")
25
     def test_02_createdir(self):
26
         """Create local 'OLItest 1', sync"""
27
         OLITestLib.delete_maildir('')  # Delete all local maildir folders
28
@@ -71,6 +75,7 @@ class TestBasicFunctions(unittest.TestCase):
29
                             "mails, but sync led to {0} folders and {1} mails"
30
                         .format(boxes, mails))
31
 
32
+    @pytest.mark.skip(reason="skpping test needs remote auth")
33
     def test_03_createdir_quote(self):
34
         """Create local 'OLItest "1"' maildir, sync
35
 
36
@@ -87,6 +92,7 @@ class TestBasicFunctions(unittest.TestCase):
37
                             "mails, but sync led to {0} folders and {1} mails"
38
                         .format(boxes, mails))
39
 
40
+    @pytest.mark.skip(reason="skpping test needs remote auth")
41
     def test_04_nametransmismatch(self):
42
         """Create mismatching remote and local nametrans rules
43
 
44
@@ -108,6 +114,7 @@ class TestBasicFunctions(unittest.TestCase):
45
         # Write out default config file again
46
         OLITestLib.write_config_file()
47
 
48
+    @pytest.mark.skip(reason="skpping test needs remote auth")
49
     def test_05_createmail(self):
50
         """Create mail in OLItest 1, sync, wipe folder sync
51
 
52
@@ -133,6 +140,7 @@ class TestBasicFunctions(unittest.TestCase):
53
                              "assigned the IMAP's UID number, but {0} messages had no valid ID "
54
                          .format(len([None for x in uids if x is None])))
55
 
56
+    @pytest.mark.skip(reason="skpping test needs remote auth")
57
     def test_06_createfolders(self):
58
         """Test if createfolders works as expected
59
 
(-)mail/py-offlineimap3/pkg-descr (+4 lines)
Added Link Here
1
OfflineIMAP is software that downloads your email mailbox(es) as
2
local Maildirs. OfflineIMAP will synchronize both sides via IMAP.
3
4
WWW: https://github.com/OfflineIMAP/offlineimap3

Return to bug 262233