Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package imapfilter for openSUSE:Factory 
checked in at 2026-04-18 21:37:11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/imapfilter (Old)
 and      /work/SRC/openSUSE:Factory/.imapfilter.new.11940 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "imapfilter"

Sat Apr 18 21:37:11 2026 rev:52 rq:1347946 version:2.8.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/imapfilter/imapfilter.changes    2026-02-09 
19:31:22.530270068 +0100
+++ /work/SRC/openSUSE:Factory/.imapfilter.new.11940/imapfilter.changes 
2026-04-18 21:37:44.436947035 +0200
@@ -1,0 +2,7 @@
+Sat Apr 18 12:37:20 UTC 2026 - Dirk Müller <[email protected]>
+
+- update to 2.8.5:
+  * Re-added OAuth2 example in the sample extend file
+  * Bug fix; minor incompatibility with Lua 5.5
+
+-------------------------------------------------------------------

Old:
----
  imapfilter-2.8.3.tar.gz

New:
----
  imapfilter-2.8.5.tar.gz

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

Other differences:
------------------
++++++ imapfilter.spec ++++++
--- /var/tmp/diff_new_pack.9gNlfL/_old  2026-04-18 21:37:45.044971810 +0200
+++ /var/tmp/diff_new_pack.9gNlfL/_new  2026-04-18 21:37:45.048971973 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           imapfilter
-Version:        2.8.3
+Version:        2.8.5
 Release:        0
 Summary:        A mail filtering utility
 License:        MIT

++++++ imapfilter-2.8.3.tar.gz -> imapfilter-2.8.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imapfilter-2.8.3/LICENSE new/imapfilter-2.8.5/LICENSE
--- old/imapfilter-2.8.3/LICENSE        2025-04-27 20:05:21.000000000 +0200
+++ new/imapfilter-2.8.5/LICENSE        2026-03-08 12:48:10.000000000 +0100
@@ -1,4 +1,4 @@
-Copyright (c) 2001-2023 Eleftherios Chatzimparmpas
+Copyright (c) 2001-2026 Eleftherios Chatzimparmpas
 
 Permission is hereby granted, free of charge, to any person obtaining a
 copy of this software and associated documentation files (the "Software"),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imapfilter-2.8.3/NEWS new/imapfilter-2.8.5/NEWS
--- old/imapfilter-2.8.3/NEWS   2025-04-27 20:05:21.000000000 +0200
+++ new/imapfilter-2.8.5/NEWS   2026-03-08 12:48:10.000000000 +0100
@@ -1,3 +1,9 @@
+IMAPFilter 2.8.5 - Mar 8, 2026
+  - Re-added OAuth2 example in the sample extend file
+
+IMAPFilter 2.8.4 - Mar 7, 2026
+  - Bug fix; minor incompatibility with Lua 5.5
+
 IMAPFilter 2.8.3 - Apr 27, 2025
   - Include body transfer encoding in fetch_structure() return value.
   - Bug fix; minor incompatibility with Lua 5.3 and 5.4
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imapfilter-2.8.3/README new/imapfilter-2.8.5/README
--- old/imapfilter-2.8.3/README 2025-04-27 20:05:21.000000000 +0200
+++ new/imapfilter-2.8.5/README 2026-03-08 12:48:10.000000000 +0100
@@ -27,7 +27,7 @@
 
   Compile time requirements are:
 
-  - Lua, version 5.4 or 5.3 or 5.2 or 5.1, https://www.lua.org
+  - Lua, version 5.5 or 5.4 or 5.3 or 5.2 or 5.1, https://www.lua.org
   - PCRE2, version 10.00 and later, https://www.pcre.org
   - OpenSSL, version 1.0.2 and later, https://www.openssl.org
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imapfilter-2.8.3/samples/extend.lua 
new/imapfilter-2.8.5/samples/extend.lua
--- old/imapfilter-2.8.3/samples/extend.lua     2025-04-27 20:05:21.000000000 
+0200
+++ new/imapfilter-2.8.5/samples/extend.lua     2026-03-08 12:48:10.000000000 
+0100
@@ -189,3 +189,49 @@
 
 success2, results2 = recover(commands2)
 if success2 then results2:delete_messages() end
+
+
+-- An alternative way to authenticate to a server is by using a OAuth2 string,
+-- if the server supports the XOAUTH2 authentication mechanism.
+--
+-- In order to generate an OAuth2 string Google's oauth2.py script and library
+-- can be used, and instructions on how to use it and where to download it are
+-- available at:
+--
+--   https://github.com/google/gmail-oauth2-tools
+--
+-- Alternative OAuth2 token managers that should also work are:
+--
+--   https://github.com/pdobsan/oama
+--   https://github.com/ltratt/pizauth
+--   https://github.com/simonrob/email-oauth2-proxy
+--
+-- The generated OAuth2 string is then supplied to imapfilter in order to
+-- authenticate to the IMAP server using it instead of a login
+-- username/password pair.
+--
+-- Here we assume that imapfilter has the user, the cliend id, the client
+-- secret and the refresh token, and uses them to generate a new access token
+-- (access tokens expire after one hour), and then from the new access token to
+-- generate the OAuth2 string that is used with the IMAP server:
+user = '[email protected]'
+clientid = '364545978226.apps.googleusercontent.com'
+clientsecret = 'zNrNsBzOOnQy8_O-8LkofeTR'
+refreshtoken = '1/q4SaB2JMQB9I-an6F1rxJE9OkOMtfjaz1bPm1tfDpQM'
+
+status, output = pipe_from('oauth2.py --client_id=' .. clientid ..
+                 ' --client_secret=' .. clientsecret ..
+                 ' --refresh_token=' .. refreshtoken)
+_, _, accesstoken = string.find(output, 'Access Token: ([%w%p]+)\n')
+
+status, output = pipe_from('oauth2.py --generate_oauth2_string' ..
+                           ' --access_token=' .. accesstoken ..
+                           ' --user=' .. user)
+_, _, oauth2string = string.find(output, 'OAuth2 argument:\n([%w%p]+)\n')
+
+account3 = IMAP {
+    server = 'imap.gmail.com',
+    ssl = 'tls1.2',
+    username = user,
+    oauth2 = oauth2string
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imapfilter-2.8.3/src/common.lua 
new/imapfilter-2.8.5/src/common.lua
--- old/imapfilter-2.8.3/src/common.lua 2025-04-27 20:05:21.000000000 +0200
+++ new/imapfilter-2.8.5/src/common.lua 2026-03-08 12:48:10.000000000 +0100
@@ -37,7 +37,7 @@
 function _extract_mailboxes(messages)
     local t = {}
     for _, v in ipairs(messages) do
-        b, _ = table.unpack(v)
+        b = table.unpack(v)
         t[b] = true
     end
     return t
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/imapfilter-2.8.3/src/version.h 
new/imapfilter-2.8.5/src/version.h
--- old/imapfilter-2.8.3/src/version.h  2025-04-27 20:05:21.000000000 +0200
+++ new/imapfilter-2.8.5/src/version.h  2026-03-08 12:48:10.000000000 +0100
@@ -3,10 +3,10 @@
 
 
 /* Program's version number. */
-#define VERSION                "2.8.3"
+#define VERSION                "2.8.5"
 
 /* Program's copyright. */
-#define COPYRIGHT      "Copyright (c) 2001-2025 Eleftherios Chatzimparmpas"
+#define COPYRIGHT      "Copyright (c) 2001-2026 Eleftherios Chatzimparmpas"
 
 
 #endif                         /* VERSION_H */

Reply via email to