]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
2 years agoanvil: test-connect-limit - Fix memory leak
Timo Sirainen [Tue, 14 May 2024 17:55:03 +0000 (20:55 +0300)] 
anvil: test-connect-limit - Fix memory leak

2 years agoanvil: Fix memory leak when unused alt username field was reused for another field
Timo Sirainen [Tue, 14 May 2024 17:53:54 +0000 (20:53 +0300)] 
anvil: Fix memory leak when unused alt username field was reused for another field

2 years agoimap-hibernate: Send alt usernames to anvil
Timo Sirainen [Fri, 10 May 2024 11:22:42 +0000 (14:22 +0300)] 
imap-hibernate: Send alt usernames to anvil

2 years agolib-storage: mail_user_get_alt_usernames() - Fix returning garbage
Timo Sirainen [Fri, 10 May 2024 10:53:40 +0000 (13:53 +0300)] 
lib-storage: mail_user_get_alt_usernames() - Fix returning garbage

The first call returned usable usernames in data stack. However, these
were permanently stored to struct mail_user and returned also in the
following calls. At that point the pointers contained some garbage data.

Broken by 3c97a221b9365e1300f08f6b789f8bae7ef23601

2 years agoanvil: test-connect-limit - Add randomness test
Timo Sirainen [Fri, 10 May 2024 10:52:13 +0000 (13:52 +0300)] 
anvil: test-connect-limit - Add randomness test

2 years agolib: i_stream_read() - Fix for runtime error: applying zero offset to null pointer
Marco Bettini [Tue, 7 May 2024 09:01:29 +0000 (09:01 +0000)] 
lib: i_stream_read() - Fix for runtime error: applying zero offset to null pointer

(found in clang under --enable-devel-checks)

2 years agolib-imap-client: imapc_command_abort() - Remove command from connection's arrays...
Marco Bettini [Tue, 7 May 2024 13:34:48 +0000 (13:34 +0000)] 
lib-imap-client: imapc_command_abort() - Remove command from connection's arrays before freeing it

Broken by db8a542f3d9

2 years agodoveadm: Remove unused function hardlink_replace
Vincent Kenbeek [Fri, 12 Apr 2024 08:22:48 +0000 (10:22 +0200)] 
doveadm: Remove unused function hardlink_replace

2 years agodoveadm: Remove unused function file_contents_equal
Vincent Kenbeek [Fri, 12 Apr 2024 08:20:21 +0000 (10:20 +0200)] 
doveadm: Remove unused function file_contents_equal

2 years agodoveadm: Remove all mentions of sis deduplicate
Vincent Kenbeek [Thu, 11 Apr 2024 14:04:25 +0000 (16:04 +0200)] 
doveadm: Remove all mentions of sis deduplicate

2 years agolib-index: mail-index-modseq - Remove unused in-memory datastructures
Karl Fleischmann [Wed, 24 Apr 2024 15:53:25 +0000 (17:53 +0200)] 
lib-index: mail-index-modseq - Remove unused in-memory datastructures

2 years agolib-index: mail-index-modseq - Remove unused mail index modseq-manipulation functions
Karl Fleischmann [Wed, 24 Apr 2024 15:53:04 +0000 (17:53 +0200)] 
lib-index: mail-index-modseq - Remove unused mail index modseq-manipulation functions

2 years agolib-index: mail-index-sync - Simplify modseq update function calls
Karl Fleischmann [Thu, 25 Apr 2024 15:25:24 +0000 (17:25 +0200)] 
lib-index: mail-index-sync - Simplify modseq update function calls

2 years agolib-index: mail_index_modseq_update_to_highest() - Prepare function to replace modseq...
Karl Fleischmann [Thu, 25 Apr 2024 15:19:05 +0000 (17:19 +0200)] 
lib-index: mail_index_modseq_update_to_highest() - Prepare function to replace modseq manipulation functions

With dropping the in-memory per-flag tracking of the modseqs the
manipulation functions will lose their benefit. This commit prepares a
switch to using mail_index_modseq_update_to_highest() in their stead.

2 years agolib-index: Remove noop function mail_index_modseq_expunge()
Karl Fleischmann [Wed, 24 Apr 2024 15:51:37 +0000 (17:51 +0200)] 
lib-index: Remove noop function mail_index_modseq_expunge()

