]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
2 years agoimap-urlauth: imap-urlauth-client - Connect worker client last in client_create().
Stephan Bosch [Tue, 14 Feb 2023 01:26:42 +0000 (02:26 +0100)] 
imap-urlauth: imap-urlauth-client - Connect worker client last in client_create().

In later commit the worker client will depend on full unitialization of main
client struct.

2 years agoimap-urlauth: imap-urlauth-worker-client - Use the connection.h API.
Stephan Bosch [Wed, 28 Dec 2022 17:46:40 +0000 (18:46 +0100)] 
imap-urlauth: imap-urlauth-worker-client - Use the connection.h API.

2 years agoimap-urlauth: imap-urlauth-worker-settings - Use socket name definition for default.
Stephan Bosch [Wed, 28 Dec 2022 15:01:11 +0000 (16:01 +0100)] 
imap-urlauth: imap-urlauth-worker-settings - Use socket name definition for default.

2 years agoimap-urlauth: imap-urlauth-worker-client - Use version definitions to compose handshake.
Stephan Bosch [Tue, 14 Feb 2023 18:06:35 +0000 (19:06 +0100)] 
imap-urlauth: imap-urlauth-worker-client - Use version definitions to compose handshake.

2 years agoimap-urlauth: imap-urlauth-client - Move protocol version definitions to imap-urlauth...
Stephan Bosch [Tue, 14 Feb 2023 18:22:44 +0000 (19:22 +0100)] 
imap-urlauth: imap-urlauth-client - Move protocol version definitions to imap-urlauth-common.h.

2 years agoimap-urlauth: imap-urlauth-worker - Move protocol version definitions to imap-urlauth...
Stephan Bosch [Tue, 14 Feb 2023 01:41:38 +0000 (02:41 +0100)] 
imap-urlauth: imap-urlauth-worker - Move protocol version definitions to imap-urlauth-worker-common.h.

2 years agoimap-urlauth: imap-urlauth-worker-client - Create sub-event for the worker.
Stephan Bosch [Fri, 2 Dec 2022 00:19:04 +0000 (01:19 +0100)] 
imap-urlauth: imap-urlauth-worker-client - Create sub-event for the worker.

2 years agoimap-urlauth: imap-urlauth-worker-client - Make the worker a separate struct.
Stephan Bosch [Wed, 3 Aug 2022 01:32:36 +0000 (03:32 +0200)] 
imap-urlauth: imap-urlauth-worker-client - Make the worker a separate struct.

2 years agoimap-urlauth: imap-urlauth-worker-client - Rename functions to have the proper prefix.
Stephan Bosch [Thu, 1 Dec 2022 22:26:48 +0000 (23:26 +0100)] 
imap-urlauth: imap-urlauth-worker-client - Rename functions to have the proper prefix.

2 years agoimap-urlauth: imap-urlauth-worker-client - Rename most client variables to wclient.
Stephan Bosch [Fri, 4 Nov 2022 02:12:14 +0000 (03:12 +0100)] 
imap-urlauth: imap-urlauth-worker-client - Rename most client variables to wclient.

2 years agoimap-urlauth: Make imap-urlauth-worker-client compile as a separate module.
Stephan Bosch [Fri, 4 Nov 2022 02:01:18 +0000 (03:01 +0100)] 
imap-urlauth: Make imap-urlauth-worker-client compile as a separate module.

2 years agoimap-urlauth: Move worker client to separate source file.
Stephan Bosch [Thu, 1 Dec 2022 22:11:55 +0000 (23:11 +0100)] 
imap-urlauth: Move worker client to separate source file.

2 years agoimap-urlauth: imap-urlauth-client - Rename to_idle to to_destroy.
Stephan Bosch [Fri, 4 Nov 2022 02:30:25 +0000 (03:30 +0100)] 
imap-urlauth: imap-urlauth-client - Rename to_idle to to_destroy.

Makes more sense.

2 years agoimap-urlauth: imap-urlauth-login - Send server-to-client VERSION line.
Stephan Bosch [Wed, 22 Feb 2023 02:26:27 +0000 (03:26 +0100)] 
imap-urlauth: imap-urlauth-login - Send server-to-client VERSION line.

