summaryrefslogtreecommitdiff
path: root/mail/isync/patches
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2003-12-27 16:54:06 +0000
committerseb <seb@pkgsrc.org>2003-12-27 16:54:06 +0000
commit588134cf911c2acc136c91bab8b707b8c7cbfda5 (patch)
treea5602f8f1d94b52f6668365fed1f001e291d0786 /mail/isync/patches
parentd99a6e4327d1b7c54625261ef55818311ae29bdb (diff)
downloadpkgsrc-588134cf911c2acc136c91bab8b707b8c7cbfda5.tar.gz
Update to version 0.9.2.
Changes in version 0.9 Added Tunnel directive to allow the user to specify a shell command to run to set up an IMAP connection in place of a TCP socket (eg., to run over an SSH session). Added PREAUTH support (useful mostly in conjunction with Tunnel). Messages marked deleted are not uploaded when we are going to expunge. Locally generated messages are not re-fetched after uploading even if the UIDPLUS extension is not supported by the server. Added `OneToOne' configuration option: ignore any Mailbox specifications and instead pick up all mailboxes from the local MailDir and remote Folder and map them 1:1 onto each other according to their names. -C now creates both local and remote boxes; -L and -R create only local/remote. --quiet is now really quiet.
Diffstat (limited to 'mail/isync/patches')
-rw-r--r--mail/isync/patches/patch-aa41
-rw-r--r--mail/isync/patches/patch-ab33
-rw-r--r--mail/isync/patches/patch-ac8
-rw-r--r--mail/isync/patches/patch-ad13
-rw-r--r--mail/isync/patches/patch-ae22
5 files changed, 54 insertions, 63 deletions
diff --git a/mail/isync/patches/patch-aa b/mail/isync/patches/patch-aa
index 735d7d9c2e5..6df6457efd9 100644
--- a/mail/isync/patches/patch-aa
+++ b/mail/isync/patches/patch-aa
@@ -1,13 +1,30 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+$NetBSD: patch-aa,v 1.2 2003/12/27 16:54:06 seb Exp $
---- configure.orig Sat Dec 7 13:58:13 2002
-+++ configure
-@@ -1386,7 +1386,7 @@ else
- #line 1387 "configure"
- #include "confdefs.h"
- #define DB_DBM_HSEARCH 1
--#include <db.h>
-+#include <ndbm.h>
- int main() {
- dbm_open(0,0,0);
- ; return 0; }
+--- src/dotlock.c.orig 2003-05-07 00:06:37.000000000 +0000
++++ src/dotlock.c
+@@ -34,13 +34,16 @@
+ #include <stdio.h>
+ #endif
+
+-static struct flock lck = { 0, SEEK_SET, 0, 0, 0 };
++static struct flock lck;
++
++#define FLOCK_INIT(l) { (l).l_start = 0; (l).l_len = 0; (l).l_whence = SEEK_SET; }
+
+ int dotlock_lock (const char *path, int *fd)
+ {
+ *fd = open (path, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
+ if (*fd == -1)
+ return -1;
++ FLOCK_INIT(lck);
+ lck.l_type = F_WRLCK;
+ if (fcntl (*fd, F_SETLK, &lck))
+ {
+@@ -57,6 +60,7 @@ int dotlock_unlock (int *fd)
+
+ if (*fd != -1)
+ {
++ FLOCK_INIT(lck);
+ lck.l_type = F_UNLCK;
+ if (fcntl (*fd, F_SETLK, &lck))
+ r = -1;
diff --git a/mail/isync/patches/patch-ab b/mail/isync/patches/patch-ab
index 77e1b34c0b1..805bcf3474c 100644
--- a/mail/isync/patches/patch-ab
+++ b/mail/isync/patches/patch-ab
@@ -1,13 +1,22 @@
-$NetBSD: patch-ab,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+$NetBSD: patch-ab,v 1.2 2003/12/27 16:54:06 seb Exp $
---- configure.in.orig Mon Jan 28 19:32:58 2002
-+++ configure.in
-@@ -30,7 +30,7 @@ if test $ac_cv_dbmopen = no; then
- LIBS="$LIBS -ldb"
- ac_cv_libdb=no
- AC_TRY_LINK([#define DB_DBM_HSEARCH 1
--#include <db.h>],
-+#include <ndbm.h>],
- [dbm_open(0,0,0);],
- [ac_cv_libdb=yes])
- LIBS="$save_LIBS"])
+--- src/maildir.c.orig 2003-05-07 00:06:37.000000000 +0000
++++ src/maildir.c
+@@ -239,7 +239,7 @@ maildir_open (const char *path, int flag
+ */
+ key.dptr = p->file;
+ s = strchr (key.dptr, ':');
+- key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
++ key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
+ key = dbm_fetch (m->db, key);
+ if (key.dptr)
+ {
+@@ -294,7 +294,7 @@ maildir_expunge (mailbox_t * mbox, int d
+ /* remove the message from the UID map */
+ key.dptr = tmp->file;
+ s = strchr (key.dptr, ':');
+- key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
++ key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
+ dbm_delete (mbox->db, key);
+ *cur = (*cur)->next;
+ free (tmp->file);
diff --git a/mail/isync/patches/patch-ac b/mail/isync/patches/patch-ac
index ca74449f45a..597570ea63b 100644
--- a/mail/isync/patches/patch-ac
+++ b/mail/isync/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
+$NetBSD: patch-ac,v 1.2 2003/12/27 16:54:06 seb Exp $
---- sync.c.orig Mon Jan 28 19:19:56 2002
-+++ sync.c
-@@ -48,7 +48,7 @@ set_uid (DBM * db, const char *f, unsign
+--- src/sync.c.orig 2003-05-07 00:06:37.000000000 +0000
++++ src/sync.c
+@@ -53,7 +53,7 @@ set_uid (DBM * db, const char *f, unsign
key.dptr = (void *) f;
s = strchr (f, ':');
diff --git a/mail/isync/patches/patch-ad b/mail/isync/patches/patch-ad
deleted file mode 100644
index 78e4c9675c6..00000000000
--- a/mail/isync/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
-
---- isync.h.orig Wed Jan 16 19:47:28 2002
-+++ isync.h
-@@ -25,7 +25,7 @@
- #if HAVE_LIBSSL
- #include <openssl/ssl.h>
- #endif
--#include <db.h>
-+#include <ndbm.h>
- #include "debug.h"
-
- typedef struct
diff --git a/mail/isync/patches/patch-ae b/mail/isync/patches/patch-ae
deleted file mode 100644
index 9330296192d..00000000000
--- a/mail/isync/patches/patch-ae
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ae,v 1.1.1.1 2002/12/07 15:12:41 cjep Exp $
-
---- maildir.c.orig Wed Jan 16 22:17:54 2002
-+++ maildir.c
-@@ -280,7 +280,7 @@ maildir_open (const char *path, int flag
- */
- key.dptr = p->file;
- s = strchr (key.dptr, ':');
-- key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
-+ key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
- key = dbm_fetch (m->db, key);
- if (key.dptr)
- {
-@@ -336,7 +336,7 @@ maildir_expunge (mailbox_t * mbox, int d
- /* remove the message from the UID map */
- key.dptr = tmp->file;
- s = strchr (key.dptr, ':');
-- key.dsize = s ? (size_t) (s - key.dptr) : strlen (key.dptr);
-+ key.dsize = s ? (size_t) (s - (char *)key.dptr) : strlen (key.dptr);
- dbm_delete (mbox->db, key);
- *cur = (*cur)->next;
- free (tmp->file);