2 years agolib-index: Remove noop function mail_index_modseq_sync_map_replaced()
Karl Fleischmann [Wed, 24 Apr 2024 15:48:18 +0000 (17:48 +0200)] 
lib-index: Remove noop function mail_index_modseq_sync_map_replaced()

2 years agolib-index: mail-index-modseq - Remove unused mail_index_modseq_lookup_* functions
Karl Fleischmann [Wed, 24 Apr 2024 15:46:26 +0000 (17:46 +0200)] 
lib-index: mail-index-modseq - Remove unused mail_index_modseq_lookup_* functions

2 years agolib-storage: search_arg_match_index() - Simplify mail index modseq lookup call
Karl Fleischmann [Wed, 24 Apr 2024 15:45:42 +0000 (17:45 +0200)] 
lib-storage: search_arg_match_index() - Simplify mail index modseq lookup call

2 years agolib-index: mail-index-modseq - Remove unused mail_index_map_modseq_free()
Karl Fleischmann [Wed, 24 Apr 2024 15:37:00 +0000 (17:37 +0200)] 
lib-index: mail-index-modseq - Remove unused mail_index_map_modseq_free()

2 years agolib-index: mail-index-modseq - Remove unused mail_index_map_modseq_clone()
Karl Fleischmann [Wed, 24 Apr 2024 15:36:17 +0000 (17:36 +0200)] 
lib-index: mail-index-modseq - Remove unused mail_index_map_modseq_clone()

2 years agolib-index: mail-index-map - Remove modseq map from index record map
Karl Fleischmann [Wed, 24 Apr 2024 15:35:44 +0000 (17:35 +0200)] 
lib-index: mail-index-map - Remove modseq map from index record map

2 years agolib-index: mail-index-modseq - Remove modseq map from sync context
Karl Fleischmann [Wed, 24 Apr 2024 15:20:50 +0000 (17:20 +0200)] 
lib-index: mail-index-modseq - Remove modseq map from sync context

2 years agolib-index: mail-index-modseq - Remove session-based modseq tracking flag
Karl Fleischmann [Wed, 24 Apr 2024 14:29:26 +0000 (16:29 +0200)] 
lib-index: mail-index-modseq - Remove session-based modseq tracking flag

2 years agolib-index: mail-index-modseq - Explicitly track whether modseqs have been enabled...
Karl Fleischmann [Wed, 24 Apr 2024 13:00:44 +0000 (15:00 +0200)] 
lib-index: mail-index-modseq - Explicitly track whether modseqs have been enabled in an index

2 years agolib-index: mail-index-modseq - Clarify whether modseq tracking was requested in session
Karl Fleischmann [Wed, 24 Apr 2024 12:48:15 +0000 (14:48 +0200)] 
lib-index: mail-index-modseq - Clarify whether modseq tracking was requested in session

2 years agolib-storage, global: Remove unnecessary MAILBOX_SYNC_FLAG_FULL_WRITE
Timo Sirainen [Mon, 24 Jul 2023 22:10:57 +0000 (01:10 +0300)] 
lib-storage, global: Remove unnecessary MAILBOX_SYNC_FLAG_FULL_WRITE

It was only set by IMAP CHECK and POP3 QUIT commands, which made no sense.
Also it only changed the behavior for mbox format.

2 years agofs-api: fs_iter_init_with_event() - Initialize iter->event also if iter_init is not...
Markus Valentin [Wed, 3 Apr 2024 10:53:08 +0000 (12:53 +0200)] 
fs-api: fs_iter_init_with_event() - Initialize iter->event also if iter_init is not implemented

2 years agofts: Adding setting for maximum message body size
Aki Tuomi [Tue, 9 Apr 2024 10:07:04 +0000 (13:07 +0300)] 
fts: Adding setting for maximum message body size

Solr maximum message size for indexing Set a limit fts_message_max_size
on message body size. Messages are capped at the maximum size for indexing.
This Defaults to zero which means no limit (the existing behaviour).
Example setting:

fts_message_max_size = 10M

Based on work by John Fawcett <john@voipsupport.it>

2 years agofts-solr: Limit fetches to SOLR_MAX_MULTI_ROWS
John Fawcett [Wed, 3 Jan 2024 13:48:43 +0000 (14:48 +0100)] 
fts-solr: Limit fetches to SOLR_MAX_MULTI_ROWS