2 years agolib-imap-urlauth: imap-urlauth-connection - Use the connection.h API.
Stephan Bosch [Sun, 31 Jul 2022 22:08:40 +0000 (00:08 +0200)] 
lib-imap-urlauth: imap-urlauth-connection - Use the connection.h API.

2 years agolib-imap-urlauth: imap-urlauth-connection - Move sending of authentication command...
Stephan Bosch [Wed, 22 Feb 2023 03:16:06 +0000 (04:16 +0100)] 
lib-imap-urlauth: imap-urlauth-connection - Move sending of authentication command to separate function.

2 years agolib: ostream-file - Improve write errors: mention the failing syscall.
Stephan Bosch [Thu, 23 Feb 2023 00:31:31 +0000 (01:31 +0100)] 
lib: ostream-file - Improve write errors: mention the failing syscall.

2 years agoimap-urlauth: Reformat imap-urlauth-client.h.
Stephan Bosch [Thu, 1 Dec 2022 21:59:01 +0000 (22:59 +0100)] 
imap-urlauth: Reformat imap-urlauth-client.h.

2 years agoimap-urlauth: Reformat imap-urlauth-client.c.
Stephan Bosch [Thu, 1 Dec 2022 21:57:19 +0000 (22:57 +0100)] 
imap-urlauth: Reformat imap-urlauth-client.c.

2 years agolib-imap-urlauth: Reformat imap-urlauth-connection.c.
Stephan Bosch [Sun, 31 Jul 2022 22:00:24 +0000 (00:00 +0200)] 
lib-imap-urlauth: Reformat imap-urlauth-connection.c.

2 years agolib-imap-urlauth: Reformat imap-urlauth.h.
Stephan Bosch [Sun, 31 Jul 2022 21:53:13 +0000 (23:53 +0200)] 
lib-imap-urlauth: Reformat imap-urlauth.h.

2 years agolib-imap-urlauth: Reformat imap-urlauth.c.
Stephan Bosch [Sun, 31 Jul 2022 21:52:31 +0000 (23:52 +0200)] 
lib-imap-urlauth: Reformat imap-urlauth.c.

2 years agolib-http: http-server-connection - Fix segfault occurring when output is resumed...
Stephan Bosch [Mon, 21 Mar 2022 11:22:38 +0000 (12:22 +0100)] 
lib-http: http-server-connection - Fix segfault occurring when output is resumed on closed connection.

2 years agologin-common: client_get_extra_disconnect_reason() - Add shutting_down and process_fu...
Markus Valentin [Thu, 9 Mar 2023 09:58:42 +0000 (10:58 +0100)] 
login-common: client_get_extra_disconnect_reason() - Add shutting_down and process_full reasons

2 years agologin-common: Add shutting_down and resource_constraint fields to client struct
Markus Valentin [Thu, 9 Mar 2023 09:57:14 +0000 (10:57 +0100)] 
login-common: Add shutting_down and resource_constraint fields to client struct

2 years agologin-common: Remove no_extra_disconnect_reason
Markus Valentin [Thu, 16 Feb 2023 15:33:17 +0000 (16:33 +0100)] 
login-common: Remove no_extra_disconnect_reason

This got obsolete by previous changes and prevented properly set reason
for the login_aborted event on some internal failures.

2 years agologin-common: client_disconnect() - Handle NULL reason separately
Markus Valentin [Thu, 2 Feb 2023 09:46:48 +0000 (10:46 +0100)] 
login-common: client_disconnect() - Handle NULL reason separately

2 years agologin-common: login_aborted_event() - Add more event fields
Markus Valentin [Tue, 24 Jan 2023 08:49:46 +0000 (09:49 +0100)] 
login-common: login_aborted_event() - Add more event fields

2 years agologin-common: Change struct client's auth_first_started and auth_finished to timeval
Markus Valentin [Tue, 24 Jan 2023 08:48:46 +0000 (09:48 +0100)] 
login-common: Change struct client's auth_first_started and auth_finished to timeval

2 years agologin-common: client_disconnect() - Split off login_aborted_event()
Markus Valentin [Tue, 24 Jan 2023 07:34:01 +0000 (08:34 +0100)] 
login-common: client_disconnect() - Split off login_aborted_event()

