Hello community, here is the log from the commit of package imapfilter for openSUSE:Factory checked in at 2018-11-09 07:54:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/imapfilter (Old) and /work/SRC/openSUSE:Factory/.imapfilter.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "imapfilter" Fri Nov 9 07:54:44 2018 rev:41 rq:647237 version:2.6.12 Changes: -------- --- /work/SRC/openSUSE:Factory/imapfilter/imapfilter.changes 2018-03-05 13:45:51.422574836 +0100 +++ /work/SRC/openSUSE:Factory/.imapfilter.new/imapfilter.changes 2018-11-09 07:54:49.287683516 +0100 @@ -1,0 +2,14 @@ +Sat Nov 3 16:38:13 UTC 2018 - Arun Persaud <[email protected]> + +- specfile: + * added README AUTHORS LICENSE NEWS to %doc + * ran spec-cleaner + +- update to version 2.6.12: + * Support for Server Name Indication (SNI). + * The searching methods return values are described in the config + man page. + * Example of using the enter_idle() function in the sample extend + file. + +------------------------------------------------------------------- Old: ---- imapfilter-2.6.11.tar.gz New: ---- imapfilter-2.6.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ imapfilter.spec ++++++ --- /var/tmp/diff_new_pack.H3k5ca/_old 2018-11-09 07:54:49.799682930 +0100 +++ /var/tmp/diff_new_pack.H3k5ca/_new 2018-11-09 07:54:49.803682926 +0100 @@ -12,19 +12,18 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: imapfilter +Version: 2.6.12 +Release: 0 Summary: A mail filtering utility License: MIT Group: Productivity/Networking/Email/Utilities -Url: https://github.com/lefcha/imapfilter -Version: 2.6.11 -Release: 0 +URL: https://github.com/lefcha/imapfilter Source: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: lua-devel >= 5.1 BuildRequires: openssl-devel BuildRequires: pcre-devel @@ -41,7 +40,6 @@ IMAPFilter uses the Lua programming language as a configuration and extension language. - %prep %setup -q @@ -52,11 +50,12 @@ %make_install PREFIX="%{_prefix}" MANDIR="%{_mandir}" %files -%defattr(-, root, root) %{_bindir}/imapfilter %dir %{_datadir}/imapfilter %{_datadir}/imapfilter/*.lua -%{_mandir}/man1/imapfilter.1* -%{_mandir}/man5/imapfilter_config.5* +%{_mandir}/man1/imapfilter.1%{?ext_man} +%{_mandir}/man5/imapfilter_config.5%{?ext_man} +%license LICENSE +%doc README AUTHORS NEWS %changelog ++++++ imapfilter-2.6.11.tar.gz -> imapfilter-2.6.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.11/NEWS new/imapfilter-2.6.12/NEWS --- old/imapfilter-2.6.11/NEWS 2017-11-19 10:38:24.000000000 +0100 +++ new/imapfilter-2.6.12/NEWS 2018-10-03 09:37:24.000000000 +0200 @@ -1,3 +1,8 @@ +IMAPFilter 2.6.12 - 03 Oct 2017 + - Support for Server Name Indication (SNI). + - The searching methods return values are described in the config man page. + - Example of using the enter_idle() function in the sample extend file. + IMAPFilter 2.6.11 - 19 Nov 2017 - Support for interrupting IDLE mode with SIGUSR1/SIGUSR2. - New "persist" option to try to recover a connection indefinitely. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.11/doc/imapfilter_config.5 new/imapfilter-2.6.12/doc/imapfilter_config.5 --- old/imapfilter-2.6.11/doc/imapfilter_config.5 2017-11-19 10:38:24.000000000 +0100 +++ new/imapfilter-2.6.12/doc/imapfilter_config.5 2018-10-03 09:37:24.000000000 +0200 @@ -1,4 +1,4 @@ -.Dd Nov 11, 2017 +.Dd Aug 26, 2018 .Dt IMAPFILTER_CONFIG 5 .Os .Sh NAME @@ -9,7 +9,7 @@ .Sh DESCRIPTION .Xr imapfilter 1 uses the Lua programming language as a configuration and extension language, -therefore the configuration file is a Lua script. +therefore the configuration file is a Lua script. .Pp Although knowledge of Lua is not required to use .Xr imapfilter 1 , @@ -115,7 +115,7 @@ When this option is enabled and the server supports the Challenge-Response Authentication Mechanism (specifically CRAM-MD5), this method will be used for user authentication instead of a plaintext password LOGIN. This variable -takes a +takes a .Vt boolean as a value. Default is .Dq true . @@ -226,7 +226,7 @@ .It Va starttls When this option is enabled and the server supports the IMAP STARTTLS extension, a TLS connection will be negotiated with the mail server in the -beginning of the session. This variable takes a +beginning of the session. This variable takes a .Vt boolean as value. Default is .Dq true . @@ -300,6 +300,12 @@ has been set). It takes a .Vt string as a value. +.Pp +Note that due to Lua using backslash +.Sq \e +as an escape character for its strings, one has to use double backslashes in +order to insert a single backslash, and thus a backslash +character inside a password might require four backslashes. .It Va oauth2 The OAuth2 string to use to authenticate if the server supports the XOAUTH2 authentication mechanism. If the server does not support it and a @@ -391,10 +397,10 @@ .It Fn list_all folder mailbox Lists all the available mailboxes in the .Fa folder -.Pq Vt string +.Pq Vt string with the name .Fa mailbox -.Pq Vt string , +.Pq Vt string , and returns a .Vt table that contains @@ -405,7 +411,7 @@ that contains .Vt strings , the available folders. Wildcards may only be used in the -.Fa mailbox +.Fa mailbox argument. .Pp .It Fn list_subscribed folder mailbox @@ -425,7 +431,7 @@ that contains .Vt strings , the subscribed folders. Wildcards may only be used in the -.Fa mailbox +.Fa mailbox argument. .El .Pp @@ -502,7 +508,7 @@ .Fn create_mailbox , etc.) , are considered keywords and must not be used as mailbox names, and the same also applies for any string starting with an underscore, as they are -considered reserved. +considered reserved. .Ss CHECKING The following methods can be used to check the status of a mailbox: .Pp @@ -673,6 +679,31 @@ myotheraccount.myothermailbox:contain_subject('test') .Ed .Pp +And for those that want to know more about the return values of the following +methods, it is a +.Vt table +which contains +.Vt tables +with two values: the mailbox +.Pq Vt table +the message belongs to, and the message UID +.Pq Vt number +which points to the matching message. For examples on iterating these +returned tables, or creating new tables of this format (they are actually +metatables implementing sets), see the +.Va samples/extend.lua +file. +.Bd -literal -offset 4n +{ + { <myaccount.mymailbox>, 1 }, + { <myaccount.mymailbox>, 3 }, + { <myaccount.myothermailbox>, 5 }, + { <myothermailbox.myothermailbox>, 7}, + { ... }, + ... +} +.Ed +.Pp The following method can be used to get all messages in a mailbox: .Pp .Bl -tag -width Ds -compact @@ -688,7 +719,7 @@ Messages that have been answered. .Pp .It Fn is_deleted -Messages that are marked for later removal. +Messages that are marked for later removal. .Pp .It Fn is_draft Messages that have not completed composition. @@ -715,7 +746,7 @@ Messages that have not been answered. .Pp .It Fn is_undeleted -Messages that are not marked for later removal. +Messages that are not marked for later removal. .Pp .It Fn is_undraft Messages that have completed composition. @@ -811,7 +842,7 @@ .Dq day-month-year form. .Pp -.It Fn arrived_since date +.It Fn arrived_since date Messages that have arrived within or later than the .Fa date .Pq Vt string , @@ -900,7 +931,7 @@ Messages that contain the .Fa string .Pq Vt string -in the +in the .Fa field .Pq Vt string header field. @@ -934,8 +965,8 @@ .Pp Note that due to Lua using backslash .Sq \e -as an escape character for its strings, one has to double backslashes in order -to insert a single backslash inside a regular expression pattern: +as an escape character for its strings, one has to use 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 @@ -1381,9 +1412,9 @@ .Vt string type. Note that due to Lua using backslash .Sq \e -as an escape character for its strings, one has to double backslashes in order -to insert a single backslash inside a regular expression pattern. For more -information on PCRE see +as an escape character for its strings, one has to use double backslashes in +order to insert a single backslash inside a regular expression pattern. For +more information on PCRE see .Ad http://pcre.org/original/doc/html/ . .El .Pp diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.11/samples/extend.lua new/imapfilter-2.6.12/samples/extend.lua --- old/imapfilter-2.6.11/samples/extend.lua 2017-11-19 10:38:24.000000000 +0100 +++ new/imapfilter-2.6.12/samples/extend.lua 2018-10-03 09:37:24.000000000 +0200 @@ -20,6 +20,19 @@ become_daemon(600, forever) +-- The previous example uses polling in order to search specific messages and +-- process them. Another more efficient alternative is using the IMAP IDLE +-- extension. This is implemented by the enter_idle() method, which waits for +-- a notification by the server when new messages arrive in the monitored +-- mailbox. + +while true do + myaccount.mymailbox:enter_idle() + results = myaccount.mymailbox:is_unread() + results:move_messages(myaccount.myothermailbox) +end + + -- IMAPFilter can take advantage of all those filtering utilities that -- are available and use a wide range of heuristic tests, text analysis, -- internet-based realtime blacklists, advanced learning algorithms, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.11/src/socket.c new/imapfilter-2.6.12/src/socket.c --- old/imapfilter-2.6.11/src/socket.c 2017-11-19 10:38:24.000000000 +0100 +++ new/imapfilter-2.6.12/src/socket.c 2018-10-03 09:37:24.000000000 +0200 @@ -141,6 +141,16 @@ if (!(ssn->sslconn = SSL_new(ctx))) goto fail; +#if OPENSSL_VERSION_NUMBER >= 0x1000000fL + r = SSL_set_tlsext_host_name(ssn->sslconn, ssn->server); + if (r == 0) { + error("failed setting the Server Name Indication (SNI) to " + "%s; %s\n", ssn->server, + ERR_error_string(ERR_get_error(), NULL)); + goto fail; + } +#endif + SSL_set_fd(ssn->sslconn, ssn->socket); for (;;) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imapfilter-2.6.11/src/version.h new/imapfilter-2.6.12/src/version.h --- old/imapfilter-2.6.11/src/version.h 2017-11-19 10:38:24.000000000 +0100 +++ new/imapfilter-2.6.12/src/version.h 2018-10-03 09:37:24.000000000 +0200 @@ -3,10 +3,10 @@ /* Program's version number. */ -#define VERSION "2.6.11" +#define VERSION "2.6.12" /* Program's copyright. */ -#define COPYRIGHT "Copyright (c) 2001-2017 Eleftherios Chatzimparmpas" +#define COPYRIGHT "Copyright (c) 2001-2018 Eleftherios Chatzimparmpas" #endif /* VERSION_H */