Solr place upper bound on number of rows to be returned from solr for single
mailbox search When dovecot sends a search to solr it uses the rows parameter.
For multiple mailbox search the value used is SOLR_MAX_MULTI_ROWS , hardcoded to
100000. For single mailbox search the value used is uidnext. This patch
introduces an upper limit for single mailbox search using the same upper bound
as for multiple mailbox searches, SOLR_MAX_MULTI_ROWS, while leaving the
existing functionality of sending the uidnext value if it is smaller. This is
just to place a more reasonable upper bound since uidnext can get much larger
than 100000. The following url points to the Solr documentation for query
parameters that describes the rows parameter:
https://solr.apache.org/guide/solr/latest/query-guide/common-query-parameters.html

2 years agofts-tika: Allow username and password in fts_tika
John Fawcett [Wed, 3 Jan 2024 13:42:51 +0000 (14:42 +0100)] 
fts-tika: Allow username and password in fts_tika

Allows specification of username and password in the fts_tika setting for basic
auth against tika server. For example
fts_tika = https://user:password@tika_server:443/tika

2 years agoimapc, lib-imap-client: Add imapc_features=no-qresync to disable QRESYNC
Timo Sirainen [Mon, 22 Apr 2024 09:01:07 +0000 (12:01 +0300)] 
imapc, lib-imap-client: Add imapc_features=no-qresync to disable QRESYNC

This can be used to silently work around the Zimbra bug of not sending
[CLOSED] imap-resp-code.

2 years agolib-imap-client: Handle better when QRESYNC capable server doesn't send CLOSED imap...
Timo Sirainen [Mon, 22 Apr 2024 08:05:09 +0000 (11:05 +0300)] 
lib-imap-client: Handle better when QRESYNC capable server doesn't send CLOSED imap-resp-code

QRESYNC RFC specifies that the [CLOSED] imap-resp-code MUST always be sent
if server advertises CONDSTORE or QRESYNC capability. However, at least some
Zimbra versions don't do this. Workaround by reconnecting to the server
automatically.

2 years agolib-imap-client: Fix automatic reconnecting with delayed logins
Timo Sirainen [Mon, 22 Apr 2024 07:59:37 +0000 (10:59 +0300)] 
lib-imap-client: Fix automatic reconnecting with delayed logins

reconnect_command_count was always set to 1, because there was always
the command that triggered the connection. It was never reset to 0,
which caused reconnects to never happen.

2 years agofs-metawrap, fs-compress, fs-crypt: fs_set_metadata() - Pass metadata to both parent...
Timo Sirainen [Tue, 9 Apr 2024 13:00:32 +0000 (16:00 +0300)] 
fs-metawrap, fs-compress, fs-crypt: fs_set_metadata() - Pass metadata to both parent files

These fses have a "super_read" file, which is used for some purposes.
The metadata should be also passed to them, so they get the same useful
internal metadata that can be used to optimize reads.

2 years agolib-sql: cassandra - Add log_retries setting to enable logging retry policy
Timo Sirainen [Thu, 11 Apr 2024 09:07:46 +0000 (12:07 +0300)] 
lib-sql: cassandra - Add log_retries setting to enable logging retry policy

2 years agolib-sql: cassandra - Differentiate between requested and received consistency in...
Timo Sirainen [Thu, 11 Apr 2024 08:41:19 +0000 (11:41 +0300)] 
lib-sql: cassandra - Differentiate between requested and received consistency in log messages

They should normally be the same.

2 years agolib-sql: cassandra - Add "consistency" and "error_consistency" fields to sql_query_fi...
Timo Sirainen [Thu, 11 Apr 2024 08:37:13 +0000 (11:37 +0300)] 
lib-sql: cassandra - Add "consistency" and "error_consistency" fields to sql_query_finished event

2 years agolib-sql: cassandra - If query isn't sent, don't include confusing details in error...
Timo Sirainen [Thu, 11 Apr 2024 08:29:16 +0000 (11:29 +0300)] 
lib-sql: cassandra - If query isn't sent, don't include confusing details in error message

When query isn't sent, there is no time for how long the query took and
especially the consistency is not set.

2 years agodoveadm: doveadm_mail_next_user() - Restore privileges before returning
Marco Bettini [Tue, 9 Apr 2024 08:52:06 +0000 (08:52 +0000)] 
doveadm: doveadm_mail_next_user() - Restore privileges before returning