Adds the login_aborted event.

2 years agologin-common: client_disconnect() - Split off client_disconnected_log()
Markus Valentin [Tue, 24 Jan 2023 11:20:56 +0000 (12:20 +0100)] 
login-common: client_disconnect() - Split off client_disconnected_log()

2 years agologin-common: client_get_extra_disconnect_reason() - Remove auth_waiting_server and...
Markus Valentin [Thu, 9 Mar 2023 09:58:13 +0000 (10:58 +0100)] 
login-common: client_get_extra_disconnect_reason() - Remove auth_waiting_server and auth_waiting_server_finish

These reasons are not supposed to happen only if a process gets actively
killed. For the shutting_down reason will be added.

2 years agologin-common: client_get_extra_disconnect_reason() - Increase auth_aborted_by_client...
Markus Valentin [Tue, 7 Mar 2023 14:10:32 +0000 (15:10 +0100)] 
login-common: client_get_extra_disconnect_reason() - Increase auth_aborted_by_client reason priority

2 years agologin-common: Disconnect reason - Add event reasons
Timo Sirainen [Thu, 22 Dec 2022 12:49:12 +0000 (14:49 +0200)] 
login-common: Disconnect reason - Add event reasons

2 years agologin-common: Disconnect reason - clarify client sending untrusted cert
Timo Sirainen [Thu, 22 Dec 2022 12:30:30 +0000 (07:30 -0500)] 
login-common: Disconnect reason - clarify client sending untrusted cert

Changed the wording from "invalid cert" to "untrusted cert", which is
is a bit clearer in what the rejection reason usually is.

2 years agologin-common: Disconnect reason - Return auth counts and secs for most replies
Timo Sirainen [Thu, 22 Dec 2022 12:18:03 +0000 (14:18 +0200)] 
login-common: Disconnect reason - Return auth counts and secs for most replies

Earlier some reasons weren't returned when there were more than one attempt,
because it would hide if there were a lot of auth attempts. Now that the
auth attempt count is always returned, these less important reasons can also
be returned.

2 years agologin-common: Use a reason string array for client_auth_fail_code
Timo Sirainen [Thu, 22 Dec 2022 12:12:34 +0000 (14:12 +0200)] 
login-common: Use a reason string array for client_auth_fail_code

2 years agologin-common: Disconnect reason - Add missing CLIENT_AUTH_FAIL_CODE_ANONYMOUS_DENIED
Timo Sirainen [Thu, 22 Dec 2022 12:09:28 +0000 (14:09 +0200)] 
login-common: Disconnect reason - Add missing CLIENT_AUTH_FAIL_CODE_ANONYMOUS_DENIED

2 years agologin-common: Add comments
Timo Sirainen [Thu, 22 Dec 2022 12:04:11 +0000 (14:04 +0200)] 
login-common: Add comments

2 years agologin-common: Disconnect reason - Move auth_process_comm_fail check earlier
Timo Sirainen [Thu, 22 Dec 2022 11:55:05 +0000 (13:55 +0200)] 
login-common: Disconnect reason - Move auth_process_comm_fail check earlier

Likely doesn't matter, but this is more important reason to be logged than
the ones coming later.

2 years agologin-common: Disconnect reason - Clarify "auth aborted by client" handling
Timo Sirainen [Thu, 22 Dec 2022 11:42:02 +0000 (13:42 +0200)] 
login-common: Disconnect reason - Clarify "auth aborted by client" handling

Rename client.auth_try_aborted to auth_aborted_by_client and clarify the
disconnect reason message.

2 years agologin-common: Disconnect reason - Check for missing SSL certs before auth attempts
Timo Sirainen [Thu, 22 Dec 2022 10:12:11 +0000 (12:12 +0200)] 
login-common: Disconnect reason - Check for missing SSL certs before auth attempts

2 years agologin-common: client_get_extra_disconnect_reason() - Remove parenthesis from returned...
Timo Sirainen [Thu, 22 Dec 2022 10:07:14 +0000 (12:07 +0200)] 
login-common: client_get_extra_disconnect_reason() - Remove parenthesis from returned string

The caller now adds the parenthesis in one place.

