On Tue, Oct 06, 2009 at 11:07:27PM +0200, Pierre-Emmanuel André wrote:
> On Tue, Oct 06, 2009 at 06:27:33PM +0200, Pierre-Emmanuel André wrote:
> > On Fri, Jul 17, 2009 at 12:40:40PM +0200, Pierre-Emmanuel André wrote:
> > > Hi,
> > > 
> > > I updated Dovecot to the latest version (1.2.1), added support for 
> > > Managesieve and removed the old cmusieve plugin (now it's the dovecot 
> > > native 
> > > sieve plugin).
> > > 
> > > You must be very carefull if you want to try this update !
> > > Important changes to know:
> > > 
> > > 1) Config file changes:
> > > Read http://wiki.dovecot.org/Upgrading/1.2
> > > 
> > > 2) The new sieve plugin
> > > Please read http://wiki.dovecot.org/LDA/Sieve/Dovecot#configuration 
> > > and especially 
> > > http://wiki.dovecot.org/LDA/Sieve/Dovecot#Migration_from_CMUSieve
> > > Be very carefull with the old sieve extensions !
> > > For the notify extension, you must edit your sieve scripts (sed, perl, 
> > > whatever are your 
> > > friends).
> > > For imapflags, i added the line sieve_extensions = +imapflags in the 
> > > patch file, so you 
> > > just have to uncomment this line in your dovecot.conf.
> > > 
> > > 3) Managesieve
> > > It's not enable by default. You must add "managesieve" in you 
> > > dovecot.conf on the 
> > > line protocols =
> > > 
> > > 
> > > Tested on @amd64 with sieve scripts.
> > > Diff available here too: 
> > > http://openbsd.raveland.org/ports/dovecot-1.2.1.diff
> > > 
> > > (Note: patch -E is required)
> > > 
> > > Feedback welcome !
> > 
> > Updated diff for the latest version 1.2.6.
> 
> Fixes the path for sieve manpages (spotted by giovanni@, thanks).
> 

Fixes PLIST-server (@comment *.a and *.la).
Noticed by Christian Rueger, thanks

Regards,

-- 
Pierre-Emmanuel André <pea at raveland.org>
GPG key: 0x7AE329DC
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/dovecot/Makefile,v
retrieving revision 1.125
diff -u -p -r1.125 Makefile
--- Makefile    15 Sep 2009 22:56:16 -0000      1.125
+++ Makefile    7 Oct 2009 12:47:05 -0000
@@ -5,21 +5,26 @@ SHARED_ONLY=  Yes
 COMMENT-server= compact IMAP/POP3 server
 COMMENT-sieve= Sieve mail filtering for Dovecot
 
-V_MAJOR=       1.1
-V_DOVECOT=     1.1.19
-V_SIEVE=       1.1.7
+V_MAJOR=       1.2
+V_DOVECOT=     1.2.6
+V_SIEVE=       0.1.12
+V_MANAGESIEVE= 0.11.9
 
 PKGNAME=       dovecot-${V_DOVECOT}
 PKGNAME-server=        dovecot-${V_DOVECOT}
-FULLPKGNAME-sieve= dovecot-sieve-${V_SIEVE}
+FULLPKGNAME-sieve= dovecot-sieve-${V_SIEVE}v0
 
 DISTNAME=      dovecot-${V_DOVECOT}
 CATEGORIES=    mail
 MASTER_SITES=  ${HOMEPAGE}releases/${V_MAJOR}/
-MASTER_SITES0= ${HOMEPAGE}releases/sieve/
+MASTER_SITES0= http://www.rename-it.nl/dovecot/${V_MAJOR}/
 
-DISTFILES=     dovecot-${V_DOVECOT}.tar.gz \
-               dovecot-sieve-${V_SIEVE}.tar.gz:0
+DISTFILES=             dovecot-${V_DOVECOT}.tar.gz \
+                       dovecot-${V_MAJOR}-sieve-${V_SIEVE}.tar.gz:0 \
+                       
dovecot-${V_MAJOR}-managesieve-${V_MANAGESIEVE}.tar.gz:0 \
+                       ${DIST_MANAGESIEVE}:0
+
+DIST_MANAGESIEVE=      
dovecot-${V_DOVECOT}-managesieve-${V_MANAGESIEVE}.diff.gz
 
 HOMEPAGE=      http://www.dovecot.org/
 
@@ -31,8 +36,8 @@ PERMIT_PACKAGE_FTP=   Yes
 PERMIT_DISTFILES_CDROM=        Yes
 PERMIT_DISTFILES_FTP=  Yes
 
-WANTLIB-server=                c crypto gssapi krb5 rpcsvc ssl z
-WANTLIB-sieve=         c
+WANTLIB-server=                c crypto gssapi krb5 ssl z
+WANTLIB-sieve=         c crypto ssl
 
 MODULES=       converters/libiconv
 LIB_DEPENDS+=  bz2::archivers/bzip2
@@ -48,7 +53,7 @@ CFLAGS+=      -I/usr/include/kerberosV -I${LO
 
 USE_LIBTOOL=           Yes
 # Should be 2.63
-AUTOCONF_VERSION=      2.61
+AUTOCONF_VERSION=      2.62
 CONFIGURE_STYLE=       autoconf
 CONFIGURE_ARGS+=       --localstatedir=/var \
                        --with-gssapi \
@@ -59,10 +64,15 @@ CONFIGURE_ENV=              LDFLAGS="-L${LOCALBASE}/
 
 .if !${FLAVOR:L:Mno_sieve}
 MULTI_PACKAGES+=       -sieve
-SIEVE_DIR=             ${WRKDIR}/dovecot-sieve-${V_SIEVE}
+SIEVE_DIR=             ${WRKDIR}/dovecot-${V_MAJOR}-sieve-${V_SIEVE}
+MANAGESIEVE_DIR=       
${WRKDIR}/dovecot-${V_MAJOR}-managesieve-${V_MANAGESIEVE}
 AUTOCONF_DIR+=         ${WRKSRC} ${SIEVE_DIR}
+AUTOCONF_DIR+=         ${WRKSRC} ${MANAGESIEVE_DIR}
 RUN_DEPENDS-sieve=     ::${BUILD_PKGPATH}
 LIB_DEPENDS-sieve=     ${MODLIBICONV_LIB_DEPENDS}
+PATCH_LIST=            patch-* managesieve-patch-*
+.else
+PATCH_LIST=            patch-* nosieve-patch-*
 .endif
 
 .if ${FLAVOR:L:Mbdb}
@@ -93,11 +103,20 @@ CONFIGURE_ARGS+=   --with-sqlite
 LIB_DEPENDS+=          sqlite3::databases/sqlite3
 .endif
 
+
 .if !${FLAVOR:L:Mno_sieve}
+pre-patch:
+       cd ${WRKSRC} && \
+       gunzip -c ${DISTDIR}/${DIST_MANAGESIEVE} | patch -p1 2> /dev/null
+
 post-configure:
        (cd ${WRKSRC}; ${MAKE_PROGRAM} dovecot-config)
        (cd ${SIEVE_DIR}; ${SETENV} ${CONFIGURE_ENV} \
-               ./configure --with-dovecot=${WRKSRC})
+               ./configure --with-dovecot=${WRKSRC} \
+               --mandir=${LOCALBASE}/man)
+       (cd ${MANAGESIEVE_DIR}; ${SETENV} ${CONFIGURE_ENV} \
+               ./configure --with-dovecot=${WRKSRC} \
+               --with-dovecot-sieve=${SIEVE_DIR})
 .endif
 
 pre-build:
@@ -106,6 +125,7 @@ pre-build:
 .if !${FLAVOR:L:Mno_sieve}
 post-build:
        (cd ${SIEVE_DIR}; ${MAKE_PROGRAM} ${MAKE_FLAGS})
+       (cd ${MANAGESIEVE_DIR}; ${MAKE_PROGRAM} ${MAKE_FLAGS})
 .endif
 
 post-install:
@@ -113,16 +133,21 @@ post-install:
        ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf \
                ${WRKSRC}/doc/dovecot-sql-example.conf \
                ${WRKSRC}/doc/dovecot-ldap-example.conf \
+               ${WRKSRC}/doc/dovecot-db-example.conf \
                ${WRKSRC}/dovecot-example.conf \
+               ${WRKSRC}/doc/dovecot-dict-sql-example.conf \
                ${PREFIX}/share/examples/dovecot
        ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh \
                ${PREFIX}/sbin/dovecot-mkcert.sh
 .if !${FLAVOR:L:Mno_sieve}
-       cd ${SIEVE_DIR}/src/libsieve && ${INSTALL_PROGRAM} {sievec,sieved} \
-               ${PREFIX}/libexec/dovecot
-       ${INSTALL_DATA} \
-               ${SIEVE_DIR}/src/.libs/lib90_cmusieve_plugin.{a,la,so} \
-               ${PREFIX}/lib/dovecot/lda
+       cd ${SIEVE_DIR} &&  env -i ${MAKE_ENV} \
+               PREFIX=${WRKINST}${PREFIX} ${DESTDIRNAME}=${WRKINST} \
+               TRUEPREFIX=${PREFIX} \
+               ${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} -f ${MAKE_FILE} ${FAKE_TARGET}
+       cd ${MANAGESIEVE_DIR} && env -i ${MAKE_ENV} \
+               PREFIX=${WRKINST}${PREFIX} ${DESTDIRNAME}=${WRKINST} \
+               TRUEPREFIX=${PREFIX} \
+               ${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} -f ${MAKE_FILE} ${FAKE_TARGET}
 .endif
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/mail/dovecot/distinfo,v
retrieving revision 1.77
diff -u -p -r1.77 distinfo
--- distinfo    15 Sep 2009 22:56:16 -0000      1.77
+++ distinfo    7 Oct 2009 12:47:05 -0000
@@ -1,10 +1,20 @@
-MD5 (dovecot-1.1.19.tar.gz) = dVvipLrR6P0m8itGPlRBgw==
-MD5 (dovecot-sieve-1.1.7.tar.gz) = 8TP0mph23ffJKQ8sTSVbRA==
-RMD160 (dovecot-1.1.19.tar.gz) = j+JbWlNHeS56qRnMKFwbjJm6s24=
-RMD160 (dovecot-sieve-1.1.7.tar.gz) = BKVQiWmwAq41NcNaKUPssdU/wWs=
-SHA1 (dovecot-1.1.19.tar.gz) = zo+KE1osjvG9DNHO/wQBhALzy1g=
-SHA1 (dovecot-sieve-1.1.7.tar.gz) = xK1j1nzjp6/F9Aho0UKzhupYmXA=
-SHA256 (dovecot-1.1.19.tar.gz) = M98dl7kkGyXfy8eMhrphFPFt3xR2OHlDKmr+Ss0byVo=
-SHA256 (dovecot-sieve-1.1.7.tar.gz) = 
q9nhjtgwczl0CENWp7cw70VLKAwHeRfwkMGG2+8qDGA=
-SIZE (dovecot-1.1.19.tar.gz) = 2389194
-SIZE (dovecot-sieve-1.1.7.tar.gz) = 435670
+MD5 (dovecot-1.2-managesieve-0.11.9.tar.gz) = kj1JZeCzV9tJPzsssQbY1w==
+MD5 (dovecot-1.2-sieve-0.1.12.tar.gz) = h0nyZgbEVj8GdrrMROicog==
+MD5 (dovecot-1.2.6-managesieve-0.11.9.diff.gz) = YV1dGthDZUOEyhHPUjwrvA==
+MD5 (dovecot-1.2.6.tar.gz) = gHZm8aES5zecTbtXyc5ImQ==
+RMD160 (dovecot-1.2-managesieve-0.11.9.tar.gz) = G4VUC7CzLjCm+OeAtpIsTozjuyM=
+RMD160 (dovecot-1.2-sieve-0.1.12.tar.gz) = ku1YXwmOuqN77Oyla92RLUfn8WI=
+RMD160 (dovecot-1.2.6-managesieve-0.11.9.diff.gz) = 
Q0CMQJDnw4SjC6z9IHRT5QWDJx0=
+RMD160 (dovecot-1.2.6.tar.gz) = 5ghuGlfdPPdWFII5FrUJ/t/FKD0=
+SHA1 (dovecot-1.2-managesieve-0.11.9.tar.gz) = Y/PGz2YVWGxbS70v7/yfDHdO3Lc=
+SHA1 (dovecot-1.2-sieve-0.1.12.tar.gz) = zRQvBRtFtYzBYiIvnM3BLh9pw0M=
+SHA1 (dovecot-1.2.6-managesieve-0.11.9.diff.gz) = wnEOCcm3HONgflYUaD3kdI2sbYU=
+SHA1 (dovecot-1.2.6.tar.gz) = Au3jk2EjJS1ULakEiKLRifo5l5w=
+SHA256 (dovecot-1.2-managesieve-0.11.9.tar.gz) = 
mv+H+uGbL8DhH0t4wLFBXhFBujkwV5xGy/kS4M2mUv8=
+SHA256 (dovecot-1.2-sieve-0.1.12.tar.gz) = 
3CgYL8C+2yYiqFGjOh2rTIUaqhBsFFUPeCo7ir3jZRQ=
+SHA256 (dovecot-1.2.6-managesieve-0.11.9.diff.gz) = 
SSj+oBDz2ZPS/Cu2JM91hmgPQqrS91SPUVdz7SRKAWQ=
+SHA256 (dovecot-1.2.6.tar.gz) = uFEWiKYxu/HsNeh8aFz0JSCFQEqTHKIORwrOKijUwiU=
+SIZE (dovecot-1.2-managesieve-0.11.9.tar.gz) = 396242
+SIZE (dovecot-1.2-sieve-0.1.12.tar.gz) = 964938
+SIZE (dovecot-1.2.6-managesieve-0.11.9.diff.gz) = 6443
+SIZE (dovecot-1.2.6.tar.gz) = 2668219
Index: patches/managesieve-patch-dovecot-example_conf
===================================================================
RCS file: patches/managesieve-patch-dovecot-example_conf
diff -N patches/managesieve-patch-dovecot-example_conf
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/managesieve-patch-dovecot-example_conf      7 Oct 2009 12:47:05 
-0000
@@ -0,0 +1,248 @@
+$OpenBSD: patch-dovecot-example_conf,v 1.47 2009/05/19 08:10:56 sthen Exp $
+--- dovecot-example.conf.orig  Tue Oct  6 14:03:03 2009
++++ dovecot-example.conf       Tue Oct  6 14:03:04 2009
+@@ -12,12 +12,11 @@
+ # Default values are shown for each setting, it's not required to uncomment
+ # those. These are exceptions to this though: No sections (e.g. namespace {})
+ # or plugin settings are added by default, they're listed only as examples.
+-# Paths are also just examples with the real defaults being based on configure
+-# options. The paths listed here are for configure --prefix=/usr
+-# --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl
+ 
++# *** NOTE *** Some values HAVE been changed for OpenBSD use.
++
+ # Base directory where to store runtime data.
+-#base_dir = /var/run/dovecot/
++base_dir = /var/dovecot/
+ 
+ # Protocols we want to be serving: imap imaps pop3 pop3s managesieve
+ # If you only want to use dovecot-auth, you can set this to "none".
+@@ -43,13 +42,13 @@
+ #     listen = *:12000
+ #     ..
+ #   }
+-#listen = *
++listen = *, [::]
+ 
+ # Disable LOGIN command and all other plaintext authentications unless
+ # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
+ # matches the local IP (ie. you're connecting from the same computer), the
+ # connection is considered secure and plaintext authentication is allowed.
+-#disable_plaintext_auth = yes
++disable_plaintext_auth = yes
+ 
+ # Should all IMAP and POP3 processes be killed when Dovecot master process
+ # shuts down. Setting this to "no" means that Dovecot can be upgraded without
+@@ -96,7 +95,7 @@
+ # dropping root privileges, so keep the key file unreadable by anyone but
+ # root. Included doc/mkcert.sh can be used to easily generate self-signed
+ # certificate, just make sure to update the domains in dovecot-openssl.cnf
+-#ssl_cert_file = /etc/ssl/certs/dovecot.pem
++ssl_cert_file = /etc/ssl/dovecotcert.pem
+ #ssl_key_file = /etc/ssl/private/dovecot.pem
+ 
+ # If key file is password protected, give the password here. Alternatively
+@@ -140,7 +139,7 @@
+ # which login needs to be able to connect to. The sockets are created when
+ # running as root, so you don't have to worry about permissions. Note that
+ # everything in this directory is deleted when Dovecot is started.
+-#login_dir = /var/run/dovecot/login
++login_dir = /var/dovecot/login
+ 
+ # chroot login process to the login_dir. Only reason not to do this is if you
+ # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
+@@ -150,7 +149,7 @@
+ # and don't use it anywhere else. The user must also belong to a group where
+ # only it has access, it's used to control access for authentication process.
+ # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
+-#login_user = dovecot
++login_user = _dovecot
+ 
+ # Set max. process size in megabytes. If you don't use
+ # login_process_per_connection you might need to grow this.
+@@ -340,8 +339,9 @@
+ #mail_log_max_lines_per_sec = 10
+ 
+ # Don't use mmap() at all. This is required if you store indexes to shared
+-# filesystems (NFS or clustered filesystem).
+-#mmap_disable = no
++# filesystems (NFS or clustered filesystem) or for some operating systems
++# which use a separate cache for mmap, such as OpenBSD.
++mmap_disable = yes
+ 
+ # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
+ # since version 3, so this should be safe to use nowadays by default.
+@@ -486,7 +486,7 @@
+ # locking methods as well. Some operating systems don't allow using some of
+ # them simultaneously.
+ #mbox_read_locks = fcntl
+-#mbox_write_locks = dotlock fcntl
++mbox_write_locks = fcntl
+ 
+ # Maximum time in seconds to wait for lock (all of them) before aborting.
+ #mbox_lock_timeout = 300
+@@ -541,20 +541,20 @@
+ 
+ protocol imap {
+   # Login executable location.
+-  #login_executable = /usr/libexec/dovecot/imap-login
++  #login_executable = ${PREFIX}/libexec/dovecot/imap-login
+ 
+   # IMAP executable location. Changing this allows you to execute other
+   # binaries before the imap process is executed.
+   #
+   # This would write rawlogs into user's ~/dovecot.rawlog/, if it exists:
+-  #   mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
++  #   mail_executable = ${PREFIX}/libexec/dovecot/rawlog 
${PREFIX}/libexec/dovecot/imap
+   # <doc/wiki/Debugging/Rawlog.txt>
+   #
+   # This would attach gdb into the imap process and write backtraces into
+   # /tmp/gdbhelper.* files:
+-  #   mail_executable = /usr/libexec/dovecot/gdbhelper 
/usr/libexec/dovecot/imap
++  #   mail_executable = ${PREFIX}/libexec/dovecot/gdbhelper 
${PREFIX}/libexec/dovecot/imap
+   #
+-  #mail_executable = /usr/libexec/dovecot/imap
++  #mail_executable = ${PREFIX}/libexec/dovecot/imap
+ 
+   # Maximum IMAP command line length in bytes. Some clients generate very long
+   # command lines with huge mailboxes, so you may need to raise this if you 
get
+@@ -568,7 +568,7 @@ protocol imap {
+   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
+   # list of plugins to load.
+   #mail_plugins = 
+-  #mail_plugin_dir = /usr/lib/dovecot/imap
++  #mail_plugin_dir = ${PREFIX}/lib/dovecot/imap
+ 
+   # IMAP logout format string:
+   #  %i - total number of bytes read from client
+@@ -609,7 +609,7 @@ protocol imap {
+   #     but not both. Thunderbird separates these two by forcing server to
+   #     accept '/' suffix in mailbox names in subscriptions list.
+   # The list is space-separated.
+-  #imap_client_workarounds = 
++  imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
+ }
+   
+ ##
+@@ -618,11 +618,11 @@ protocol imap {
+ 
+ protocol pop3 {
+   # Login executable location.
+-  #login_executable = /usr/libexec/dovecot/pop3-login
++  #login_executable = ${PREFIX}/libexec/dovecot/pop3-login
+ 
+   # POP3 executable location. See IMAP's mail_executable above for examples
+   # how this could be changed.
+-  #mail_executable = /usr/libexec/dovecot/pop3
++  #mail_executable = ${PREFIX}/libexec/dovecot/pop3
+ 
+   # Don't try to set mails non-recent or seen with POP3 sessions. This is
+   # mostly intended to reduce disk I/O. With maildir it doesn't move files
+@@ -686,7 +686,7 @@ protocol pop3 {
+   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
+   # list of plugins to load.
+   #mail_plugins = 
+-  #mail_plugin_dir = /usr/lib/dovecot/pop3
++  #mail_plugin_dir = ${PREFIX}/lib/dovecot/pop3
+ 
+   # Workarounds for various client bugs:
+   #   outlook-no-nuls:
+@@ -696,7 +696,7 @@ protocol pop3 {
+   #     Outlook Express and Netscape Mail breaks if end of headers-line is
+   #     missing. This option simply sends it if it's missing.
+   # The list is space-separated.
+-  #pop3_client_workarounds = 
++  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
+ }
+ 
+ ##
+@@ -705,11 +705,11 @@ protocol pop3 {
+ 
+ protocol managesieve {
+   # Login executable location.
+-  #login_executable = /usr/libexec/dovecot/managesieve-login
++  #login_executable = {PREFIX}/libexec/dovecot/managesieve-login
+ 
+   # ManageSieve executable location. See IMAP's mail_executable above for 
+   # examples how this could be changed.
+-  #mail_executable = /usr/libexec/dovecot/managesieve
++  #mail_executable = ${PREFIX}/libexec/dovecot/managesieve
+ 
+   # Maximum ManageSieve command line length in bytes. This setting is 
+   # directly borrowed from IMAP. But, since long command lines are very
+@@ -750,7 +750,7 @@ protocol lda {
+   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
+   # list of plugins to load.
+   #mail_plugins = 
+-  #mail_plugin_dir = /usr/lib/dovecot/lda
++  #mail_plugin_dir = ${PREFIX}/lib/dovecot/lda
+ 
+   # If user is over quota, return with temporary failure instead of
+   # bouncing the mail.
+@@ -764,7 +764,7 @@ protocol lda {
+   #deliver_log_format = msgid=%m: %$
+ 
+   # Binary to use for sending mails.
+-  #sendmail_path = /usr/lib/sendmail
++  #sendmail_path = /usr/sbin/sendmail
+ 
+   # Subject: header to use for rejection mails. You can use the same variables
+   # as for rejection_reason below.
+@@ -783,7 +783,7 @@ protocol lda {
+ ##
+ 
+ # Executable location
+-#auth_executable = /usr/libexec/dovecot/dovecot-auth
++#auth_executable = ${PREFIX}/libexec/dovecot/dovecot-auth
+ 
+ # Set max. process size in megabytes.
+ #auth_process_size = 256
+@@ -912,7 +912,7 @@ auth default {
+   # database (passwd usually), you can use static userdb.
+   # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
+   # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
+-  passdb pam {
++  #passdb pam {
+     # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
+     # [cache_key=<key>] [<service name>]
+     #
+@@ -945,7 +945,7 @@ auth default {
+     #   args = session=yes %Ls
+     #   args = cache_key=%u dovecot
+     #args = dovecot
+-  }
++  #}
+ 
+   # System users (NSS, /etc/passwd, or similiar)
+   # In many systems nowadays this uses Name Service Switch, which is
+@@ -965,10 +965,10 @@ auth default {
+ 
+   # PAM-like authentication for OpenBSD.
+   # <doc/wiki/PasswordDatabase.BSDAuth.txt>
+-  #passdb bsdauth {
++  passdb bsdauth {
+     # [cache_key=<key>] - See cache_key in PAM for explanation.
+     #args =
+-  #}
++  }
+ 
+   # passwd-like file with specified location
+   # <doc/wiki/AuthDatabase.PasswdFile.txt>
+@@ -1232,7 +1232,7 @@ plugin {
+   # a dictionary so it can be quickly determined which mailboxes contain
+   # expired mails. The actual expunging is done in a nightly cronjob, which
+   # you must set up:
+-  #   dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool
++  #   dovecot --exec-mail ext ${PREFIX}/libexec/dovecot/expire-tool
+   #expire = Trash 7 Spam 30
+   #expire_dict = proxy::expire
+ 
+@@ -1261,6 +1261,8 @@ plugin {
+   # The path to the directory where the personal Sieve scripts are stored. 
For 
+   # ManageSieve this is where the uploaded scripts are stored.
+   #sieve_dir=~/sieve
++
++  #sieve_extensions=+imapflags
+ }
+ 
+ # Config files can also be included:
Index: patches/nosieve-patch-dovecot-example_conf
===================================================================
RCS file: patches/nosieve-patch-dovecot-example_conf
diff -N patches/nosieve-patch-dovecot-example_conf
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/nosieve-patch-dovecot-example_conf  7 Oct 2009 12:47:05 -0000
@@ -0,0 +1,216 @@
+$OpenBSD: patch-dovecot-example_conf,v 1.47 2009/05/19 08:10:56 sthen Exp $
+--- dovecot-example.conf.orig  Thu Jun 18 09:37:43 2009
++++ dovecot-example.conf       Wed Jul  8 20:57:18 2009
+@@ -12,12 +12,11 @@
+ # Default values are shown for each setting, it's not required to uncomment
+ # those. These are exceptions to this though: No sections (e.g. namespace {})
+ # or plugin settings are added by default, they're listed only as examples.
+-# Paths are also just examples with the real defaults being based on configure
+-# options. The paths listed here are for configure --prefix=/usr
+-# --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl
+ 
++# *** NOTE *** Some values HAVE been changed for OpenBSD use.
++
+ # Base directory where to store runtime data.
+-#base_dir = /var/run/dovecot/
++base_dir = /var/dovecot/
+ 
+ # Protocols we want to be serving: imap imaps pop3 pop3s
+ # If you only want to use dovecot-auth, you can set this to "none".
+@@ -39,13 +38,13 @@
+ #     listen = *:10100
+ #     ..
+ #   }
+-#listen = *
++listen = *, [::]
+ 
+ # Disable LOGIN command and all other plaintext authentications unless
+ # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
+ # matches the local IP (ie. you're connecting from the same computer), the
+ # connection is considered secure and plaintext authentication is allowed.
+-#disable_plaintext_auth = yes
++disable_plaintext_auth = yes
+ 
+ # Should all IMAP and POP3 processes be killed when Dovecot master process
+ # shuts down. Setting this to "no" means that Dovecot can be upgraded without
+@@ -92,7 +91,7 @@
+ # dropping root privileges, so keep the key file unreadable by anyone but
+ # root. Included doc/mkcert.sh can be used to easily generate self-signed
+ # certificate, just make sure to update the domains in dovecot-openssl.cnf
+-#ssl_cert_file = /etc/ssl/certs/dovecot.pem
++ssl_cert_file = /etc/ssl/dovecotcert.pem
+ #ssl_key_file = /etc/ssl/private/dovecot.pem
+ 
+ # If key file is password protected, give the password here. Alternatively
+@@ -136,7 +135,7 @@
+ # which login needs to be able to connect to. The sockets are created when
+ # running as root, so you don't have to worry about permissions. Note that
+ # everything in this directory is deleted when Dovecot is started.
+-#login_dir = /var/run/dovecot/login
++login_dir = /var/dovecot/login
+ 
+ # chroot login process to the login_dir. Only reason not to do this is if you
+ # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
+@@ -146,7 +145,7 @@
+ # and don't use it anywhere else. The user must also belong to a group where
+ # only it has access, it's used to control access for authentication process.
+ # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
+-#login_user = dovecot
++login_user = _dovecot
+ 
+ # Set max. process size in megabytes. If you don't use
+ # login_process_per_connection you might need to grow this.
+@@ -336,8 +335,9 @@
+ #mail_log_max_lines_per_sec = 10
+ 
+ # Don't use mmap() at all. This is required if you store indexes to shared
+-# filesystems (NFS or clustered filesystem).
+-#mmap_disable = no
++# filesystems (NFS or clustered filesystem) or for some operating systems
++# which use a separate cache for mmap, such as OpenBSD.
++mmap_disable = yes
+ 
+ # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
+ # since version 3, so this should be safe to use nowadays by default.
+@@ -482,7 +482,7 @@
+ # locking methods as well. Some operating systems don't allow using some of
+ # them simultaneously.
+ #mbox_read_locks = fcntl
+-#mbox_write_locks = dotlock fcntl
++mbox_write_locks = fcntl
+ 
+ # Maximum time in seconds to wait for lock (all of them) before aborting.
+ #mbox_lock_timeout = 300
+@@ -537,20 +537,20 @@
+ 
+ protocol imap {
+   # Login executable location.
+-  #login_executable = /usr/libexec/dovecot/imap-login
++  #login_executable = ${PREFIX}/libexec/dovecot/imap-login
+ 
+   # IMAP executable location. Changing this allows you to execute other
+   # binaries before the imap process is executed.
+   #
+   # This would write rawlogs into user's ~/dovecot.rawlog/, if it exists:
+-  #   mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
++  #   mail_executable = ${PREFIX}/libexec/dovecot/rawlog 
${PREFIX}/libexec/dovecot/imap
+   # <doc/wiki/Debugging/Rawlog.txt>
+   #
+   # This would attach gdb into the imap process and write backtraces into
+   # /tmp/gdbhelper.* files:
+-  #   mail_executable = /usr/libexec/dovecot/gdbhelper 
/usr/libexec/dovecot/imap
++  #   mail_executable = ${PREFIX}/libexec/dovecot/gdbhelper 
${PREFIX}/libexec/dovecot/imap
+   #
+-  #mail_executable = /usr/libexec/dovecot/imap
++  #mail_executable = ${PREFIX}/libexec/dovecot/imap
+ 
+   # Maximum IMAP command line length in bytes. Some clients generate very long
+   # command lines with huge mailboxes, so you may need to raise this if you 
get
+@@ -564,7 +564,7 @@ protocol imap {
+   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
+   # list of plugins to load.
+   #mail_plugins = 
+-  #mail_plugin_dir = /usr/lib/dovecot/imap
++  #mail_plugin_dir = ${PREFIX}/lib/dovecot/imap
+ 
+   # IMAP logout format string:
+   #  %i - total number of bytes read from client
+@@ -605,7 +605,7 @@ protocol imap {
+   #     but not both. Thunderbird separates these two by forcing server to
+   #     accept '/' suffix in mailbox names in subscriptions list.
+   # The list is space-separated.
+-  #imap_client_workarounds = 
++  imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
+ }
+   
+ ##
+@@ -614,11 +614,11 @@ protocol imap {
+ 
+ protocol pop3 {
+   # Login executable location.
+-  #login_executable = /usr/libexec/dovecot/pop3-login
++  #login_executable = ${PREFIX}/libexec/dovecot/pop3-login
+ 
+   # POP3 executable location. See IMAP's mail_executable above for examples
+   # how this could be changed.
+-  #mail_executable = /usr/libexec/dovecot/pop3
++  #mail_executable = ${PREFIX}/libexec/dovecot/pop3
+ 
+   # Don't try to set mails non-recent or seen with POP3 sessions. This is
+   # mostly intended to reduce disk I/O. With maildir it doesn't move files
+@@ -678,7 +678,7 @@ protocol pop3 {
+   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
+   # list of plugins to load.
+   #mail_plugins = 
+-  #mail_plugin_dir = /usr/lib/dovecot/pop3
++  #mail_plugin_dir = ${PREFIX}/lib/dovecot/pop3
+ 
+   # Workarounds for various client bugs:
+   #   outlook-no-nuls:
+@@ -688,7 +688,7 @@ protocol pop3 {
+   #     Outlook Express and Netscape Mail breaks if end of headers-line is
+   #     missing. This option simply sends it if it's missing.
+   # The list is space-separated.
+-  #pop3_client_workarounds = 
++  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
+ }
+ 
+ ##
+@@ -706,7 +706,7 @@ protocol lda {
+   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
+   # list of plugins to load.
+   #mail_plugins = 
+-  #mail_plugin_dir = /usr/lib/dovecot/lda
++  #mail_plugin_dir = ${PREFIX}/lib/dovecot/lda
+ 
+   # If user is over quota, return with temporary failure instead of
+   # bouncing the mail.
+@@ -720,7 +720,7 @@ protocol lda {
+   #deliver_log_format = msgid=%m: %$
+ 
+   # Binary to use for sending mails.
+-  #sendmail_path = /usr/lib/sendmail
++  #sendmail_path = /usr/sbin/sendmail
+ 
+   # Subject: header to use for rejection mails. You can use the same variables
+   # as for rejection_reason below.
+@@ -739,7 +739,7 @@ protocol lda {
+ ##
+ 
+ # Executable location
+-#auth_executable = /usr/libexec/dovecot/dovecot-auth
++#auth_executable = ${PREFIX}/libexec/dovecot/dovecot-auth
+ 
+ # Set max. process size in megabytes.
+ #auth_process_size = 256
+@@ -868,7 +868,7 @@ auth default {
+   # database (passwd usually), you can use static userdb.
+   # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
+   # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
+-  passdb pam {
++  #passdb pam {
+     # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
+     # [cache_key=<key>] [<service name>]
+     #
+@@ -901,7 +901,7 @@ auth default {
+     #   args = session=yes %Ls
+     #   args = cache_key=%u dovecot
+     #args = dovecot
+-  }
++  #}
+ 
+   # System users (NSS, /etc/passwd, or similiar)
+   # In many systems nowadays this uses Name Service Switch, which is
+@@ -921,10 +921,10 @@ auth default {
+ 
+   # PAM-like authentication for OpenBSD.
+   # <doc/wiki/PasswordDatabase.BSDAuth.txt>
+-  #passdb bsdauth {
++  passdb bsdauth {
+     # [cache_key=<key>] - See cache_key in PAM for explanation.
+     #args =
+-  #}
++  }
+ 
+   # passwd-like file with specified location
+   # <doc/wiki/AuthDatabase.PasswdFile.txt>
Index: patches/patch-Makefile_in
===================================================================
RCS file: /cvs/ports/mail/dovecot/patches/patch-Makefile_in,v
retrieving revision 1.21
diff -u -p -r1.21 patch-Makefile_in
--- patches/patch-Makefile_in   19 May 2009 08:10:56 -0000      1.21
+++ patches/patch-Makefile_in   7 Oct 2009 12:47:05 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-Makefile_in,v 1.21 2009/05/19 08:10:56 sthen Exp $
---- Makefile.in.orig   Sun May 17 21:39:56 2009
-+++ Makefile.in        Mon May 18 05:42:21 2009
-@@ -669,7 +669,7 @@ install-data: install-data-recursive
+--- Makefile.in.orig   Mon Sep 14 04:09:12 2009
++++ Makefile.in        Tue Oct  6 14:03:04 2009
+@@ -670,7 +670,7 @@ install-data: install-data-recursive
  uninstall: uninstall-recursive
  
  install-am: all-am
Index: patches/patch-configure_in
===================================================================
RCS file: /cvs/ports/mail/dovecot/patches/patch-configure_in,v
retrieving revision 1.20
diff -u -p -r1.20 patch-configure_in
--- patches/patch-configure_in  15 Sep 2009 22:56:16 -0000      1.20
+++ patches/patch-configure_in  7 Oct 2009 12:47:05 -0000
@@ -1,7 +1,7 @@
 $OpenBSD: patch-configure_in,v 1.20 2009/09/15 22:56:16 sthen Exp $
---- configure.in.orig  Sun Sep 13 22:12:28 2009
-+++ configure.in       Mon Sep 14 17:49:22 2009
-@@ -1812,74 +1813,16 @@ fi
+--- configure.in.orig  Mon Sep 14 04:08:41 2009
++++ configure.in       Tue Oct  6 14:04:58 2009
+@@ -1755,112 +1755,16 @@ fi
  
  have_gssapi=no
  if test $want_gssapi != no; then
@@ -38,7 +38,10 @@ $OpenBSD: patch-configure_in,v 1.20 2009
 -                              AC_DEFINE(HAVE_GSSAPI_H,, GSSAPI headers in 
gssapi.h)
 -                              have_gssapi=yes
 -                      ])
--                      if test $have_gssapi = yes; then
+-                      if test $have_gssapi != no; then
+-                              if test $want_gssapi = plugin; then
+-                                      have_gssapi=plugin
+-                              fi
 -                              AC_DEFINE(HAVE_GSSAPI,, Build with GSSAPI 
support)
 -                              AC_CHECK_HEADERS(gssapi/gssapi_ext.h 
gssapi_krb5.h gssapi/gssapi_krb5.h)
 -                              AC_CHECK_LIB(gss, __gss_userok, [
@@ -52,9 +55,44 @@ $OpenBSD: patch-configure_in,v 1.20 2009
 -                              old_LIBS=$LIBS
 -                              LIBS="$LIBS $KRB5_LIBS"
 -                              
AC_CHECK_FUNCS(gsskrb5_register_acceptor_identity 
krb5_gss_register_acceptor_identity)
+-
+-                              # does the kerberos library support SPNEGO?
+-                              AC_CACHE_CHECK([whether GSSAPI supports 
SPNEGO],i_cv_gssapi_spnego,[
+-                                AC_TRY_RUN([
+-                                  #ifdef HAVE_GSSAPI_H
+-                                  #  include <gssapi.h>
+-                                  #else
+-                                  #  include <gssapi/gssapi.h>
+-                                  #endif
+-                                  #include <krb5.h>
+-                                  #include <string.h>
+-                                  int main(void) {
+-                                    OM_uint32 minor_status;
+-                                    gss_OID_set mech_set;
+-                                    unsigned char spnego_oid[] = { 0x2b, 
0x06, 0x01, 0x05, 0x05, 0x02 };
+-                                    unsigned int i;
+-    
+-                                    gss_indicate_mechs(&minor_status, 
&mech_set);
+-                                    for (i = 0; i < mech_set->count; i++) {
+-                                      if (mech_set->elements[i].length == 6 &&
+-                                          
memcmp(mech_set->elements[i].elements,
+-                                                 spnego_oid, 6) == 0)
+-                                            return 0;
+-                                    }
+-                                    return 1;
+-                                  }
+-                                ], [
+-                                  i_cv_gssapi_spnego=yes
+-                                ], [
+-                                  i_cv_gssapi_spnego=no
+-                                ])
+-                              ])
+-                              if test "$i_cv_gssapi_spnego" = "yes"; then
+-                                AC_DEFINE(HAVE_GSSAPI_SPNEGO,, GSSAPI 
supports SPNEGO)
+-                              fi
 -                              LIBS=$old_LIBS
 -
--                              if test x$want_gssapi_plugin != xyes; then
+-                              if test $want_gssapi != plugin; then
 -                                AUTH_LIBS="$AUTH_LIBS $KRB5_LIBS"
 -                                AUTH_CFLAGS="$AUTH_CFLAGS $KRB5_CFLAGS"
 -                                AC_DEFINE(BUILTIN_GSSAPI,, GSSAPI support is 
built in)
@@ -62,14 +100,14 @@ $OpenBSD: patch-configure_in,v 1.20 2009
 -                                have_gssapi_plugin=yes
 -                              fi
 -                      else
--                        if test $want_gssapi = yes; then
+-                        if test $want_gssapi != auto; then
 -                          AC_ERROR([Can't build with GSSAPI support: gssapi.h 
not found])
 -                        fi
 -                      fi
 -                      CFLAGS=$old_CFLAGS
 -              fi
 -      else
--        if test $want_gssapi = yes; then
+-        if test $want_gssapi != auto; then
 -          AC_ERROR([Can't build with GSSAPI support: krb5-config not found])
 -        fi
 -      fi
Index: patches/patch-doc_Makefile_in
===================================================================
RCS file: patches/patch-doc_Makefile_in
diff -N patches/patch-doc_Makefile_in
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-doc_Makefile_in       7 Oct 2009 12:47:05 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+--- doc/Makefile.in.orig       Mon Sep 14 04:09:06 2009
++++ doc/Makefile.in    Tue Oct  6 14:03:04 2009
+@@ -220,11 +220,7 @@ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ SUBDIRS = wiki
+ confdir = $(sysconfdir)
+-conf_DATA = \
+-      dovecot-db-example.conf \
+-      dovecot-dict-sql-example.conf \
+-      dovecot-ldap-example.conf \
+-      dovecot-sql-example.conf
++conf_DATA = 
+ 
+ doc_DATA = \
+       auth-protocol.txt \
Index: patches/patch-dovecot-example_conf
===================================================================
RCS file: patches/patch-dovecot-example_conf
diff -N patches/patch-dovecot-example_conf
--- patches/patch-dovecot-example_conf  19 May 2009 08:10:56 -0000      1.47
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,215 +0,0 @@
-$OpenBSD: patch-dovecot-example_conf,v 1.47 2009/05/19 08:10:56 sthen Exp $
---- dovecot-example.conf.orig  Wed May 13 12:41:46 2009
-+++ dovecot-example.conf       Mon May 18 05:51:18 2009
-@@ -12,12 +12,11 @@
- # Default values are shown for each setting, it's not required to uncomment
- # those. These are exceptions to this though: No sections (e.g. namespace {})
- # or plugin settings are added by default, they're listed only as examples.
--# Paths are also just examples with the real defaults being based on configure
--# options. The paths listed here are for configure --prefix=/usr
--# --sysconfdir=/etc --localstatedir=/var --with-ssldir=/etc/ssl
- 
-+# *** NOTE *** Some values HAVE been changed for OpenBSD use.
-+
- # Base directory where to store runtime data.
--#base_dir = /var/run/dovecot/
-+base_dir = /var/dovecot/
- 
- # Protocols we want to be serving: imap imaps pop3 pop3s
- # If you only want to use dovecot-auth, you can set this to "none".
-@@ -39,13 +38,13 @@
- #     listen = *:10100
- #     ..
- #   }
--#listen = *
-+listen = *, [::]
- 
- # Disable LOGIN command and all other plaintext authentications unless
- # SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
- # matches the local IP (ie. you're connecting from the same computer), the
- # connection is considered secure and plaintext authentication is allowed.
--#disable_plaintext_auth = yes
-+disable_plaintext_auth = yes
- 
- # Should all IMAP and POP3 processes be killed when Dovecot master process
- # shuts down. Setting this to "no" means that Dovecot can be upgraded without
-@@ -92,7 +91,7 @@
- # dropping root privileges, so keep the key file unreadable by anyone but
- # root. Included doc/mkcert.sh can be used to easily generate self-signed
- # certificate, just make sure to update the domains in dovecot-openssl.cnf
--#ssl_cert_file = /etc/ssl/certs/dovecot.pem
-+ssl_cert_file = /etc/ssl/dovecotcert.pem
- #ssl_key_file = /etc/ssl/private/dovecot.pem
- 
- # If key file is password protected, give the password here. Alternatively
-@@ -136,7 +135,7 @@
- # which login needs to be able to connect to. The sockets are created when
- # running as root, so you don't have to worry about permissions. Note that
- # everything in this directory is deleted when Dovecot is started.
--#login_dir = /var/run/dovecot/login
-+login_dir = /var/dovecot/login
- 
- # chroot login process to the login_dir. Only reason not to do this is if you
- # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
-@@ -146,7 +145,7 @@
- # and don't use it anywhere else. The user must also belong to a group where
- # only it has access, it's used to control access for authentication process.
- # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
--#login_user = dovecot
-+login_user = _dovecot
- 
- # Set max. process size in megabytes. If you don't use
- # login_process_per_connection you might need to grow this.
-@@ -307,8 +306,9 @@
- #mail_log_max_lines_per_sec = 10
- 
- # Don't use mmap() at all. This is required if you store indexes to shared
--# filesystems (NFS or clustered filesystem).
--#mmap_disable = no
-+# filesystems (NFS or clustered filesystem) or for some operating systems
-+# which use a separate cache for mmap, such as OpenBSD.
-+mmap_disable = yes
- 
- # Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
- # since version 3, so this should be safe to use nowadays by default.
-@@ -449,7 +449,7 @@
- # locking methods as well. Some operating systems don't allow using some of
- # them simultaneously.
- #mbox_read_locks = fcntl
--#mbox_write_locks = dotlock fcntl
-+mbox_write_locks = fcntl
- 
- # Maximum time in seconds to wait for lock (all of them) before aborting.
- #mbox_lock_timeout = 300
-@@ -504,19 +504,19 @@
- 
- protocol imap {
-   # Login executable location.
--  #login_executable = /usr/libexec/dovecot/imap-login
-+  #login_executable = ${PREFIX}/libexec/dovecot/imap-login
- 
-   # IMAP executable location. Changing this allows you to execute other
-   # binaries before the imap process is executed.
-   #
-   # This would write rawlogs into ~/dovecot.rawlog/ directory:
--  #   mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
-+  #   mail_executable = ${PREFIX}/libexec/dovecot/rawlog 
${PREFIX}/libexec/dovecot/imap
-   #
-   # This would attach gdb into the imap process and write backtraces into
-   # /tmp/gdbhelper.* files:
--  #   mail_executable = /usr/libexec/dovecot/gdbhelper 
/usr/libexec/dovecot/imap
-+  #   mail_executable = ${PREFIX}/libexec/dovecot/gdbhelper 
${PREFIX}/libexec/dovecot/imap
-   #
--  #mail_executable = /usr/libexec/dovecot/imap
-+  #mail_executable = ${PREFIX}/libexec/dovecot/imap
- 
-   # Maximum IMAP command line length in bytes. Some clients generate very long
-   # command lines with huge mailboxes, so you may need to raise this if you 
get
-@@ -530,7 +530,7 @@ protocol imap {
-   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
-   # list of plugins to load.
-   #mail_plugins = 
--  #mail_plugin_dir = /usr/lib/dovecot/imap
-+  #mail_plugin_dir = ${PREFIX}/lib/dovecot/imap
- 
-   # Send IMAP capabilities in greeting message. This makes it unnecessary for
-   # clients to request it with CAPABILITY command, so it saves one round-trip.
-@@ -564,7 +564,7 @@ protocol imap {
-   #     but not both. Thunderbird separates these two by forcing server to
-   #     accept '/' suffix in mailbox names in subscriptions list.
-   # The list is space-separated.
--  #imap_client_workarounds = 
-+  imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
- }
-   
- ##
-@@ -573,11 +573,11 @@ protocol imap {
- 
- protocol pop3 {
-   # Login executable location.
--  #login_executable = /usr/libexec/dovecot/pop3-login
-+  #login_executable = ${PREFIX}/libexec/dovecot/pop3-login
- 
-   # POP3 executable location. See IMAP's mail_executable above for examples
-   # how this could be changed.
--  #mail_executable = /usr/libexec/dovecot/pop3
-+  #mail_executable = ${PREFIX}/libexec/dovecot/pop3
- 
-   # Don't try to set mails non-recent or seen with POP3 sessions. This is
-   # mostly intended to reduce disk I/O. With maildir it doesn't move files
-@@ -637,7 +637,7 @@ protocol pop3 {
-   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
-   # list of plugins to load.
-   #mail_plugins = 
--  #mail_plugin_dir = /usr/lib/dovecot/pop3
-+  #mail_plugin_dir = ${PREFIX}/lib/dovecot/pop3
- 
-   # Workarounds for various client bugs:
-   #   outlook-no-nuls:
-@@ -647,7 +647,7 @@ protocol pop3 {
-   #     Outlook Express and Netscape Mail breaks if end of headers-line is
-   #     missing. This option simply sends it if it's missing.
-   # The list is space-separated.
--  #pop3_client_workarounds = 
-+  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
- }
- 
- ##
-@@ -665,7 +665,7 @@ protocol lda {
-   # Support for dynamically loadable plugins. mail_plugins is a space 
separated
-   # list of plugins to load.
-   #mail_plugins = 
--  #mail_plugin_dir = /usr/lib/dovecot/lda
-+  #mail_plugin_dir = ${PREFIX}/lib/dovecot/lda
- 
-   # If user is over quota, return with temporary failure instead of
-   # bouncing the mail.
-@@ -679,7 +679,7 @@ protocol lda {
-   #deliver_log_format = msgid=%m: %$
- 
-   # Binary to use for sending mails.
--  #sendmail_path = /usr/lib/sendmail
-+  #sendmail_path = /usr/sbin/sendmail
- 
-   # Subject: header to use for rejection mails. You can use the same variables
-   # as for rejection_reason below.
-@@ -698,7 +698,7 @@ protocol lda {
- ##
- 
- # Executable location
--#auth_executable = /usr/libexec/dovecot/dovecot-auth
-+#auth_executable = ${PREFIX}/libexec/dovecot/dovecot-auth
- 
- # Set max. process size in megabytes.
- #auth_process_size = 256
-@@ -831,7 +831,7 @@ auth default {
-   # database (passwd usually), you can use static userdb.
-   # REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
-   # authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
--  passdb pam {
-+  #passdb pam {
-     # [session=yes] [setcred=yes] [failure_show_msg=yes]
-     # [cache_key=<key>] [<service name>]
-     #
-@@ -860,7 +860,7 @@ auth default {
-     #   args = session=yes %Ls
-     #   args = cache_key=%u dovecot
-     #args = dovecot
--  }
-+  #}
- 
-   # System users (NSS, /etc/passwd, or similiar)
-   # In many systems nowadays this uses Name Service Switch, which is
-@@ -880,10 +880,10 @@ auth default {
- 
-   # PAM-like authentication for OpenBSD.
-   # <doc/wiki/PasswordDatabase.BSDAuth.txt>
--  #passdb bsdauth {
-+  passdb bsdauth {
-     # [cache_key=<key>] - See cache_key in PAM for explanation.
-     #args =
--  #}
-+  }
- 
-   # passwd-like file with specified location
-   # <doc/wiki/AuthDatabase.PasswdFile.txt>
Index: patches/patch-src_lib_randgen_c
===================================================================
RCS file: patches/patch-src_lib_randgen_c
diff -N patches/patch-src_lib_randgen_c
--- patches/patch-src_lib_randgen_c     4 May 2009 11:40:41 -0000       1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-src_lib_randgen_c,v 1.3 2009/05/04 11:40:41 sthen Exp $
---- src/lib/randgen.c.orig     Sun May  3 21:25:41 2009
-+++ src/lib/randgen.c  Sun May  3 21:27:14 2009
-@@ -7,7 +7,11 @@
- 
- #ifdef HAVE_DEV_URANDOM
- 
-+#ifdef __OpenBSD__
-+#define URANDOM_PATH "/dev/arandom"
-+#else
- #define URANDOM_PATH "/dev/urandom"
-+#endif
- 
- #include "fd-close-on-exec.h"
- #include <unistd.h>
Index: pkg/PLIST-server
===================================================================
RCS file: /cvs/ports/mail/dovecot/pkg/PLIST-server,v
retrieving revision 1.13
diff -u -p -r1.13 PLIST-server
--- pkg/PLIST-server    26 Jan 2009 14:47:02 -0000      1.13
+++ pkg/PLIST-server    7 Oct 2009 12:47:06 -0000
@@ -6,27 +6,36 @@ lib/dovecot/
 lib/dovecot/auth/
 lib/dovecot/imap/
 lib/dovecot/imap/lib01_acl_plugin.so
+...@comment lib/dovecot/imap/lib02_imap_acl_plugin.a
+...@comment lib/dovecot/imap/lib02_imap_acl_plugin.la
+lib/dovecot/imap/lib02_imap_acl_plugin.so
 lib/dovecot/imap/lib02_lazy_expunge_plugin.so
 lib/dovecot/imap/lib10_quota_plugin.so
 @comment lib/dovecot/imap/lib11_imap_quota_plugin.a
 @comment lib/dovecot/imap/lib11_imap_quota_plugin.la
 lib/dovecot/imap/lib11_imap_quota_plugin.so
 lib/dovecot/imap/lib11_trash_plugin.so
+lib/dovecot/imap/lib20_autocreate_plugin.so
 lib/dovecot/imap/lib20_convert_plugin.so
 lib/dovecot/imap/lib20_expire_plugin.so
 lib/dovecot/imap/lib20_fts_plugin.so
+lib/dovecot/imap/lib20_listescape_plugin.so
 lib/dovecot/imap/lib20_mail_log_plugin.so
 lib/dovecot/imap/lib20_mbox_snarf_plugin.so
+lib/dovecot/imap/lib20_virtual_plugin.so
 lib/dovecot/imap/lib20_zlib_plugin.so
 lib/dovecot/imap/lib21_fts_squat_plugin.so
 lib/dovecot/lda/
 lib/dovecot/lda/lib01_acl_plugin.so
 lib/dovecot/lda/lib10_quota_plugin.so
 lib/dovecot/lda/lib11_trash_plugin.so
+lib/dovecot/lda/lib20_autocreate_plugin.so
 lib/dovecot/lda/lib20_convert_plugin.so
 lib/dovecot/lda/lib20_expire_plugin.so
 lib/dovecot/lda/lib20_fts_plugin.so
+lib/dovecot/lda/lib20_listescape_plugin.so
 lib/dovecot/lda/lib20_mail_log_plugin.so
+lib/dovecot/lda/lib20_virtual_plugin.so
 lib/dovecot/lda/lib21_fts_squat_plugin.so
 @comment lib/dovecot/lib01_acl_plugin.a
 @comment lib/dovecot/lib01_acl_plugin.la
@@ -40,6 +49,9 @@ lib/dovecot/lib10_quota_plugin.so
 @comment lib/dovecot/lib11_trash_plugin.a
 @comment lib/dovecot/lib11_trash_plugin.la
 lib/dovecot/lib11_trash_plugin.so
+...@comment lib/dovecot/lib20_autocreate_plugin.a
+...@comment lib/dovecot/lib20_autocreate_plugin.la
+lib/dovecot/lib20_autocreate_plugin.so
 @comment lib/dovecot/lib20_convert_plugin.a
 @comment lib/dovecot/lib20_convert_plugin.la
 lib/dovecot/lib20_convert_plugin.so
@@ -49,12 +61,18 @@ lib/dovecot/lib20_expire_plugin.so
 @comment lib/dovecot/lib20_fts_plugin.a
 @comment lib/dovecot/lib20_fts_plugin.la
 lib/dovecot/lib20_fts_plugin.so
+...@comment lib/dovecot/lib20_listescape_plugin.a
+...@comment lib/dovecot/lib20_listescape_plugin.la
+lib/dovecot/lib20_listescape_plugin.so
 @comment lib/dovecot/lib20_mail_log_plugin.a
 @comment lib/dovecot/lib20_mail_log_plugin.la
 lib/dovecot/lib20_mail_log_plugin.so
 @comment lib/dovecot/lib20_mbox_snarf_plugin.a
 @comment lib/dovecot/lib20_mbox_snarf_plugin.la
 lib/dovecot/lib20_mbox_snarf_plugin.so
+...@comment lib/dovecot/lib20_virtual_plugin.a
+...@comment lib/dovecot/lib20_virtual_plugin.la
+lib/dovecot/lib20_virtual_plugin.so
 @comment lib/dovecot/lib20_zlib_plugin.a
 @comment lib/dovecot/lib20_zlib_plugin.la
 lib/dovecot/lib20_zlib_plugin.so
@@ -64,14 +82,18 @@ lib/dovecot/lib21_fts_squat_plugin.so
 lib/dovecot/pop3/
 lib/dovecot/pop3/lib02_lazy_expunge_plugin.so
 lib/dovecot/pop3/lib10_quota_plugin.so
+lib/dovecot/pop3/lib20_autocreate_plugin.so
 lib/dovecot/pop3/lib20_convert_plugin.so
 lib/dovecot/pop3/lib20_expire_plugin.so
 lib/dovecot/pop3/lib20_fts_plugin.so
+lib/dovecot/pop3/lib20_listescape_plugin.so
 lib/dovecot/pop3/lib20_mail_log_plugin.so
 lib/dovecot/pop3/lib20_mbox_snarf_plugin.so
+lib/dovecot/pop3/lib20_virtual_plugin.so
 lib/dovecot/pop3/lib20_zlib_plugin.so
 lib/dovecot/pop3/lib21_fts_squat_plugin.so
 libexec/dovecot/
+...@bin libexec/dovecot/authtest
 @bin libexec/dovecot/checkpassword-reply
 @bin libexec/dovecot/convert-tool
 @bin libexec/dovecot/deliver
@@ -82,6 +104,7 @@ libexec/dovecot/
 @bin libexec/dovecot/idxview
 @bin libexec/dovecot/imap
 @bin libexec/dovecot/imap-login
+...@bin libexec/dovecot/imap-utf7
 @bin libexec/dovecot/listview
 @bin libexec/dovecot/logview
 @bin libexec/dovecot/maildirlock
@@ -89,6 +112,7 @@ libexec/dovecot/
 @bin libexec/dovecot/pop3-login
 @bin libexec/dovecot/rawlog
 @bin libexec/dovecot/ssl-build-param
+...@bin libexec/dovecot/threadview
 @bin sbin/dovecot
 sbin/dovecot-mkcert.sh
 @bin sbin/dovecotpw
@@ -96,10 +120,14 @@ share/doc/dovecot/
 share/doc/dovecot/auth-protocol.txt
 share/doc/dovecot/documentation.txt
 share/doc/dovecot/securecoding.txt
+share/doc/dovecot/thread-refs.txt
 share/doc/dovecot/wiki/
 share/doc/dovecot/wiki/ACL.txt
 share/doc/dovecot/wiki/AixPluginsSupport.txt
 share/doc/dovecot/wiki/AuthDatabase.CheckPassword.txt
+share/doc/dovecot/wiki/AuthDatabase.LDAP.AuthBinds.txt
+share/doc/dovecot/wiki/AuthDatabase.LDAP.PasswordLookups.txt
+share/doc/dovecot/wiki/AuthDatabase.LDAP.Userdb.txt
 share/doc/dovecot/wiki/AuthDatabase.LDAP.txt
 share/doc/dovecot/wiki/AuthDatabase.Passwd.txt
 share/doc/dovecot/wiki/AuthDatabase.PasswdFile.txt
@@ -136,6 +164,7 @@ share/doc/dovecot/wiki/Design.Indexes.tx
 share/doc/dovecot/wiki/Design.MailProcess.txt
 share/doc/dovecot/wiki/Design.Processes.txt
 share/doc/dovecot/wiki/Design.txt
+share/doc/dovecot/wiki/DomainLost.txt
 share/doc/dovecot/wiki/FindMailLocation.txt
 share/doc/dovecot/wiki/FinishBasicConfiguration.txt
 share/doc/dovecot/wiki/HowTo.EximAndDovecotSASL.txt
@@ -153,6 +182,8 @@ share/doc/dovecot/wiki/LDA.Indexing.txt
 share/doc/dovecot/wiki/LDA.Postfix.txt
 share/doc/dovecot/wiki/LDA.Qmail.txt
 share/doc/dovecot/wiki/LDA.Sendmail.txt
+share/doc/dovecot/wiki/LDA.Sieve.CMU.txt
+share/doc/dovecot/wiki/LDA.Sieve.Dovecot.txt
 share/doc/dovecot/wiki/LDA.Sieve.txt
 share/doc/dovecot/wiki/LDA.txt
 share/doc/dovecot/wiki/Logging.txt
@@ -231,6 +262,10 @@ share/doc/dovecot/wiki/SSL.DovecotConfig
 share/doc/dovecot/wiki/SSL.txt
 share/doc/dovecot/wiki/Sasl.txt
 share/doc/dovecot/wiki/SecurityTuning.txt
+share/doc/dovecot/wiki/SharedMailboxes.Permissions.txt
+share/doc/dovecot/wiki/SharedMailboxes.Public.txt
+share/doc/dovecot/wiki/SharedMailboxes.Shared.txt
+share/doc/dovecot/wiki/SharedMailboxes.Symlinks.txt
 share/doc/dovecot/wiki/SharedMailboxes.txt
 share/doc/dovecot/wiki/SystemUsers.txt
 share/doc/dovecot/wiki/TestInstallation.txt
@@ -253,6 +288,8 @@ share/doc/dovecot/wiki/maildrop.txt
 share/doc/dovecot/wiki/mutt.txt
 share/doc/dovecot/wiki/uw2dovecot.sh.txt
 share/examples/dovecot/
+share/examples/dovecot/dovecot-db-example.conf
+share/examples/dovecot/dovecot-dict-sql-example.conf
 share/examples/dovecot/dovecot-example.conf
 @sample ${SYSCONFDIR}/dovecot.conf
 share/examples/dovecot/dovecot-ldap-example.conf
Index: pkg/PLIST-sieve
===================================================================
RCS file: /cvs/ports/mail/dovecot/pkg/PLIST-sieve,v
retrieving revision 1.3
diff -u -p -r1.3 PLIST-sieve
--- pkg/PLIST-sieve     20 Aug 2008 02:07:04 -0000      1.3
+++ pkg/PLIST-sieve     7 Oct 2009 12:47:06 -0000
@@ -1,6 +1,12 @@
 @comment $OpenBSD: PLIST-sieve,v 1.3 2008/08/20 02:07:04 brad Exp $
-...@comment lib/dovecot/lda/lib90_cmusieve_plugin.a
-...@comment lib/dovecot/lda/lib90_cmusieve_plugin.la
-lib/dovecot/lda/lib90_cmusieve_plugin.so
-...@bin libexec/dovecot/sievec
-...@bin libexec/dovecot/sieved
+...@bin bin/sieve-test
+...@bin bin/sievec
+...@bin bin/sieved
+...@comment lib/dovecot/lda/lib90_sieve_plugin.a
+...@comment lib/dovecot/lda/lib90_sieve_plugin.la
+lib/dovecot/lda/lib90_sieve_plugin.so
+...@bin libexec/dovecot/managesieve
+...@bin libexec/dovecot/managesieve-login
+...@man man/man1/sieve-test.1
+...@man man/man1/sievec.1
+...@man man/man1/sieved.1

Reply via email to