2 years agolib-storage: mail_storage_service_restore_privileges() - Allow also for restore to...
Marco Bettini [Tue, 9 Apr 2024 08:51:25 +0000 (08:51 +0000)] 
lib-storage: mail_storage_service_restore_privileges() - Allow also for restore to non root euid(s)

2 years agolmtp: lmtp_local_data() - Split off mail_storage_service_restore_privileges()
Marco Bettini [Tue, 9 Apr 2024 08:49:33 +0000 (08:49 +0000)] 
lmtp: lmtp_local_data() - Split off mail_storage_service_restore_privileges()

2 years agolib-storage: Fix leaking internal error messages to clients on failed list index...
Timo Sirainen [Mon, 8 Apr 2024 04:06:29 +0000 (07:06 +0300)] 
lib-storage: Fix leaking internal error messages to clients on failed list index rebuild

2 years agofs-metawrap, fs-compress, fs-crypt: fs_read_stream() - return parent stream error...
Timo Sirainen [Tue, 9 Apr 2024 11:49:59 +0000 (14:49 +0300)] 
fs-metawrap, fs-compress, fs-crypt: fs_read_stream() - return parent stream error immediately

Earlier behavior was to delay until i_stream_read() was called, which caused
problems with some error handling.

2 years agolib-sql: Fix dependencies for building sql-drivers-register.c
Timo Sirainen [Tue, 9 Apr 2024 10:58:03 +0000 (13:58 +0300)] 
lib-sql: Fix dependencies for building sql-drivers-register.c

2 years agolib: istream-multiplex - Fix potential hang when channel buffer gets full
Timo Sirainen [Mon, 8 Apr 2024 19:17:44 +0000 (22:17 +0300)] 
lib: istream-multiplex - Fix potential hang when channel buffer gets full

If some bytes were read into the wanted channel, but more input was
attempted to be read into another channel's buffer that was already full,
the read should have returned what bytes were already successfully read.
Instead, 0 (more input needed) was returned.

2 years agoauth: Fix error message if user doesn't have permission to list users
Timo Sirainen [Wed, 3 Apr 2024 19:27:51 +0000 (22:27 +0300)] 
auth: Fix error message if user doesn't have permission to list users

Broken by 812af4bc58424b7c14ed595810a1dd4dad761ab5

2 years agomaster: Redirect stdout to /dev/null, unless logging is configured to /dev/stdout
Timo Sirainen [Wed, 27 Mar 2024 10:55:09 +0000 (12:55 +0200)] 
master: Redirect stdout to /dev/null, unless logging is configured to /dev/stdout

Previous behavior was to redirect to /dev/null, unless -F parameter was
used. This made its behavior rather inconsistent, because -F is commonly
used with e.g. systemd.

2 years agolib: Add i_failure_have_stdout_logs()
Timo Sirainen [Wed, 27 Mar 2024 10:54:40 +0000 (12:54 +0200)] 
lib: Add i_failure_have_stdout_logs()

2 years agolib: Explicitly support /dev/stdout logging to stdout
Timo Sirainen [Wed, 27 Mar 2024 10:52:17 +0000 (12:52 +0200)] 
lib: Explicitly support /dev/stdout logging to stdout

This way it goes to stdout file descriptor instead of actually opening
the /dev/stdout device.

2 years agopop3: Free event if mail storage initialization fails
Aki Tuomi [Thu, 28 Mar 2024 10:58:17 +0000 (12:58 +0200)] 
pop3: Free event if mail storage initialization fails

Broken in de9c5f8b651b08bf08a6ac75a7fdceec5976b0ff

2 years agolib-mail: istream-dot - Implement ISTREAM_DOT_STRICT_EOT
Marco Bettini [Fri, 1 Mar 2024 11:45:00 +0000 (11:45 +0000)] 
lib-mail: istream-dot - Implement ISTREAM_DOT_STRICT_EOT

2 years agolib-mail: i_stream_create_dot() - Replace boolean send_last_lf with enumerated flags
Marco Bettini [Fri, 1 Mar 2024 11:11:27 +0000 (11:11 +0000)] 
lib-mail: i_stream_create_dot() - Replace boolean send_last_lf with enumerated flags

