]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
3 years agom4: want_zstd.m4 - Simplify pkg-config check
Karl Fleischmann [Thu, 9 Jun 2022 14:58:28 +0000 (16:58 +0200)] 
m4: want_zstd.m4 - Simplify pkg-config check

This commit simplifies the package check to be more consistent with the
other pkg-config module checks, which lowers the burden of maintenance.

3 years agom4: want_unwind.m4 - Simplify pkg-config check
Karl Fleischmann [Thu, 9 Jun 2022 14:34:05 +0000 (16:34 +0200)] 
m4: want_unwind.m4 - Simplify pkg-config check

This commit simplifies the package check to be more consistent with the
other pkg-config module checks, which lowers the burden of maintenance.

3 years agom4: want_pgsql.m4 - Add shim for CentOS7
Karl Fleischmann [Thu, 9 Jun 2022 16:12:53 +0000 (18:12 +0200)] 
m4: want_pgsql.m4 - Add shim for CentOS7

This commit adds manual gathering of compile/link-flags for older
distributions (namely CentOS7) that don't supply a pkg-config file in
their core repository package for postgresql.

3 years agom4: want_mysql.m4 - Add shim for CentOS7
Karl Fleischmann [Thu, 9 Jun 2022 16:11:32 +0000 (18:11 +0200)] 
m4: want_mysql.m4 - Add shim for CentOS7

This commit adds manual gathering of compile/link-flags for older
distributions (namely CentOS7) that don't supply a pkg-check file in
their core repository package for mysql/mariadb.

3 years agom4: Add mariadb fallback for want_mysql.m4
Karl Fleischmann [Wed, 8 Jun 2022 12:33:21 +0000 (14:33 +0200)] 
m4: Add mariadb fallback for want_mysql.m4

MariaDB can be used as a drop-in replacement for the MySQL API, in case
the default package repositories don't provide any mysql packages.

3 years agom4: Rewrite want_mysql.m4 to use pkg_config
Karl Fleischmann [Wed, 8 Jun 2022 12:12:15 +0000 (14:12 +0200)] 
m4: Rewrite want_mysql.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Rewrite want_pgsql.m4 to use pkg_config
Karl Fleischmann [Wed, 8 Jun 2022 11:10:00 +0000 (13:10 +0200)] 
m4: Rewrite want_pgsql.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Rewrite want_sqlite.m4 to use pkg_config
Karl Fleischmann [Wed, 8 Jun 2022 09:06:14 +0000 (11:06 +0200)] 
m4: Rewrite want_sqlite.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Rewrite want_cassandra.m4 to use pkg_config
Karl Fleischmann [Wed, 8 Jun 2022 09:04:11 +0000 (11:04 +0200)] 
m4: Rewrite want_cassandra.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Rewrite want_zlib.m4 to use pkg_config
Karl Fleischmann [Thu, 9 Jun 2022 14:47:10 +0000 (16:47 +0200)] 
m4: Rewrite want_zlib.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Rewrite want_solr.m4 to use pkg_config
Karl Fleischmann [Wed, 8 Jun 2022 09:02:13 +0000 (11:02 +0200)] 
m4: Rewrite want_solr.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Rewrite want_lz4.m4 to use pkg_config
Karl Fleischmann [Wed, 8 Jun 2022 09:01:41 +0000 (11:01 +0200)] 
m4: Rewrite want_lz4.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Rewrite want_ldap.m4 to use pkg_config
Karl Fleischmann [Wed, 8 Jun 2022 08:56:27 +0000 (10:56 +0200)] 
m4: Rewrite want_ldap.m4 to use pkg_config

Manually checking for headers/libraries requires the user to know and
pass non-default library-paths when configuring the project. Using
pkg_config simplifies the macro and automatically sets the
compiler/linker flags accordingly.

3 years agom4: Use AC_MSG_ERROR() instead of AC_ERROR()
Aki Tuomi [Mon, 25 Apr 2022 19:50:21 +0000 (22:50 +0300)] 
m4: Use AC_MSG_ERROR() instead of AC_ERROR()

AC_ERROR() is deprecated and will be obsolete soon. The documentation
additionally state to use lower-case "cannot" instead of upper case
"Can't".