2 years agologin-common: Rename client.auth_waiting to auth_client_continue_pending
Timo Sirainen [Thu, 22 Dec 2022 10:16:12 +0000 (12:16 +0200)] 
login-common: Rename client.auth_waiting to auth_client_continue_pending

2 years agologin-common: Reset auth_try_aborted if a new auth is started
Timo Sirainen [Thu, 22 Dec 2022 11:43:55 +0000 (13:43 +0200)] 
login-common: Reset auth_try_aborted if a new auth is started

This only affects the disconnection log message. It is likely better to
forget about this state when a new auth attempt begins, since if the new
auth fails also it is likely something completely different.

2 years agostats: openmetrics - Create metrics for all specified fields
Aki Tuomi [Thu, 26 Jan 2023 06:15:29 +0000 (08:15 +0200)] 
stats: openmetrics - Create metrics for all specified fields

2 years agolib: fd-util - Try to read link from procfs to see which file leaked
Aki Tuomi [Mon, 13 Mar 2023 12:07:00 +0000 (14:07 +0200)] 
lib: fd-util - Try to read link from procfs to see which file leaked

Makes it easier to determine why the leak occured.

2 years agolib-storage: Check return status from mailbox_create() in tests
Marco Bettini [Mon, 20 Mar 2023 08:43:05 +0000 (08:43 +0000)] 
lib-storage: Check return status from mailbox_create() in tests

This addresses Coverity complaints.

2 years agomaster: Don't pass config file in two fds to child processes
Timo Sirainen [Wed, 15 Mar 2023 10:14:54 +0000 (12:14 +0200)] 
master: Don't pass config file in two fds to child processes

Broken by 1955e81a2ffe023f937d87f2b555bcec0fb4aee9

2 years agolib-storage: Update "user" field in mail_storage_service_user.event after userdb...
Timo Sirainen [Fri, 10 Mar 2023 23:36:25 +0000 (01:36 +0200)] 
lib-storage: Update "user" field in mail_storage_service_user.event after userdb lookup

The userdb lookup may change the username.

2 years agostats: Add support for discrete modifiers
Aki Tuomi [Tue, 31 Jan 2023 11:43:50 +0000 (13:43 +0200)] 
stats: Add support for discrete modifiers

2 years agostats: Populate group_by field earlier in settings check
Aki Tuomi [Tue, 31 Jan 2023 11:51:36 +0000 (13:51 +0200)] 
stats: Populate group_by field earlier in settings check

This is needed in next commit to avoid crash.

2 years agopop3: Add pop3_command_finished event
Aki Tuomi [Wed, 1 Feb 2023 08:26:29 +0000 (10:26 +0200)] 
pop3: Add pop3_command_finished event

2 years agopop3: Add pop3 command context
Aki Tuomi [Tue, 31 Jan 2023 09:03:50 +0000 (11:03 +0200)] 
pop3: Add pop3 command context

2 years agolmtp: Add smtp server statistics to user event
Aki Tuomi [Wed, 25 Jan 2023 09:12:32 +0000 (11:12 +0200)] 
lmtp: Add smtp server statistics to user event

2 years agolib-smtp: Include net_in_bytes, net_out_bytes in event
Aki Tuomi [Tue, 24 Jan 2023 11:40:36 +0000 (13:40 +0200)] 
lib-smtp: Include net_in_bytes, net_out_bytes in event

Ensure they end up in connection finished event

2 years agolib-smtp: Move struct smtp_server_stats
Aki Tuomi [Tue, 24 Jan 2023 11:31:34 +0000 (13:31 +0200)] 
lib-smtp: Move struct smtp_server_stats

This is needed for next commit

2 years agolmtp: Remove useless cast
Aki Tuomi [Tue, 24 Jan 2023 11:26:12 +0000 (13:26 +0200)] 
lmtp: Remove useless cast

2 years agosubmission: Include net_in_bytes, net_out_bytes in event
Aki Tuomi [Tue, 24 Jan 2023 10:50:18 +0000 (12:50 +0200)] 
submission: Include net_in_bytes, net_out_bytes in event

These fields are mainly intended for the mail_user_session_finished event.

