Hello community, here is the log from the commit of package imapfilter checked in at Mon Jan 7 12:29:54 CET 2008. -------- --- imapfilter/imapfilter.changes 2007-10-08 09:28:23.000000000 +0200 +++ /mounts/work_src_done/STABLE/imapfilter/imapfilter.changes 2008-01-07 09:46:49.000000000 +0100 @@ -1,0 +2,12 @@ +Mon Jan 7 09:44:05 CET 2008 - mskibbe@suse.de + +- update to version 2.0.9 which: + o on some platforms it is necessary to link against the math + library + o the match_*() methods failed to match messages. + o the match_*() methods failed with an error when no messages + matched. + o note added in the documentation about the need to use double + backslashes inside of regular expression patterns. + +------------------------------------------------------------------- Old: ---- imapfilter-2.0.6.tar.bz2 New: ---- imapfilter-2.0.9.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ imapfilter.spec ++++++ --- /var/tmp/diff_new_pack.l30783/_old 2008-01-07 12:27:43.000000000 +0100 +++ /var/tmp/diff_new_pack.l30783/_new 2008-01-07 12:27:43.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package imapfilter (Version 2.0.6) +# spec file for package imapfilter (Version 2.0.9) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -14,7 +14,7 @@ BuildRequires: lua-devel openssl-devel pcre-devel pkgconfig Requires: lua-libs >= 5.1 Summary: a mail filtering utility -Version: 2.0.6 +Version: 2.0.9 Release: 1 License: X11/MIT Group: Productivity/Networking/Email/Utilities @@ -59,7 +59,17 @@ %{_datadir}/imapfilter/auxiliary.lua %{_mandir}/man1/imapfilter.1.gz %{_mandir}/man5/imapfilter_config.5.gz + %changelog +* Mon Jan 07 2008 - mskibbe@suse.de +- update to version 2.0.9 which: + o on some platforms it is necessary to link against the math + library + o the match_*() methods failed to match messages. + o the match_*() methods failed with an error when no messages + matched. + o note added in the documentation about the need to use double + backslashes inside of regular expression patterns. * Mon Oct 08 2007 - mskibbe@suse.de - update to version 2.0.6 which: o fix a bug that the select_all() method sent an incorrect format ++++++ imapfilter-2.0.6.tar.bz2 -> imapfilter-2.0.9.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/imapfilter-2.0.6/imapfilter_config.5 new/imapfilter-2.0.9/imapfilter_config.5 --- old/imapfilter-2.0.6/imapfilter_config.5 2007-10-07 13:07:19.000000000 +0200 +++ new/imapfilter-2.0.9/imapfilter_config.5 2007-12-26 11:19:21.000000000 +0100 @@ -1,4 +1,4 @@ -.Dd Octomber 4, 2007 +.Dd December 26, 2007 .Dt IMAPFILTER_CONFIG 5 .Os .Sh NAME @@ -634,7 +634,9 @@ .El .Pp The following methods can be used to search for messages that match a specific -regular expression pattern: +regular expression pattern. Note that due to Lua using backslash `\' as an +escape character for its strings, one has to double backslashes in order to +insert a single backslash inside a regular expression pattern: .Pp .Bl -tag -width Ds -compact .It Fn match_bcc pattern @@ -1034,7 +1036,9 @@ .Vt boolean , that denotes if the match was successful, and any captures which are of .Vt string -type. +type. Note that due to Lua using backslash `\' as an escape character for its +strings, one has to double backslashes in order to insert a single backslash +inside a regular expression pattern: .El .Pp Examples: @@ -1044,7 +1048,7 @@ become_daemon(600, myfunction) status = pipe_to('mycommandline', 'mydata') status, data = pipe_from('mycommandline') -success, capture = regex_search('^[PpCcRrEe]: (.*)$', 'mystring') +success, capture = regex_search('^[PpCcRrEe]: (\\w)$', 'mystring') .Ed .Sh EXAMPLES See diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/imapfilter-2.0.6/mailbox.lua new/imapfilter-2.0.9/mailbox.lua --- old/imapfilter-2.0.6/mailbox.lua 2007-10-07 13:19:47.000000000 +0200 +++ new/imapfilter-2.0.9/mailbox.lua 2007-12-26 11:19:21.000000000 +0100 @@ -73,7 +73,7 @@ end if (self._account._login_user(self._account) ~= true) then - return + return {} end if (self._cached_select(self, self._account._imap, self._mailbox) ~= @@ -1005,16 +1005,15 @@ _check_required(field, 'string') _check_required(pattern, 'string') - local messages = self._send_query(self) - local mesgs = _make_normal(messages) + local mesgs = self._send_query(self) local fields = self._fetch_fields(self, { field }, mesgs) if (#mesgs == 0 or fields == nil) then - return + return Set({}) end local results = {} - for m, f in ipairs(fields) do + for m, f in pairs(fields) do if (regex_search(pattern, f)) then table.insert(results, m) end @@ -1056,16 +1055,15 @@ function Mailbox.match_header(self, pattern) _check_required(pattern, 'string') - local messages = self._send_query(self) - local mesgs = _make_normal(messages) + local mesgs = self._send_query(self) local header = self._fetch_header(self, mesgs) if (#mesgs == 0 or header == nil) then - return + return Set({}) end local results = {} - for m, h in ipairs(header) do + for m, h in pairs(header) do if (regex_search(pattern, h)) then table.insert(results, m) end @@ -1077,16 +1075,15 @@ function Mailbox.match_body(self, pattern) _check_required(pattern, 'string') - local messages = self._send_query(self) - local mesgs = _make_normal(messages) + local mesgs = self._send_query(self) local body = self._fetch_body(self, mesgs) if (#mesgs == 0 or body == nil) then - return + return Set({}) end local results = {} - for m, b in ipairs(body) do + for m, b in pairs(body) do if (regex_search(pattern, b)) then table.insert(results, m) end @@ -1098,16 +1095,15 @@ function Mailbox.match_message(self, pattern) _check_required(pattern, 'string') - local messages = self._send_query(self) - local mesgs = _make_normal(messages) + local mesgs = self._send_query(self) local full = self._fetch_message(self, mesgs) if (#mesgs == 0 or full == nil) then - return + return Set({}) end local results = {} - for m, f in ipairs(full) do + for m, f in pairs(full) do if (regex_search(pattern, f)) then table.insert(results, m) end diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/imapfilter-2.0.6/NEWS new/imapfilter-2.0.9/NEWS --- old/imapfilter-2.0.6/NEWS 2007-10-07 13:41:21.000000000 +0200 +++ new/imapfilter-2.0.9/NEWS 2007-12-26 11:19:21.000000000 +0100 @@ -1,3 +1,21 @@ +Version 2.0.9 - 26 December 2007 +-------------------------------- +- Bug fix; the match_*() methods failed to match messages. +- Bug fix; the match_*() methods failed with an error when no messages matched. +- Bug fix; note added in the documentation about the need to use double + backslashes inside of regular expression patterns. + + +Version 2.0.8 - 23 December 2007 +-------------------------------- +- Bug fix; on some platforms it is necessary to link against the math library. + + +Version 2.0.7 - 22 December 2007 +-------------------------------- +- Bug fix; the match_*() methods failed with an error message. + + Version 2.0.6 - 7 October 2007 ------------------------------ - Bug fix; the search query that was sent with the select_all() method had an diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/imapfilter-2.0.6/README new/imapfilter-2.0.9/README --- old/imapfilter-2.0.6/README 2007-10-07 13:30:21.000000000 +0200 +++ new/imapfilter-2.0.9/README 2007-12-26 11:19:21.000000000 +0100 @@ -1,4 +1,4 @@ -IMAPFilter Version 2.0.6 +IMAPFilter Version 2.0.9 ======================== Requirements diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/imapfilter-2.0.6/version.h new/imapfilter-2.0.9/version.h --- old/imapfilter-2.0.6/version.h 2007-10-07 13:30:18.000000000 +0200 +++ new/imapfilter-2.0.9/version.h 2007-12-26 11:19:21.000000000 +0100 @@ -3,7 +3,7 @@ /* Program's version number. */ -#define IMAPFILTER_VERSION "2.0.6" +#define IMAPFILTER_VERSION "2.0.9" /* Program's copyright. */ #define IMAPFILTER_COPYRIGHT "Copyright (c) 2001-2007 Lefteris Chatzimparmpas" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org