3 years agom4: want_textcat.m4 - Modernize m4 syntax
Karl Fleischmann [Tue, 14 Jun 2022 08:16:19 +0000 (10:16 +0200)] 
m4: want_textcat.m4 - Modernize m4 syntax

3 years agom4: want_prefetch.m4 - Modernize m4 syntax
Karl Fleischmann [Tue, 14 Jun 2022 08:16:07 +0000 (10:16 +0200)] 
m4: want_prefetch.m4 - Modernize m4 syntax

3 years agom4: want_passwd.m4 - Modernize m4 syntax
Karl Fleischmann [Tue, 14 Jun 2022 08:15:52 +0000 (10:15 +0200)] 
m4: want_passwd.m4 - Modernize m4 syntax

3 years agom4: want_bsdauth.m4 - Modernize m4 syntax
Karl Fleischmann [Tue, 14 Jun 2022 08:15:07 +0000 (10:15 +0200)] 
m4: want_bsdauth.m4 - Modernize m4 syntax

3 years agom4: want_pam.m4 - Modernize m4 syntax
Karl Fleischmann [Thu, 9 Jun 2022 14:14:02 +0000 (16:14 +0200)] 
m4: want_pam.m4 - Modernize m4 syntax

3 years agom4: want_icu.m4 - Modernize m4 syntax
Karl Fleischmann [Thu, 9 Jun 2022 14:36:11 +0000 (16:36 +0200)] 
m4: want_icu.m4 - Modernize m4 syntax

3 years agom4: want_cdb.m4 - Modernize m4 syntax
Karl Fleischmann [Thu, 9 Jun 2022 14:35:50 +0000 (16:35 +0200)] 
m4: want_cdb.m4 - Modernize m4 syntax

3 years agom4: want_stemmer.m4 - Modernize m4 syntax
Karl Fleischmann [Thu, 9 Jun 2022 14:24:19 +0000 (16:24 +0200)] 
m4: want_stemmer.m4 - Modernize m4 syntax

3 years agom4: want_nss.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:50:01 +0000 (22:50 +0300)] 
m4: want_nss.m4 - Modernize m4 syntax

3 years agom4: want_mysql.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:48:45 +0000 (22:48 +0300)] 
m4: want_mysql.m4 - Modernize m4 syntax

3 years agom4: want_gssapi.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:45:47 +0000 (22:45 +0300)] 
m4: want_gssapi.m4 - Modernize m4 syntax

3 years agom4: want_db.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:42:04 +0000 (22:42 +0300)] 
m4: want_db.m4 - Modernize m4 syntax

3 years agom4: vararg.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:39:44 +0000 (22:39 +0300)] 
m4: vararg.m4 - Modernize m4 syntax

3 years agom4: typeof.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:35:35 +0000 (22:35 +0300)] 
m4: typeof.m4 - Modernize m4 syntax

3 years agom4: typeof_dev_t.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:34:51 +0000 (22:34 +0300)] 
m4: typeof_dev_t.m4 - Modernize m4 syntax

3 years agom4: test_with.m4 - Modernize m4 syntax
Karl Fleischmann [Tue, 21 Jun 2022 08:23:18 +0000 (10:23 +0200)] 
m4: test_with.m4 - Modernize m4 syntax

- Use AS_IF macro instead of plain `if`/`elif`/`then`/`else`/`fi`,
- rewrite path-test to improve readability.

3 years agom4: st_tim.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:28:29 +0000 (22:28 +0300)] 
m4: st_tim.m4 - Modernize m4 syntax

3 years agom4: static_array.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:27:39 +0000 (22:27 +0300)] 
m4: static_array.m4 - Modernize m4 syntax

3 years agom4: sql.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:21:12 +0000 (22:21 +0300)] 
m4: sql.m4 - Modernize m4 syntax

3 years agom4: sendfile.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:15:50 +0000 (22:15 +0300)] 
m4: sendfile.m4 - Modernize m4 syntax

3 years agom4: rlimit.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:14:42 +0000 (22:14 +0300)] 
m4: rlimit.m4 - Modernize m4 syntax

3 years agom4: quota.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:12:53 +0000 (22:12 +0300)] 
m4: quota.m4 - Modernize m4 syntax

