Hello community, here is the log from the commit of package imapfilter for openSUSE:Factory checked in at 2020-01-12 23:23:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/imapfilter (Old) and /work/SRC/openSUSE:Factory/.imapfilter.new.6675 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "imapfilter" Sun Jan 12 23:23:50 2020 rev:44 rq:763055 version:2.6.16 Changes: -------- --- /work/SRC/openSUSE:Factory/imapfilter/imapfilter.changes 2019-12-24 14:30:25.182589004 +0100 +++ /work/SRC/openSUSE:Factory/.imapfilter.new.6675/imapfilter.changes 2020-01-12 23:25:42.626845559 +0100 @@ -1,0 +2,9 @@ +Sun Dec 29 22:16:03 UTC 2019 - Arun Persaud <a...@gmx.de> + +- update to version 2.6.16: + * Bug fix; escape the double-quote character in passwords. + +- changes from version 2.6.15: + * Bug fix; try to setup both a CA file and path for SSL validations. + +------------------------------------------------------------------- Old: ---- imapfilter-2.6.14.tar.gz New: ---- imapfilter-2.6.16.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ imapfilter.spec ++++++ --- /var/tmp/diff_new_pack.YHGkK1/_old 2020-01-12 23:25:42.994845695 +0100 +++ /var/tmp/diff_new_pack.YHGkK1/_new 2020-01-12 23:25:43.002845698 +0100 @@ -1,7 +1,7 @@ # # spec file for package imapfilter # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: imapfilter -Version: 2.6.14 +Version: 2.6.16 Release: 0 Summary: A mail filtering utility License: MIT ++++++ imapfilter-2.6.14.tar.gz -> imapfilter-2.6.16.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.14/NEWS new/imapfilter-2.6.16/NEWS --- old/imapfilter-2.6.14/NEWS 2019-11-01 09:14:51.000000000 +0100 +++ new/imapfilter-2.6.16/NEWS 2019-11-22 23:07:11.000000000 +0100 @@ -1,3 +1,9 @@ +IMAPFilter 2.6.16 - 23 Nov 2019 + - Bug fix; escape the double-quote character in passwords. + +IMAPFilter 2.6.15 - 14 Nov 2019 + - Bug fix; try to setup both a CA file and path for SSL validations. + IMAPFilter 2.6.14 - 1 Nov 2019 - Bug fix; OpenSSL version mess up for SSL hostname validation. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.14/doc/imapfilter.1 new/imapfilter-2.6.16/doc/imapfilter.1 --- old/imapfilter-2.6.14/doc/imapfilter.1 2019-11-01 09:14:51.000000000 +0100 +++ new/imapfilter-2.6.16/doc/imapfilter.1 2019-11-22 23:07:11.000000000 +0100 @@ -1,4 +1,4 @@ -.Dd Apr 27, 2016 +.Dd Nov 13, 2019 .Dt IMAPFILTER 1 .Os .Sh NAME @@ -59,11 +59,10 @@ will be validated using the CA certificates found in this directory or file, and when this is not possible the local .Pa $HOME/.imapfilter/certificates -file will be used. The default is either the -.Pa /etc/ssl/certs -directory or the -.Pa /etc/ssl/cert.pem -file, whichever is found. +file will be used. The default CA directory is +.Pa /etc/ssl/certs/ , +and the default CA file is +.Pa /etc/ssl/cert.pem . .It Fl V Displays version and copyright information. .It Fl v diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.14/src/Makefile new/imapfilter-2.6.16/src/Makefile --- old/imapfilter-2.6.14/src/Makefile 2019-11-01 09:14:51.000000000 +0100 +++ new/imapfilter-2.6.16/src/Makefile 2019-11-22 23:07:11.000000000 +0100 @@ -4,6 +4,9 @@ SHAREDIR = $(PREFIX)/share/imapfilter MANDIR = $(PREFIX)/man +SSLCAPATH = /etc/ssl/certs +SSLCAFILE = /etc/ssl/cert.pem + MYCFLAGS = MYLDFLAGS = MYLIBS = @@ -16,7 +19,11 @@ LIBSSL = -lssl LIBCRYPTO = -lcrypto -CFLAGS = -Wall -Wextra -O -DCONFIG_SHAREDIR='"$(SHAREDIR)"' $(INCDIRS) $(MYCFLAGS) +CFLAGS = -Wall -Wextra -O \ + -DCONFIG_SHAREDIR='"$(SHAREDIR)"' \ + -DCONFIG_SSL_CAPATH='"$(SSLCAPATH)"' \ + -DCONFIG_SSL_CAFILE='"$(SSLCAFILE)"' \ + $(INCDIRS) $(MYCFLAGS) LDFLAGS = $(LIBDIRS) $(MYLDFLAGS) LIBS = -lm -ldl $(LIBLUA) $(LIBPCRE) $(LIBSSL) $(LIBCRYPTO) $(MYLIBS) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.14/src/account.lua new/imapfilter-2.6.16/src/account.lua --- old/imapfilter-2.6.14/src/account.lua 2019-11-01 09:14:51.000000000 +0100 +++ new/imapfilter-2.6.16/src/account.lua 2019-11-22 23:07:11.000000000 +0100 @@ -89,6 +89,9 @@ self._account.password = get_password('Enter password for ' .. self._string .. ': ') end + if type(self._account.password) == 'string' then + self._account.password = string.gsub(self._account.password, '"', '\\"') + end if self._account.session then return true end local r, s = ifcore.login(self._account.server, self._account.port, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.14/src/imapfilter.c new/imapfilter-2.6.16/src/imapfilter.c --- old/imapfilter-2.6.14/src/imapfilter.c 2019-11-01 09:14:51.000000000 +0100 +++ new/imapfilter-2.6.16/src/imapfilter.c 2019-11-22 23:07:11.000000000 +0100 @@ -68,10 +68,10 @@ opts.debug = NULL; opts.truststore = NULL; - if (exists_dir("/etc/ssl/certs")) - opts.truststore = "/etc/ssl/certs"; - else if (exists_file("/etc/ssl/cert.pem")) - opts.truststore = "/etc/ssl/cert.pem"; + if (exists_dir(CONFIG_SSL_CAPATH)) + capath = CONFIG_SSL_CAPATH; + if (exists_file(CONFIG_SSL_CAFILE)) + cafile = CONFIG_SSL_CAFILE; env.home = NULL; env.pathmax = -1; @@ -149,10 +149,13 @@ tls12ctx = SSL_CTX_new(TLSv1_2_client_method()); #endif #endif - if (exists_dir(opts.truststore)) + if (exists_dir(opts.truststore)) { capath = opts.truststore; - else if (exists_file(opts.truststore)) + cafile = NULL; + } else if (exists_file(opts.truststore)) { cafile = opts.truststore; + capath = NULL; + } #if OPENSSL_VERSION_NUMBER >= 0x1010000fL if (sslctx) SSL_CTX_load_verify_locations(sslctx, cafile, capath); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.14/src/socket.c new/imapfilter-2.6.16/src/socket.c --- old/imapfilter-2.6.14/src/socket.c 2019-11-01 09:14:51.000000000 +0100 +++ new/imapfilter-2.6.16/src/socket.c 2019-11-22 23:07:11.000000000 +0100 @@ -176,10 +176,7 @@ SSL_set_verify(ssn->sslconn, SSL_VERIFY_PEER, NULL); #else - /* SSL server name / certificate peer name validation not - * supported as built-in functionality in OpenSSL versions - * earlier than 1.0.2 (OpenSSL 1.0.1* and before). - */ +#error "hostname validation supported in OpenSSL version 1.0.2 and later" #endif } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.14/src/version.h new/imapfilter-2.6.16/src/version.h --- old/imapfilter-2.6.14/src/version.h 2019-11-01 09:14:51.000000000 +0100 +++ new/imapfilter-2.6.16/src/version.h 2019-11-22 23:07:11.000000000 +0100 @@ -3,7 +3,7 @@ /* Program's version number. */ -#define VERSION "2.6.14" +#define VERSION "2.6.16" /* Program's copyright. */ #define COPYRIGHT "Copyright (c) 2001-2019 Eleftherios Chatzimparmpas"