2 years agolib-mail: istream-dot - Change state into type enum dot_state
Marco Bettini [Thu, 29 Feb 2024 11:25:55 +0000 (11:25 +0000)] 
lib-mail: istream-dot - Change state into type enum dot_state

2 years agolib-lua: dlua-dovecot-http - Do synchronous payload only if asked
Aki Tuomi [Thu, 21 Mar 2024 07:42:43 +0000 (09:42 +0200)] 
lib-lua: dlua-dovecot-http - Do synchronous payload only if asked

2 years agoconfig: Fix potential crash parsing configuration with obsolete settings
Timo Sirainen [Wed, 20 Mar 2024 10:03:43 +0000 (12:03 +0200)] 
config: Fix potential crash parsing configuration with obsolete settings

2 years agolib-storage: mail_user_var_expand_table() - Fix excessive memory usage
Timo Sirainen [Mon, 18 Mar 2024 11:52:37 +0000 (13:52 +0200)] 
lib-storage: mail_user_var_expand_table() - Fix excessive memory usage

It was supposed to return a cached table, but instead it now allocated a new
one every time from mail_user's pool. This kept growing memory usage after
every mail_user_var_expand_table() call.

Broken by 10eaf04197cfe7f6ab1fd4ab57c9f38e75b2889d

2 years agologin-common: Add client_vfuncs.iostream_change_pre/post()
Timo Sirainen [Wed, 13 Mar 2024 11:08:18 +0000 (13:08 +0200)] 
login-common: Add client_vfuncs.iostream_change_pre/post()

2 years agodoveadm: Add doveadm_mail_server_handle_full()
Timo Sirainen [Tue, 12 Mar 2024 13:43:53 +0000 (15:43 +0200)] 
doveadm: Add doveadm_mail_server_handle_full()

This allows changing the proxied mail command's command or parameters.

2 years agopush-notification: fix typo 'module' to '-module'
orbea [Wed, 6 Mar 2024 02:15:58 +0000 (18:15 -0800)] 
push-notification: fix typo 'module' to '-module'

There is a typo in the Makefile.am where it has 'module` instead of '-module' which causes a build failure with slibtool.

  ld: cannot find module: No such file or directory

With GNU libtool the typo is silently ignored.

2 years ago*-login: Fix error code for "Maximum number of connections from user+IP exceeded"
Timo Sirainen [Mon, 11 Mar 2024 12:30:00 +0000 (14:30 +0200)] 
*-login: Fix error code for "Maximum number of connections from user+IP exceeded"

IMAP now reports it as [LIMIT] rather than [UNAVAILABLE].

This change also causes proxy_session_finished event's error_code to
change: [UNAVAILABLE] maps to proxy_dest_auth_temp_failed, while [LIMIT]
maps to proxy_dest_auth_failed.

2 years agologin-common: proxy_session_finished event - Don't add error_code for successful...
Timo Sirainen [Mon, 11 Mar 2024 12:19:57 +0000 (14:19 +0200)] 
login-common: proxy_session_finished event - Don't add error_code for successful sessions

If the proxy's login to backend succeeded, it was already successful
regardless of what happens afterwards.

2 years agoauth: Use connection API with auth_master_connection
Aki Tuomi [Wed, 14 Feb 2024 11:32:16 +0000 (13:32 +0200)] 
auth: Use connection API with auth_master_connection

2 years agoauth: Splice off handshaking to auth_master_handshake_args()
Aki Tuomi [Wed, 14 Feb 2024 12:30:23 +0000 (14:30 +0200)] 
auth: Splice off handshaking to auth_master_handshake_args()

2 years agoauth: Change return type to int for auth master input handling
Aki Tuomi [Wed, 14 Feb 2024 11:09:06 +0000 (13:09 +0200)] 
auth: Change return type to int for auth master input handling

2 years agoauth: Refactor auth master input handling functions
Aki Tuomi [Wed, 14 Feb 2024 10:58:32 +0000 (12:58 +0200)] 
auth: Refactor auth master input handling functions

2 years agoauth: Rename list to args in auth-master-connection
Aki Tuomi [Wed, 14 Feb 2024 11:03:37 +0000 (13:03 +0200)] 
auth: Rename list to args in auth-master-connection

2 years agoauth: Constify iovec in auth_master_request_callback()
Aki Tuomi [Wed, 14 Feb 2024 10:50:20 +0000 (12:50 +0200)] 
auth: Constify iovec in auth_master_request_callback()