3 years agom4: q_quotactl.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:10:29 +0000 (22:10 +0300)] 
m4: q_quotactl.m4 - Modernize m4 syntax

3 years agom4: pr_set_dumpable.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:09:49 +0000 (22:09 +0300)] 
m4: pr_set_dumpable.m4 - Modernize m4 syntax

3 years agom4: notify.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:05:39 +0000 (22:05 +0300)] 
m4: notify.m4 - Modernize m4 syntax

3 years agom4: mntctl.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 19:00:01 +0000 (22:00 +0300)] 
m4: mntctl.m4 - Modernize m4 syntax

3 years agom4: mmap_write.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:58:14 +0000 (21:58 +0300)] 
m4: mmap_write.m4 - Modernize m4 syntax

3 years agom4: linux_mremap.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:52:46 +0000 (21:52 +0300)] 
m4: linux_mremap.m4 - Modernize m4 syntax

3 years agom4: libcap.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:51:52 +0000 (21:51 +0300)] 
m4: libcap.m4 - Modernize m4 syntax

3 years agom4: ipv6.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:51:44 +0000 (21:51 +0300)] 
m4: ipv6.m4 - Modernize m4 syntax

3 years agom4: iovec.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:47:25 +0000 (21:47 +0300)] 
m4: iovec.m4 - Modernize m4 syntax

3 years agom4: ioloop.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:35:35 +0000 (21:35 +0300)] 
m4: ioloop.m4 - Modernize m4 syntax

3 years agom4: gmtime_tm_gmtoff.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:23:00 +0000 (21:23 +0300)] 
m4: gmtime_tm_gmtoff.m4 - Modernize m4 syntax

3 years agom4: gmtime_max.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:22:12 +0000 (21:22 +0300)] 
m4: gmtime_max.m4 - Modernize m4 syntax

3 years agom4: glibc.m4 - Improve glibc-check
Karl Fleischmann [Tue, 21 Jun 2022 07:26:19 +0000 (09:26 +0200)] 
m4: glibc.m4 - Improve glibc-check

The previous check was based on a compilation error and negating the
value. This updated check is more clear as it runs the preprocessor with
the appropriate header file and checks if the output matches, which in
turn allows for a more forward readable definition of the
i_cv_have_glibc value.

3 years agom4: glibc.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 18:19:45 +0000 (21:19 +0300)] 
m4: glibc.m4 - Modernize m4 syntax

3 years agom4: Delete flexible_array_member.m4
Aki Tuomi [Mon, 25 Apr 2022 17:42:57 +0000 (20:42 +0300)] 
m4: Delete flexible_array_member.m4

Autoconf is recent enough.

3 years agom4: fd_passing.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 17:41:35 +0000 (20:41 +0300)] 
m4: fd_passing.m4 - Modernize m4 syntax

3 years agom4: dovecot.m4 - Add missing ;; to case
Aki Tuomi [Wed, 22 May 2019 07:50:14 +0000 (10:50 +0300)] 
m4: dovecot.m4 - Add missing ;; to case

3 years agom4: dovecot.m4 - Update compiler checks
Aki Tuomi [Mon, 25 Apr 2022 18:06:38 +0000 (21:06 +0300)] 
m4: dovecot.m4 - Update compiler checks

Require at least C99 compiler and try to use gnu11, gnu99, c11, c99.
This avoids using too modern syntax.

3 years agom4: dovecot.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 17:31:10 +0000 (20:31 +0300)] 
m4: dovecot.m4 - Modernize m4 syntax

3 years agom4: dbqlk.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 17:28:19 +0000 (20:28 +0300)] 
m4: dbqlk.m4 - Modernize m4 syntax

3 years agom4: crypt_xpg6.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 17:26:19 +0000 (20:26 +0300)] 
m4: crypt_xpg6.m4 - Modernize m4 syntax

3 years agom4: blockdev.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 13:06:46 +0000 (16:06 +0300)] 
m4: blockdev.m4 - Modernize m4 syntax

3 years agom4: arc4random.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 13:05:22 +0000 (16:05 +0300)] 
m4: arc4random.m4 - Modernize m4 syntax

3 years agom4: ac_typeof.m4 - Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 13:04:08 +0000 (16:04 +0300)] 
m4: ac_typeof.m4 - Modernize m4 syntax