2 years agopop3: Include net_in_bytes, net_out_bytes in event
Aki Tuomi [Tue, 24 Jan 2023 10:48:03 +0000 (12:48 +0200)] 
pop3: Include net_in_bytes, net_out_bytes in event

These fields are mainly intended for the mail_user_session_finished event.

2 years agoimap: Include net_in_bytes, net_out_bytes in event
Aki Tuomi [Tue, 24 Jan 2023 10:42:39 +0000 (12:42 +0200)] 
imap: Include net_in_bytes, net_out_bytes in event

These fields are mainly intended for the mail_user_session_finished event.

2 years agopop3: Use i_stream_get_absolute_offset() in stats
Aki Tuomi [Wed, 25 Jan 2023 09:14:12 +0000 (11:14 +0200)] 
pop3: Use i_stream_get_absolute_offset() in stats

Consistent with other protocols

2 years agoimap: Rename bytes_in,_out to net_in_,out_bytes in cmd stats
Aki Tuomi [Tue, 24 Jan 2023 11:23:21 +0000 (13:23 +0200)] 
imap: Rename bytes_in,_out to net_in_,out_bytes in cmd stats

2 years agologin-common: Rename bytes_in,_out to net_in_,out_bytes
Aki Tuomi [Wed, 25 Jan 2023 19:20:52 +0000 (21:20 +0200)] 
login-common: Rename bytes_in,_out to net_in_,out_bytes

2 years agolib-http: Rename bytes_in,_out to net_in_,out_bytes
Aki Tuomi [Wed, 25 Jan 2023 19:20:24 +0000 (21:20 +0200)] 
lib-http: Rename bytes_in,_out to net_in_,out_bytes

2 years agolib: connection - Rename bytes_in,_out to net_in_,out_bytes
Aki Tuomi [Wed, 25 Jan 2023 19:18:14 +0000 (21:18 +0200)] 
lib: connection - Rename bytes_in,_out to net_in_,out_bytes

2 years agolib: connection - Expose connection_update_counters()
Aki Tuomi [Thu, 9 Feb 2023 07:47:52 +0000 (09:47 +0200)] 
lib: connection - Expose connection_update_counters()

2 years agodbox: dbox_cleanup_temp_files() - Fuzz scan interval adding 0..+30% based on username...
Marco Bettini [Tue, 28 Feb 2023 12:05:44 +0000 (12:05 +0000)] 
dbox: dbox_cleanup_temp_files() - Fuzz scan interval adding 0..+30% based on username hash

2 years agodbox: dbox_cleanup_temp_files() - Reformat code
Marco Bettini [Tue, 28 Feb 2023 11:45:43 +0000 (11:45 +0000)] 
dbox: dbox_cleanup_temp_files() - Reformat code

2 years agodbox: dbox_cleanup_temp_files() - Remove unnecessary else/else if after returns
Marco Bettini [Tue, 28 Feb 2023 11:44:48 +0000 (11:44 +0000)] 
dbox: dbox_cleanup_temp_files() - Remove unnecessary else/else if after returns

2 years agodbox: dbox_mailbox_open() - Drop unused ctime
Marco Bettini [Tue, 28 Feb 2023 11:30:22 +0000 (11:30 +0000)] 
dbox: dbox_mailbox_open() - Drop unused ctime

2 years agodbox: dbox_mailbox_open() - Move dbox_cleanup_temp_files() to dbox_mailbox_close()
Marco Bettini [Tue, 28 Feb 2023 11:21:10 +0000 (11:21 +0000)] 
dbox: dbox_mailbox_open() - Move dbox_cleanup_temp_files() to dbox_mailbox_close()

2 years agodbox: dbox_mailbox_open() - Infer last_temp_file_scan from dir's atime if 0
Marco Bettini [Tue, 28 Feb 2023 10:15:50 +0000 (10:15 +0000)] 
dbox: dbox_mailbox_open() - Infer last_temp_file_scan from dir's atime if 0

2 years agodbox: dbox_mailbox_create() - Update last_temp_file_scan
Marco Bettini [Tue, 28 Feb 2023 10:14:26 +0000 (10:14 +0000)] 
dbox: dbox_mailbox_create() - Update last_temp_file_scan