2 years agoauth: Use connection structures with auth_master_connection
Aki Tuomi [Wed, 14 Feb 2024 10:48:43 +0000 (12:48 +0200)] 
auth: Use connection structures with auth_master_connection

Prepares for connection usage

2 years agoauth: Reformat src/auth/auth-master-connection.c
Aki Tuomi [Wed, 14 Feb 2024 10:37:20 +0000 (12:37 +0200)] 
auth: Reformat src/auth/auth-master-connection.c

clang-format and touchups.

2 years agoauth: Add auth-master-connection test
Aki Tuomi [Fri, 16 Feb 2024 12:36:00 +0000 (14:36 +0200)] 
auth: Add auth-master-connection test

2 years agoauth: Add auth-client-connection test
Aki Tuomi [Fri, 16 Feb 2024 12:35:45 +0000 (14:35 +0200)] 
auth: Add auth-client-connection test

2 years agolib-auth-client: Add AUTH_MASTER_FLAG_NO_INNER_IOLOOP for testing
Aki Tuomi [Fri, 16 Feb 2024 12:33:48 +0000 (14:33 +0200)] 
lib-auth-client: Add AUTH_MASTER_FLAG_NO_INNER_IOLOOP for testing

2 years agoauth: test-mech - Remove unneeded code
Aki Tuomi [Tue, 27 Feb 2024 06:45:52 +0000 (08:45 +0200)] 
auth: test-mech - Remove unneeded code

2 years agoauth: Extract test_auth_init() and test_auth_deinit()
Aki Tuomi [Fri, 16 Feb 2024 11:44:12 +0000 (13:44 +0200)] 
auth: Extract test_auth_init() and test_auth_deinit()

2 years agolib: connection - Record connect_finished for server connections too
Aki Tuomi [Tue, 27 Feb 2024 08:50:45 +0000 (10:50 +0200)] 
lib: connection - Record connect_finished for server connections too

2 years agolib: connection - Remove unused boolean handshake_received
Aki Tuomi [Wed, 28 Feb 2024 11:50:31 +0000 (13:50 +0200)] 
lib: connection - Remove unused boolean handshake_received

2 years agoglobal: Use connection_set_handshake_ready() and connection_handshake_received()
Aki Tuomi [Wed, 28 Feb 2024 11:35:51 +0000 (13:35 +0200)] 
global: Use connection_set_handshake_ready() and connection_handshake_received()

2 years agolib: connection - Add connection_handshake_received()
Aki Tuomi [Wed, 28 Feb 2024 11:30:35 +0000 (13:30 +0200)] 
lib: connection - Add connection_handshake_received()

2 years agolib: connection - Add connection_set_handshake_ready()
Aki Tuomi [Wed, 28 Feb 2024 11:27:39 +0000 (13:27 +0200)] 
lib: connection - Add connection_set_handshake_ready()

2 years agolib: connection - Record handshake finished time
Aki Tuomi [Tue, 27 Feb 2024 07:26:07 +0000 (09:26 +0200)] 
lib: connection - Record handshake finished time

2 years agolib: connection - Indicate if peer credentials have been gotten
Aki Tuomi [Wed, 28 Feb 2024 11:15:50 +0000 (13:15 +0200)] 
lib: connection - Indicate if peer credentials have been gotten

2 years agolib: connection - Record remote_gid too
Aki Tuomi [Wed, 14 Feb 2024 12:57:15 +0000 (14:57 +0200)] 
lib: connection - Record remote_gid too

2 years agolib: connection - Clear timestamps on init
Aki Tuomi [Wed, 28 Feb 2024 11:49:05 +0000 (13:49 +0200)] 
lib: connection - Clear timestamps on init

2 years agolib: connection - Document connection members
Aki Tuomi [Wed, 28 Feb 2024 11:46:38 +0000 (13:46 +0200)] 
lib: connection - Document connection members

2 years agolib-imap-urlauth: imap-urlauth-fetch - Fix comparing out of scope pointer
Timo Sirainen [Tue, 27 Feb 2024 18:51:27 +0000 (20:51 +0200)] 
lib-imap-urlauth: imap-urlauth-fetch - Fix comparing out of scope pointer

Practically this wouldn't matter, but Coverity still complains.