3 years agoconfigure.ac: Modernize m4 syntax
Aki Tuomi [Mon, 25 Apr 2022 12:58:21 +0000 (15:58 +0300)] 
configure.ac: Modernize m4 syntax

3 years agolib-storage: Make NO-NOSELECT the default
Marco Bettini [Mon, 20 Jun 2022 14:35:24 +0000 (14:35 +0000)] 
lib-storage: Make NO-NOSELECT the default

Use KEEP-NOSELECT to revert the old behaviour.

3 years agolib-storage: struct mailbox_list_settings - Use bit fields for flags
Marco Bettini [Tue, 21 Jun 2022 08:17:21 +0000 (08:17 +0000)] 
lib-storage: struct mailbox_list_settings - Use bit fields for flags

3 years agoplugins: Drop mailbox-alias
Marco Bettini [Tue, 28 Jun 2022 15:27:55 +0000 (15:27 +0000)] 
plugins: Drop mailbox-alias

3 years agolib-storage: mbox_sync_handle_eof_updates() - Fix for crash on implicit conversion
Marco Bettini [Tue, 28 Jun 2022 14:37:55 +0000 (14:37 +0000)] 
lib-storage: mbox_sync_handle_eof_updates() - Fix for crash on implicit conversion

implicit conversion from type ‘unsigned long’ of value
0xFFFFFFFFFFFFF3FD (64-bit, unsigned) to type ‘off_t’ (aka ‘long’)
changed the value to -3075 (64-bit, signed)

3 years agolib-index: Fix updating minor_version for old index files
Timo Sirainen [Mon, 25 Jan 2021 19:42:21 +0000 (21:42 +0200)] 
lib-index: Fix updating minor_version for old index files

If the index was originally created between Dovecot v1.1 and v2.1, the
minor_version wasn't updated. This caused log2_rotate_time and
last_temp_file_scan fields to become reset to 0 constantly, which
prevented optimizations using those fields.

3 years agolib-login: Move login_request/reply to login-interface.h
Timo Sirainen [Sun, 5 Apr 2020 13:58:57 +0000 (16:58 +0300)] 
lib-login: Move login_request/reply to login-interface.h

These are used by both the login-client and login-server.

3 years agolib-login: Add comments to .h file headers explaining what they are doing
Timo Sirainen [Sat, 4 Apr 2020 21:43:37 +0000 (00:43 +0300)] 
lib-login: Add comments to .h file headers explaining what they are doing

3 years agolib-login: Rename "master login auth" structs/defines/functions to "login server...
Timo Sirainen [Sun, 5 Apr 2020 13:49:41 +0000 (16:49 +0300)] 
lib-login: Rename "master login auth" structs/defines/functions to "login server auth"

3 years agolib-login: Rename master-login-auth.[ch] to login-server-auth.[ch]
Timo Sirainen [Sun, 5 Apr 2020 13:45:08 +0000 (16:45 +0300)] 
lib-login: Rename master-login-auth.[ch] to login-server-auth.[ch]

3 years agolib-login: Rename "master login" structs/defines/functions to "login server"
Timo Sirainen [Sun, 5 Apr 2020 13:38:09 +0000 (16:38 +0300)] 
lib-login: Rename "master login" structs/defines/functions to "login server"

 * master_login -> login_server
 * master_login_client -> login_server_request
 * other master_login_* -> login_server_*

3 years agolib-login: Use i_close_fd() where possible
Timo Sirainen [Sun, 5 Apr 2020 13:27:52 +0000 (16:27 +0300)] 
lib-login: Use i_close_fd() where possible

3 years agolib-login: Rename master-login.[ch] to login-server.[ch]
Timo Sirainen [Sun, 5 Apr 2020 13:14:17 +0000 (16:14 +0300)] 
lib-login: Rename master-login.[ch] to login-server.[ch]

3 years agologin-common: Replace master-login.h include with login-client.h
Timo Sirainen [Sun, 5 Apr 2020 13:13:15 +0000 (16:13 +0300)] 
login-common: Replace master-login.h include with login-client.h

