On Fri, 26 Oct 2007, Antoine Jacoutot wrote:
The c-client part has been reviewed and successfully tested by several people
already.
I'm interested to get all kind of feedbacks but would really appreciate some
tests of the server part (imap(s) and/or pop(s)).
Here's an updated diff to actually make php4-imap compile.
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/php4/extensions/Makefile,v
retrieving revision 1.57
diff -u -r1.57 Makefile
--- Makefile 21 Oct 2007 09:43:22 -0000 1.57
+++ Makefile 27 Oct 2007 22:41:54 -0000
@@ -151,7 +151,7 @@
COMMENT-imap= imap, pop3 and nntp extensions for php4
CONFIGURE_ARGS+= --with-imap=shared,${LOCALBASE} \
--with-kerberos=/usr --with-imap-ssl
-LIB_DEPENDS-imap= c-client.>=3::mail/c-client
+LIB_DEPENDS-imap= c-client.>=5::mail/imap-uw,-c-client
WANTLIB-imap= ${WANTLIB} des gssapi crypto krb5 ssl
.endif
@@ -312,6 +312,8 @@
RUN_DEPENDS${i}= :php4-core-${V}:www/php4/core
MODULE_NAME${i}= ${i:S/-//g}
.endfor
+
+FULLPKGNAME-imap= php4-imap-$Vp0
MESSAGE= ${PKGDIR}/MESSAGE
SUBST_VARS= MODULE_NAME PHP_CONFIG_FILE LOCALBASE V
Index: patches/patch-ext_imap_php_imap_c
===================================================================
RCS file: patches/patch-ext_imap_php_imap_c
diff -N patches/patch-ext_imap_php_imap_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-ext_imap_php_imap_c 27 Oct 2007 22:41:54 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+--- ext/imap/php_imap.c.orig Sun Oct 28 00:22:52 2007
++++ ext/imap/php_imap.c Sun Oct 28 00:23:13 2007
+@@ -71,7 +71,7 @@ static int _php_imap_address_size(ADDRESS *addresslist
+ void rfc822_date(char *date);
+ char *cpystr(const char *str);
+ char *cpytxt(SIZEDTEXT *dst, char *text, unsigned long size);
+-long utf8_mime2text(SIZEDTEXT *src, SIZEDTEXT *dst);
++long utf8_mime2text (SIZEDTEXT *src, SIZEDTEXT *dst, long flags);
+ unsigned long find_rightmost_bit(unsigned long *valptr);
+ void fs_give(void **block);
+ void *fs_get(size_t size);
+@@ -2061,7 +2061,7 @@ PHP_FUNCTION(imap_utf8)
+ dest.size = 0;
+
+ cpytxt(&src, Z_STRVAL_PP(str), Z_STRLEN_PP(str));
+- utf8_mime2text(&src, &dest);
++ utf8_mime2text(&src, &dest, U8T_CANONICAL);
+ RETURN_STRINGL(dest.data, strlen(dest.data), 1);
+ }
+ /* }}} */
--
Antoine