Broken by bf8165cea2450c854da39710715983e5ed44b480

2 years agolib-http: http_client_init_shared() - Remove unnecessary event==NULL check
Timo Sirainen [Tue, 27 Feb 2024 13:17:01 +0000 (15:17 +0200)] 
lib-http: http_client_init_shared() - Remove unnecessary event==NULL check

The event is always created by http_client_context_create().

2 years agolib-imap-urlauth: imap-urlauth-fetch - Fix potential NULL dereference
Stephan Bosch [Sun, 25 Feb 2024 01:09:40 +0000 (02:09 +0100)] 
lib-imap-urlauth: imap-urlauth-fetch - Fix potential NULL dereference

Found by Coverity.

2 years agolib-imap-urlauth: Reformat imap-urlauth-fetch.c
Stephan Bosch [Tue, 27 Feb 2024 12:42:10 +0000 (13:42 +0100)] 
lib-imap-urlauth: Reformat imap-urlauth-fetch.c

2 years agolib: test-event-filter - Add missing event_filter_parse() return value checks
Timo Sirainen [Sun, 25 Feb 2024 19:38:28 +0000 (21:38 +0200)] 
lib: test-event-filter - Add missing event_filter_parse() return value checks

2 years agolib-master: Don't log "Killed with signal" warning if kicked via USER-KICK-SIGNAL
Timo Sirainen [Wed, 21 Feb 2024 21:09:41 +0000 (23:09 +0200)] 
lib-master: Don't log "Killed with signal" warning if kicked via USER-KICK-SIGNAL

2 years agoimap, pop3, submission: Log MASTER_SERVICE_USER_KICKED_MSG for kicks via USER-KICK...
Timo Sirainen [Wed, 21 Feb 2024 21:07:39 +0000 (23:07 +0200)] 
imap, pop3, submission: Log MASTER_SERVICE_USER_KICKED_MSG for kicks via USER-KICK-SIGNAL

2 years agolib-master: Add master_service_is_user_kicked()
Timo Sirainen [Wed, 21 Feb 2024 21:04:00 +0000 (23:04 +0200)] 
lib-master: Add master_service_is_user_kicked()

2 years agolib-master, global: Add and use MASTER_SERVICE_USER_KICKED_MSG
Timo Sirainen [Wed, 21 Feb 2024 20:57:06 +0000 (22:57 +0200)] 
lib-master, global: Add and use MASTER_SERVICE_USER_KICKED_MSG

Use it only for log messages, not for user-visible messages.

2 years agosubmission: client_destroy() - Decouple reply reason from log reason
Timo Sirainen [Wed, 21 Feb 2024 21:23:26 +0000 (23:23 +0200)] 
submission: client_destroy() - Decouple reply reason from log reason

2 years agolib-smtp: Add smtp_server_connection_terminate_full()
Timo Sirainen [Wed, 21 Feb 2024 21:21:11 +0000 (23:21 +0200)] 
lib-smtp: Add smtp_server_connection_terminate_full()

2 years agolmtp, login-common: Use MASTER_SERVICE_SHUTTING_DOWN_MSG
Timo Sirainen [Wed, 21 Feb 2024 21:20:08 +0000 (23:20 +0200)] 
lmtp, login-common: Use MASTER_SERVICE_SHUTTING_DOWN_MSG

For consistency.

2 years agolib: Replace LFs in log prefixes with spaces
Timo Sirainen [Sat, 24 Feb 2024 22:32:54 +0000 (00:32 +0200)] 
lib: Replace LFs in log prefixes with spaces

2 years agolib: Fix syslog writing if log prefix contains LF
Timo Sirainen [Sat, 24 Feb 2024 22:49:30 +0000 (00:49 +0200)] 
lib: Fix syslog writing if log prefix contains LF

2 years agolib: Remove unused failure_handler_vfuncs.post_handler()
Timo Sirainen [Sat, 24 Feb 2024 22:20:08 +0000 (00:20 +0200)] 
lib: Remove unused failure_handler_vfuncs.post_handler()

2 years agolib: Fix CORE_ERROR to work with all log types
Timo Sirainen [Sat, 24 Feb 2024 22:17:51 +0000 (00:17 +0200)] 
lib: Fix CORE_ERROR to work with all log types

It only worked when logging to a file, which practically made it nonworking.