2 years agolib-storage: dbox_cleanup_temp_files() - Fix inverted check for ENOENT
Marco Bettini [Fri, 3 Mar 2023 16:15:17 +0000 (16:15 +0000)] 
lib-storage: dbox_cleanup_temp_files() - Fix inverted check for ENOENT

2 years agodoveadm: Panic if doveadm_print_header() is called too late
Timo Sirainen [Fri, 24 Feb 2023 14:39:14 +0000 (16:39 +0200)] 
doveadm: Panic if doveadm_print_header() is called too late

Otherwise it's not noticed unless the doveadm command is called for multiple
users (-A, -F).

2 years agodoveadm: Panic if doveadm_print_init() is called too late
Timo Sirainen [Fri, 24 Feb 2023 14:22:28 +0000 (16:22 +0200)] 
doveadm: Panic if doveadm_print_init() is called too late

Otherwise it's not noticed unless the doveadm command is called for multiple
users (-A, -F).

2 years agofts-flatcurve: Move doveadm_print_header() eariler
Marco Bettini [Wed, 1 Mar 2023 16:17:05 +0000 (16:17 +0000)] 
fts-flatcurve: Move doveadm_print_header() eariler

Otherwise the newly introduced checks trigger faults

2 years agofts: fts tokenize - Move doveadm_print_init() eariler
Marco Bettini [Wed, 1 Mar 2023 16:16:11 +0000 (16:16 +0000)] 
fts: fts tokenize - Move doveadm_print_init() eariler

Otherwise the newly introduced checks trigger faults

2 years agomail-crypt: Move doveadm_print_init/header() eariler
Marco Bettini [Tue, 28 Feb 2023 16:49:53 +0000 (16:49 +0000)] 
mail-crypt: Move doveadm_print_init/header() eariler

Otherwise the newly introduced checks trigger faults

2 years agodoveadm: pw - Allow weak schemes in verification
Aki Tuomi [Mon, 27 Feb 2023 14:00:02 +0000 (16:00 +0200)] 
doveadm: pw - Allow weak schemes in verification

2 years agoauth: mech-gssapi - Remove KRB5_USEROK check
Aki Tuomi [Fri, 3 Mar 2023 09:48:38 +0000 (11:48 +0200)] 
auth: mech-gssapi - Remove KRB5_USEROK check

It should be there always these days. Enables cross-realm
and cross-identity authentication always.

2 years agosdbox: Fix panic due to leaked mail_index_view if sync fails
Timo Sirainen [Sun, 5 Feb 2023 18:51:12 +0000 (20:51 +0200)] 
sdbox: Fix panic due to leaked mail_index_view if sync fails

Fixes:
Panic: Leaked view for index .../dbox-Mails/dovecot.index: Opened in mail-index-sync.c:445

2 years agolib-index: Don't update log_file_tail_offset on sync if reading dovecot.index.log...
Timo Sirainen [Sun, 5 Feb 2023 18:50:06 +0000 (20:50 +0200)] 
lib-index: Don't update log_file_tail_offset on sync if reading dovecot.index.log failed

This is more of a theoretical issue, since dovecot.index.log read failure is
very unlikely.

2 years agolib-index: Don't update max_tail_offset if write to dovecot.index.log fails
Timo Sirainen [Sun, 5 Feb 2023 18:47:08 +0000 (20:47 +0200)] 
lib-index: Don't update max_tail_offset if write to dovecot.index.log fails

The max_tail_offset didn't actually increase in that situation.
This fixes wrongly updating mail_index_header.log_file_tail_offset after
write to dovecot.index.log failed (due to out of disk space), which in
turn can cause some unexpected errors.

2 years agolib-index: Fix event leak if purging dovecot.index.cache fails
Timo Sirainen [Sun, 5 Feb 2023 18:46:34 +0000 (20:46 +0200)] 
lib-index: Fix event leak if purging dovecot.index.cache fails

2 years agolib: event-filter-parser.y - Add workaround for nerrs being unused warning
Timo Sirainen [Fri, 24 Feb 2023 12:06:14 +0000 (14:06 +0200)] 
lib: event-filter-parser.y - Add workaround for nerrs being unused warning

