Hello community,

here is the log from the commit of package dovecot21 for openSUSE:Factory 
checked in at 2013-05-17 08:25:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dovecot21 (Old)
 and      /work/SRC/openSUSE:Factory/.dovecot21.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dovecot21"

Changes:
--------
--- /work/SRC/openSUSE:Factory/dovecot21/dovecot21.changes      2013-04-08 
14:01:42.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.dovecot21.new/dovecot21.changes 2013-05-17 
08:25:43.000000000 +0200
@@ -1,0 +2,10 @@
+Thu May  9 17:20:36 UTC 2013 - [email protected]
+
+- Update Pigeonhole to 0.3.5:
+  - Sieve editheader extension: fixed interaction with the Sieve body
+    extension. If used together, the deleteheader action could fail after
+    a body test was performed.
+  - Test suite: fixed a time zone dependency in the Sieve date extension
+    tests.
+
+-------------------------------------------------------------------

Old:
----
  dovecot-2.1-pigeonhole-0.3.4.tar.bz2

New:
----
  dovecot-2.1-pigeonhole-0.3.5.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dovecot21.spec ++++++
--- /var/tmp/diff_new_pack.5Kded5/_old  2013-05-17 08:25:44.000000000 +0200
+++ /var/tmp/diff_new_pack.5Kded5/_new  2013-05-17 08:25:44.000000000 +0200
@@ -76,7 +76,7 @@
 # taken from    
http://www.dovecot.org/releases/2.0/%{pkg_name}-%{version}.tar.gz
 Source:         %{pkg_name}-%{dovecot_version}.tar.bz2
 # hg clone http://hg.rename-it.nl/dovecot-2.1-pigeonhole/
-%define dovecot_pigeonhole_source_dir 
%{pkg_name}-%{sieve_version}-pigeonhole-0.3.4
+%define dovecot_pigeonhole_source_dir 
%{pkg_name}-%{sieve_version}-pigeonhole-0.3.5
 Source1:        %{dovecot_pigeonhole_source_dir}.tar.bz2
 Source2:        %{pkg_name}.init
 Source3:        %{pkg_name}.pam

++++++ dovecot-2.1-pigeonhole-0.3.4.tar.bz2 -> 
dovecot-2.1-pigeonhole-0.3.5.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dovecot-2.1-pigeonhole-0.3.4/ChangeLog 
new/dovecot-2.1-pigeonhole-0.3.5/ChangeLog
--- old/dovecot-2.1-pigeonhole-0.3.4/ChangeLog  2013-04-06 18:30:56.000000000 
+0200
+++ new/dovecot-2.1-pigeonhole-0.3.5/ChangeLog  2013-05-09 14:18:14.000000000 
+0200
@@ -1,5 +1,33 @@
+2013-05-02  Stephan Bosch  <[email protected]>
+
+       * src/lib-sieve/edit-mail.c, src/lib-sieve/plugins/editheader/cmd-
+       deleteheader.c, tests/extensions/editheader/deleteheader.svtest:
+       lib-sieve: editheader extension: Fixed interaction with body
+       extension. Forgot to rewind mail stream before header parsing.
+       Wrapped mail stream is obtained long before parsing, so if it is
+       used in the mean time, it must be rewound to the beginning.
+       [0163c45094a3] [tip]
+
+2013-04-07  Stephan Bosch  <[email protected]>
+
+       * tests/extensions/date/basic.svtest:
+       testsuite: fixed local timezone dependency in date extension tests.
+       [bc2126771d00]
+
 2013-04-06  Stephan Bosch  <[email protected]>
 
+       * .hgsigs:
+       Added signature for changeset 493202676845
+       [e3700924ac8c]
+
+       * .hgtags:
+       Added tag 0.3.4 for changeset 493202676845
+       [c318f65361af]
+
+       * NEWS, TODO, configure.in:
+       Released v0.3.4 for Dovecot v2.1.16.
+       [493202676845] [0.3.4]
+
        * src/lib-managesieve/managesieve-arg.c, src/lib-managesieve
        /managesieve-arg.h, src/lib-managesieve/managesieve-parser.c, src
        /lib-managesieve/managesieve-parser.h, src/lib-managesieve