3 years agolib-login: Rename "master auth" structs/defines/functions to "login"
Timo Sirainen [Sat, 4 Apr 2020 21:27:52 +0000 (00:27 +0300)] 
lib-login: Rename "master auth" structs/defines/functions to "login"

 * master_auth -> login_client_list
 * master_auth_connection -> login_connection
 * master_auth_request -> login_request
 * master_auth_reply -> login_reply
 * master_auth_request_params -> login_client_request_params
 * MASTER_AUTH_* mostly to LOGIN_REQUEST_*, but also LOGIN_REPLY_* and LOGIN_CLIENT_*

3 years agolib-login: Rename master-auth.[ch] to login-client.[ch]
Timo Sirainen [Sat, 4 Apr 2020 21:21:09 +0000 (00:21 +0300)] 
lib-login: Rename master-auth.[ch] to login-client.[ch]

This better describes what it's doing.

3 years agodoveadm: doveadm-auth - Remove unused master_auth_request variables
Timo Sirainen [Sat, 4 Apr 2020 21:10:15 +0000 (00:10 +0300)] 
doveadm: doveadm-auth - Remove unused master_auth_request variables

3 years agoauth: Fix assert-crash if auth-master client sent too long cookie in REQUEST
Timo Sirainen [Sat, 4 Apr 2020 20:59:50 +0000 (23:59 +0300)] 
auth: Fix assert-crash if auth-master client sent too long cookie in REQUEST

Only root can connect to auth-master socket by default, so this shouldn't
have caused any real problems.

3 years agoglobal: Use AUTH_CLIENT_PROTOCOL_MAJOR/MINOR_VERSION also for auth-master socket
Timo Sirainen [Sat, 4 Apr 2020 20:55:21 +0000 (23:55 +0300)] 
global: Use AUTH_CLIENT_PROTOCOL_MAJOR/MINOR_VERSION also for auth-master socket

Both auth-client and auth-master are using the same auth protocol. There's
no need to have separate version numbers for auth-master socket, it's just
confusing things. The auth server's auth-client version checking code was
already wrongly using AUTH_MASTER_PROTOCOL_MAJOR_VERSION.

3 years agolib-login, login-common: Rename master_auth_request_full() to master_auth_request()
Timo Sirainen [Sat, 4 Apr 2020 20:48:51 +0000 (23:48 +0300)] 
lib-login, login-common: Rename master_auth_request_full() to master_auth_request()

3 years agolib-auth: Merge test-auth-master and test-auth-master2
Timo Sirainen [Mon, 3 May 2021 16:16:04 +0000 (19:16 +0300)] 
lib-auth: Merge test-auth-master and test-auth-master2

3 years agomaster: Move test-auth-* unit tests to lib-auth
Timo Sirainen [Sat, 4 Apr 2020 20:41:32 +0000 (23:41 +0300)] 
master: Move test-auth-* unit tests to lib-auth

Now that it no longer depends on lib-master, there's no cyclic dependency
problem.

Because test-auth-master already exists, this commit temporarily creates a
second test-auth-master2.

3 years agomaster: test-auth-* - Remove lib-master dependency
Timo Sirainen [Sat, 4 Apr 2020 20:35:55 +0000 (23:35 +0300)] 
master: test-auth-* - Remove lib-master dependency

3 years agomaster: Move test-master-login-auth unit test to lib-login
Timo Sirainen [Sat, 4 Apr 2020 19:27:59 +0000 (22:27 +0300)] 
master: Move test-master-login-auth unit test to lib-login

3 years agolib-master: Move master-auth/login code to lib-login
Timo Sirainen [Sat, 4 Apr 2020 19:20:49 +0000 (22:20 +0300)] 
lib-master: Move master-auth/login code to lib-login

This makes it clearer that this code is only used for "login services"
while lib-master is used by all services.

3 years agolib-master: master_service - Remove dependency for master_login.
Timo Sirainen [Sat, 4 Apr 2020 19:11:24 +0000 (22:11 +0300)] 
lib-master: master_service - Remove dependency for master_login.

3 years agoglobal: Move setting push_notification_backend to old-set-parser
Marco Bettini [Wed, 22 Jun 2022 08:35:17 +0000 (08:35 +0000)] 
global: Move setting push_notification_backend to old-set-parser