Fixes with clang-17:
warning: variable 'event_filter_parser_nerrs' set but not used

2 years agoglobal: Remove dead code
Timo Sirainen [Fri, 24 Feb 2023 12:02:01 +0000 (14:02 +0200)] 
global: Remove dead code

2 years agolib: istream - Don't call memcpy() with NULL parameter --with-devel-checks
Timo Sirainen [Thu, 23 Feb 2023 14:10:43 +0000 (16:10 +0200)] 
lib: istream - Don't call memcpy() with NULL parameter --with-devel-checks

2 years agolib: lib - Add value for defines that don't have it
Aki Tuomi [Wed, 22 Feb 2023 12:08:20 +0000 (14:08 +0200)] 
lib: lib - Add value for defines that don't have it

Fixes compilation with FreeBSD that requires a value for
defines.

Broken in e6f2682b32ff5b366ee7242841c3194425202880

2 years agolib: lib - Remove memcpy macro in C++
Aki Tuomi [Wed, 22 Feb 2023 12:06:57 +0000 (14:06 +0200)] 
lib: lib - Remove memcpy macro in C++

This breaks C++ compilation due to too wide impact.

Broken in 38dbeec767ad10021020e3833b1dbc3d04442f85

2 years agolib-auth: Remove external libraries from dependencies
Aki Tuomi [Wed, 22 Feb 2023 12:06:05 +0000 (14:06 +0200)] 
lib-auth: Remove external libraries from dependencies

This just breaks compilation when they contain -L.

Broken in 5d632abbf571f8e9157b1526533d677a1b8eb829

2 years agolib-mail: Remove obsolete mail-user-hash
Karl Fleischmann [Thu, 23 Feb 2023 07:16:13 +0000 (08:16 +0100)] 
lib-mail: Remove obsolete mail-user-hash

2 years agologin-common: Remove obsolete include of mail-user-hash.h
Karl Fleischmann [Thu, 23 Feb 2023 07:15:48 +0000 (08:15 +0100)] 
login-common: Remove obsolete include of mail-user-hash.h

2 years agofts: cmd_fts_expand_run() - Fix for crash invoking doveadm fts expand -A
Marco Bettini [Wed, 22 Feb 2023 09:18:48 +0000 (09:18 +0000)] 
fts: cmd_fts_expand_run() - Fix for crash invoking doveadm fts expand -A

2 years agoimap: imap_parser_read_next_atom() - Reject special character DEL 0x7F
Marco Bettini [Tue, 21 Feb 2023 10:04:36 +0000 (10:04 +0000)] 
imap: imap_parser_read_next_atom() - Reject special character DEL 0x7F

atom-specials includes CTL, which in turn contains \x00-\x1F and \x7F DEL

2 years agoimap: imap_parser_read_next_atom() - Accept "]" in cmd-tag(s)
Marco Bettini [Tue, 21 Feb 2023 10:03:11 +0000 (10:03 +0000)] 
imap: imap_parser_read_next_atom() - Accept "]" in cmd-tag(s)

despite "]" being in atom-specials, a specific exception is made
for that in ASTRING-CHAR, which is used by tag

2 years agolib-imap-client: Fix crash if SSL initialization fails when connecting
Timo Sirainen [Sun, 5 Feb 2023 19:52:11 +0000 (21:52 +0200)] 
lib-imap-client: Fix crash if SSL initialization fails when connecting

This could be for example due to invalid SSL certificate settings.

2 years agolib-imap-urlauth: imap-urlauth - Don't return errors from imap_msgpart_url*() as...
Stephan Bosch [Fri, 10 Feb 2023 15:46:37 +0000 (16:46 +0100)] 
lib-imap-urlauth: imap-urlauth - Don't return errors from imap_msgpart_url*() as internal errors.

These are explicitly suitable as client errors; e.g. about nonexistent folders.

2 years agolib-imap-urlauth: imap-urlauth - Don't replace error returned by imap_msgpart_url_ope...
Timo Sirainen [Tue, 30 Mar 2021 11:26:08 +0000 (14:26 +0300)] 
lib-imap-urlauth: imap-urlauth - Don't replace error returned by imap_msgpart_url_open_mailbox()

The original error is intended to be sent to the client.