@@ -210,7 +238,7 @@
        /tst-test-result-execute.c, src/testsuite/tst-test-script-compile.c,
        src/testsuite/tst-test-script-run.c:
        Updated copyright notices to include the year 2013.
-       [850cdbcf7976] [tip]
+       [850cdbcf7976]
 
 2013-04-02  Stephan Bosch  <[email protected]>
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dovecot-2.1-pigeonhole-0.3.4/NEWS 
new/dovecot-2.1-pigeonhole-0.3.5/NEWS
--- old/dovecot-2.1-pigeonhole-0.3.4/NEWS       2013-04-06 17:16:01.000000000 
+0200
+++ new/dovecot-2.1-pigeonhole-0.3.5/NEWS       2013-05-09 13:46:00.000000000 
+0200
@@ -1,3 +1,10 @@
+v0.3.5 09-05-2013 Stephan Bosch <[email protected]>
+
+       - Sieve editheader extension: fixed interaction with the Sieve body 
extension.
+         If used together, the deleteheader action could fail after a body 
test was
+         performed.
+       - Test suite: fixed a time zone dependency in the Sieve date extension 
tests.
+
 v0.3.4 06-04-2013 Stephan Bosch <[email protected]>
 
        * Changed error handling to be less of a nuisance for administrators. 
Strictly
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dovecot-2.1-pigeonhole-0.3.4/configure 
new/dovecot-2.1-pigeonhole-0.3.5/configure
--- old/dovecot-2.1-pigeonhole-0.3.4/configure  2013-04-06 18:30:46.000000000 
+0200
+++ new/dovecot-2.1-pigeonhole-0.3.5/configure  2013-05-09 15:07:40.000000000 
+0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for Pigeonhole 0.3.4.
+# Generated by GNU Autoconf 2.68 for Pigeonhole 0.3.5.
 #
 # Report bugs to <[email protected]>.
 #
@@ -570,8 +570,8 @@
 # Identity of this package.
 PACKAGE_NAME='Pigeonhole'
 PACKAGE_TARNAME='dovecot-2.1-pigeonhole'
-PACKAGE_VERSION='0.3.4'
-PACKAGE_STRING='Pigeonhole 0.3.4'
+PACKAGE_VERSION='0.3.5'
+PACKAGE_STRING='Pigeonhole 0.3.5'
 PACKAGE_BUGREPORT='[email protected]'
 PACKAGE_URL=''
 