3 years agoconfig: old_settings_handle_path() - Handle case where path/<x>/ has x other than 0
Marco Bettini [Mon, 27 Jun 2022 12:40:47 +0000 (14:40 +0200)] 
config: old_settings_handle_path() - Handle case where path/<x>/ has x other than 0

3 years agolib-imap: fuzz-imap-bodystructure - Fix parsing to be used correctly
Timo Sirainen [Mon, 20 Jun 2022 19:27:15 +0000 (22:27 +0300)] 
lib-imap: fuzz-imap-bodystructure - Fix parsing to be used correctly

imap_bodystructure_parse_full() should be used to generate the message_parts
correctly based on the input string. This fixes wrongly triggered panics.

3 years agoglobal: Rename auth_default_realm into auth_default_domain
Marco Bettini [Fri, 17 Jun 2022 15:03:13 +0000 (15:03 +0000)] 
global: Rename auth_default_realm into auth_default_domain

3 years agoauth: Removing stray whitespaces
Marco Bettini [Mon, 20 Jun 2022 13:12:19 +0000 (13:12 +0000)] 
auth: Removing stray whitespaces

3 years agodoc/example-config: Removing stray whitespaces
Marco Bettini [Mon, 20 Jun 2022 13:12:37 +0000 (13:12 +0000)] 
doc/example-config: Removing stray whitespaces

3 years agolib-storage: Disable all events for raw user/storage
Timo Sirainen [Fri, 17 Jun 2022 10:19:16 +0000 (13:19 +0300)] 
lib-storage: Disable all events for raw user/storage

The events can be enabled for debug logging, but not for statistics
and such. These were just causing confusion.

3 years agolib: Add event_disable_callbacks()
Timo Sirainen [Fri, 17 Jun 2022 10:19:06 +0000 (13:19 +0300)] 
lib: Add event_disable_callbacks()

3 years agolib-smtp: Clarify how timeouts actually work
Timo Sirainen [Thu, 16 Jun 2022 11:37:21 +0000 (14:37 +0300)] 
lib-smtp: Clarify how timeouts actually work

connect_timeout_msecs can't ever default to command_timeout_msecs, because
a zero timeout gets converted to the default 30s timeout.

3 years agomail-crypt: mail_crypt_user_set_private_key() - Move mailbox alloc later to avoid...
Martti Rannanjärvi [Thu, 16 Jun 2022 13:53:47 +0000 (16:53 +0300)] 
mail-crypt: mail_crypt_user_set_private_key() - Move mailbox alloc later to avoid a panic

This fixes:

  Panic: file mail-user.c: line 252 (mail_user_deinit): assertion failed: ((*user)->refcount == 1)

When mail_crypt_require_encrypted_user_key is enabled and the user does
not have key or password.

3 years agomail-crypt: Remove unused mail_crypt_box_get_or_gen_public_key()
Martti Rannanjärvi [Thu, 16 Jun 2022 12:56:09 +0000 (15:56 +0300)] 
mail-crypt: Remove unused mail_crypt_box_get_or_gen_public_key()

3 years agolib: unichar - Don't return 0 from uni_utf8_get_char_n() when NUL byte is encountered.
Stephan Bosch [Tue, 26 Apr 2022 00:14:08 +0000 (02:14 +0200)] 
lib: unichar - Don't return 0 from uni_utf8_get_char_n() when NUL byte is encountered.

This caused problems for code that uses this function to read from a
size-limited buffer that can contain NUL bytes; i.e. lib-smtp. In that case,
hitting a NUL byte yields the same result as hitting the end of the buffered
data, which is unacceptable. No other code relies on the function returning 0,
so this can be changed safely to returning -1 instead.

3 years agolib-http: http-client-request - Fix handling of request aborted before submission.
Stephan Bosch [Thu, 16 Jun 2022 23:18:48 +0000 (01:18 +0200)] 
lib-http: http-client-request - Fix handling of request aborted before submission.

Modifying an aborted request was not always allowed, which could yield assertion
errors when the request was aborted before submission. This would for example
happen when a payload was assigned to a new request created from an invalid URL.

3 years agodsync: Add more debug logging
Timo Sirainen [Thu, 16 Jun 2022 07:57:15 +0000 (10:57 +0300)] 
dsync: Add more debug logging