@@ -1337,7 +1337,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures Pigeonhole 0.3.4 to adapt to many kinds of systems.
+\`configure' configures Pigeonhole 0.3.5 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1408,7 +1408,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of Pigeonhole 0.3.4:";;
+     short | recursive ) echo "Configuration of Pigeonhole 0.3.5:";;
    esac
   cat <<\_ACEOF
 
@@ -1523,7 +1523,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-Pigeonhole configure 0.3.4
+Pigeonhole configure 0.3.5
 generated by GNU Autoconf 2.68
 
 Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1801,7 +1801,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by Pigeonhole $as_me 0.3.4, which was
+It was created by Pigeonhole $as_me 0.3.5, which was
 generated by GNU Autoconf 2.68.  Invocation command line was
 
   $ $0 $@
@@ -2637,7 +2637,7 @@
 
 # Define the identity of the package.
  PACKAGE='dovecot-2.1-pigeonhole'
- VERSION='0.3.4'
+ VERSION='0.3.5'
 
 
 # Some tools Automake needs.
@@ -11404,7 +11404,7 @@
        cd $dovecotdir
        abs_dovecotdir=`pwd`
        cd $old
-       DISTCHECK_CONFIGURE_FLAGS="--with-dovecot=$abs_dovecotdir 
--without-dovecot-install-dirs"
+       DISTCHECK_CONFIGURE_FLAGS="--with-dovecot=$abs_dovecotdir 
--without-dovecot-install-dirs --disable-shared"
 
        eval `grep -i '^dovecot_[a-z_]*=' "$dovecotdir"/dovecot-config`
        eval `grep '^LIBDOVECOT[A-Z_]*=' "$dovecotdir"/dovecot-config`
@@ -12135,7 +12135,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by Pigeonhole $as_me 0.3.4, which was
+This file was extended by Pigeonhole $as_me 0.3.5, which was
 generated by GNU Autoconf 2.68.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -12201,7 +12201,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-Pigeonhole config.status 0.3.4
+Pigeonhole config.status 0.3.5
 configured by $0, generated by GNU Autoconf 2.68,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dovecot-2.1-pigeonhole-0.3.4/configure.in 
new/dovecot-2.1-pigeonhole-0.3.5/configure.in
--- old/dovecot-2.1-pigeonhole-0.3.4/configure.in       2013-04-06 
16:56:14.000000000 +0200
+++ new/dovecot-2.1-pigeonhole-0.3.5/configure.in       2013-05-09 
13:48:52.000000000 +0200
@@ -1,4 +1,4 @@
-AC_INIT([Pigeonhole], [0.3.4], [[email protected]], [dovecot-2.1-pigeonhole])
+AC_INIT([Pigeonhole], [0.3.5], [[email protected]], [dovecot-2.1-pigeonhole])
 AC_CONFIG_AUX_DIR([.])
 AC_CONFIG_SRCDIR([src])
 AC_CONFIG_MACRO_DIR([m4])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/dovecot-2.1-pigeonhole-0.3.4/m4/dovecot.m4 
new/dovecot-2.1-pigeonhole-0.3.5/m4/dovecot.m4
--- old/dovecot-2.1-pigeonhole-0.3.4/m4/dovecot.m4      2012-08-12 
18:13:41.000000000 +0200
+++ new/dovecot-2.1-pigeonhole-0.3.5/m4/dovecot.m4      2013-05-09 
15:07:35.000000000 +0200
@@ -70,7 +70,7 @@
        cd $dovecotdir
        abs_dovecotdir=`pwd`
        cd $old
-       DISTCHECK_CONFIGURE_FLAGS="--with-dovecot=$abs_dovecotdir 
--without-dovecot-install-dirs"
+       DISTCHECK_CONFIGURE_FLAGS="--with-dovecot=$abs_dovecotdir 
--without-dovecot-install-dirs --disable-shared"
 
        eval `grep -i '^dovecot_[[a-z_]]*=' "$dovecotdir"/dovecot-config`
        eval `grep '^LIBDOVECOT[[A-Z_]]*=' "$dovecotdir"/dovecot-config`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dovecot-2.1-pigeonhole-0.3.4/src/lib-sieve/edit-mail.c 
new/dovecot-2.1-pigeonhole-0.3.5/src/lib-sieve/edit-mail.c
--- old/dovecot-2.1-pigeonhole-0.3.4/src/lib-sieve/edit-mail.c  2013-04-06 
16:49:42.000000000 +0200
+++ new/dovecot-2.1-pigeonhole-0.3.5/src/lib-sieve/edit-mail.c  2013-05-02 
21:35:23.000000000 +0200
@@ -559,6 +559,7 @@
 
        if ( edmail->headers_parsed ) return 1;
 
+       i_stream_seek(edmail->wrapped_stream, 0);
        hparser = message_parse_header_init
                (edmail->wrapped_stream, NULL, hparser_flags);
 
@@ -643,6 +644,9 @@
        message_parse_header_deinit(&hparser);
 
        if ( ret <= 0 ) {
+               /* blocking i/o required */
+               i_assert( ret != 0 );
+
                /* Error; clean up */
                current = head;
                while ( current != NULL ) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dovecot-2.1-pigeonhole-0.3.4/src/lib-sieve/plugins/editheader/cmd-deleteheader.c
 
new/dovecot-2.1-pigeonhole-0.3.5/src/lib-sieve/plugins/editheader/cmd-deleteheader.c
--- 
old/dovecot-2.1-pigeonhole-0.3.4/src/lib-sieve/plugins/editheader/cmd-deleteheader.c
        2013-04-06 16:49:42.000000000 +0200
+++ 
new/dovecot-2.1-pigeonhole-0.3.5/src/lib-sieve/plugins/editheader/cmd-deleteheader.c
        2013-05-02 15:11:40.000000000 +0200
@@ -531,9 +531,15 @@
                /* Delete all occurences of header */
                ret = edit_mail_header_delete(edmail, str_c(field_name), index);
 
-               if ( trace ) {
-                       sieve_runtime_trace(renv, 0, "deleted %d headers", ret);
+               if ( ret < 0 ) {
+                       sieve_runtime_warning(renv, NULL, "deleteheader action: 
"
+                               "failed to delete occurences of header `%s' 
(this should not happen!)",
+                               str_c(field_name));
+               } else if ( trace ) {
+                       sieve_runtime_trace(renv, 0, "deleted %d occurences of 
header `%s'",
+                               ret, str_c(field_name));
                }
+
        }
 
        return SIEVE_EXEC_OK;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dovecot-2.1-pigeonhole-0.3.4/tests/extensions/date/basic.svtest 
new/dovecot-2.1-pigeonhole-0.3.5/tests/extensions/date/basic.svtest
--- old/dovecot-2.1-pigeonhole-0.3.4/tests/extensions/date/basic.svtest 
2012-09-26 21:50:55.000000000 +0200
+++ new/dovecot-2.1-pigeonhole-0.3.5/tests/extensions/date/basic.svtest 
2013-04-07 05:07:33.000000000 +0200
@@ -41,34 +41,33 @@
 }
 
 test "Comparison" {
-       if not date :is "delivery-date" "date" "2009-07-22" {
-               if date :matches "delivery-date" "date" "*" { set "date" 
"${1}"; }
+       if not date :originalzone :is "delivery-date" "date" "2009-07-22" {
+               if date :originalzone :matches "delivery-date" "date" "*" { set 
"date" "${1}"; }
                test_fail "date is invalid: ${date}";
        }
-
-       if not date :value "ge" "delivery-date" "date" "2009-07-22" {
+       if not date :originalzone :value "ge" "delivery-date" "date" 
"2009-07-22" {
                test_fail "date comparison ge failed equal";
        }
 
-       if not date :value "ge" "delivery-date" "date" "2009-07-21" {
+       if not date :originalzone :value "ge" "delivery-date" "date" 
"2009-07-21" {
                test_fail "date comparison ge failed greater";
        }
 
-       if anyof (not date :value "ge" "delivery-date" "date" "2009-06-22",
-               not date :value "ge" "date" "date" "2006-07-22" ) {
+       if anyof (not date :originalzone :value "ge" "delivery-date" "date" 
"2009-06-22",
+               not date :originalzone :value "ge" "date" "date" "2006-07-22" ) 
{
                test_fail "date comparison ge failed much greater";
        }
 
-       if not date :value "le" "delivery-date" "date" "2009-07-22" {
+       if not date :originalzone :value "le" "delivery-date" "date" 
"2009-07-22" {
                test_fail "date comparison le failed equal";
        }
 
-       if not date :value "le" "delivery-date" "date" "2009-07-23" {
+       if not date :originalzone :value "le" "delivery-date" "date" 
"2009-07-23" {
                test_fail "date comparison le failed less";
        }
 
-       if anyof (not date :value "le" "delivery-date" "date" "2009-09-22",
-               not date :value "le" "date" "date" "2012-07-22" ) {
+       if anyof (not date :originalzone :value "le" "delivery-date" "date" 
"2009-09-22",
+               not date :originalzone :value "le" "date" "date" "2012-07-22" ) 
{
                test_fail "date comparison ge failed much less";
        }
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/dovecot-2.1-pigeonhole-0.3.4/tests/extensions/editheader/deleteheader.svtest
 
new/dovecot-2.1-pigeonhole-0.3.5/tests/extensions/editheader/deleteheader.svtest
--- 
old/dovecot-2.1-pigeonhole-0.3.4/tests/extensions/editheader/deleteheader.svtest
    2012-08-12 18:13:41.000000000 +0200
+++ 
new/dovecot-2.1-pigeonhole-0.3.5/tests/extensions/editheader/deleteheader.svtest
    2013-05-02 21:33:27.000000000 +0200
@@ -962,3 +962,29 @@
                test_fail "x-b header not deleted";
        }
 }
+
+/*
+ * TEST: Interaction with body test
+ */
+
+test_set "message" text:
+From: [email protected]
+To: [email protected]
+Subject: Hoppa
+
+Text
+.
+;
+
+test "Interaction with body test" {
+       addheader "X-Frop" "frop";
+       
+       if body "!TEST!" {}
+
+       deleteheader "subject";
+
+       if exists "subject" {
+               test_fail "subject header not deleted";
+       }
+}
+

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to