]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
15 months 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

15 months 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

15 months 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

15 months 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

15 months 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

15 months 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.

15 months 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

15 months 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>

15 months 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

15 months 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

15 months 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.

15 months 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.

15 months 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.

16 months 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.

16 months 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

16 months 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.

16 months 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

16 months 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.

16 months 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

16 months 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)

16 months 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()

16 months 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

16 months 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.

16 months 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

16 months 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.

16 months 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

16 months 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.

16 months 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()

16 months 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.

16 months 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

17 months 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

17 months 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

17 months 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

17 months 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

17 months 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

17 months 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

17 months 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()

17 months 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.

17 months 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.

17 months 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.

17 months 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.

17 months 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

17 months 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()

17 months 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

17 months 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

17 months 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

17 months 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()

17 months 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

17 months 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.

17 months 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

17 months 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

17 months 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

17 months 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

17 months 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()

17 months 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

17 months 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

17 months 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()

17 months 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()

17 months 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()

17 months 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

17 months 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

17 months 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

17 months 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

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

17 months 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

17 months 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().

17 months 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.

17 months 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

17 months 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

17 months 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

17 months 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

17 months 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()

17 months 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.

17 months 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

17 months 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()

17 months 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.

17 months 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

17 months 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

17 months 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()

17 months 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.

17 months agolib: Merge failure_handler_vfuncs.format() into .write()
Timo Sirainen [Sat, 24 Feb 2024 22:10:07 +0000 (00:10 +0200)] 
lib: Merge failure_handler_vfuncs.format() into .write()

17 months agolib: failures - Rename str variables to data
Timo Sirainen [Sat, 24 Feb 2024 16:49:27 +0000 (18:49 +0200)] 
lib: failures - Rename str variables to data

This simplifies the following commit.

17 months agolib: test-event-log - Use temporary file for testing log file contents
Timo Sirainen [Sat, 24 Feb 2024 22:08:30 +0000 (00:08 +0200)] 
lib: test-event-log - Use temporary file for testing log file contents

This allows removal of failure_handler_vfuncs.format() in the following
commit.

18 months agolib-lua: Add unit test for dovecot.http
Stephan Bosch [Sat, 25 Nov 2023 16:08:56 +0000 (17:08 +0100)] 
lib-lua: Add unit test for dovecot.http

18 months agolib-lua: dlua-dovecot-http - Default to script event if script provides no event...
Stephan Bosch [Sat, 25 Nov 2023 16:06:37 +0000 (17:06 +0100)] 
lib-lua: dlua-dovecot-http - Default to script event if script provides no event for HTTP client

18 months agolib-lua: dlua-dovecot-http - Allow setting dns_client_socket_path from script
Stephan Bosch [Sat, 25 Nov 2023 16:05:48 +0000 (17:05 +0100)] 
lib-lua: dlua-dovecot-http - Allow setting dns_client_socket_path from script

18 months agolib-http: http-client-request - Add "http-client" category to any event set for request
Stephan Bosch [Sat, 25 Nov 2023 16:01:54 +0000 (17:01 +0100)] 
lib-http: http-client-request - Add "http-client" category to any event set for request

18 months agolib-http: http-client-connection - Fix detection of erroneous early response after...
Stephan Bosch [Sat, 25 Nov 2023 16:07:48 +0000 (17:07 +0100)] 
lib-http: http-client-connection - Fix detection of erroneous early response after 100 Continue

18 months agolib: If log line contains LFs, add log prefix before each line
Timo Sirainen [Wed, 21 Feb 2024 09:31:34 +0000 (11:31 +0200)] 
lib: If log line contains LFs, add log prefix before each line

18 months agolib-sql: sqlite - Add query to error strings
Timo Sirainen [Wed, 21 Feb 2024 08:10:24 +0000 (10:10 +0200)] 
lib-sql: sqlite - Add query to error strings

18 months agolib-imap-storage: Fix Content-Transfer-Encoding in converted BODYPARTSTRUCTURE
Stephan Bosch [Mon, 8 May 2023 23:04:53 +0000 (01:04 +0200)] 
lib-imap-storage: Fix Content-Transfer-Encoding in converted BODYPARTSTRUCTURE

If the part was converted, it should be "binary" rather than "base64".

18 months agolib-storage: mail - Group binary part properties into a struct for mail_get_binary_st...
Stephan Bosch [Mon, 8 May 2023 23:04:45 +0000 (01:04 +0200)] 
lib-storage: mail - Group binary part properties into a struct for mail_get_binary_stream().

This makes several additional properties available from
mail_get_binary_stream(). This also changes mail_get_binary_size() into
mail_get_binary_properties().

18 months agoimap: URLFETCH - Fix returning both BODYPARTSTRUCTURE and BODY/BINARY
Timo Sirainen [Tue, 30 Mar 2021 11:44:09 +0000 (14:44 +0300)] 
imap: URLFETCH - Fix returning both BODYPARTSTRUCTURE and BODY/BINARY

It should return (BODYPARTSTRUCTURE ...) (BINARY ...),
not (BODYPARTSTRUCTURE ... BINARY ...)

18 months agolib-imap-urlauth: Always call callback with a non-NULL reply
Timo Sirainen [Tue, 30 Mar 2021 11:32:21 +0000 (14:32 +0300)] 
lib-imap-urlauth: Always call callback with a non-NULL reply

Even with internal errors the error message is in the reply.

18 months agolib-storage: Remove extra period from "Unknown Content-Transfer-Encoding." error
Timo Sirainen [Tue, 30 Mar 2021 11:35:16 +0000 (14:35 +0300)] 
lib-storage: Remove extra period from "Unknown Content-Transfer-Encoding." error

The period is often added by the callers, so errors ended up having two
periods at the end.

18 months agolib-mail: message-part - Add message_parts_have_nuls() and message_part_has_nuls().
Stephan Bosch [Mon, 8 May 2023 22:23:41 +0000 (00:23 +0200)] 
lib-mail: message-part - Add message_parts_have_nuls() and message_part_has_nuls().

Drop equivalent static function in lib-storage/index/index-mail.c.

18 months agomail-crypt: Mark ChaCha20-Poly1305 as AEAD cipher
Aki Tuomi [Tue, 13 Feb 2024 08:02:16 +0000 (10:02 +0200)] 
mail-crypt: Mark ChaCha20-Poly1305 as AEAD cipher

18 months agolib-dcrypt: Support ChaCha20-Poly1305 with OpenSSL3
Aki Tuomi [Tue, 13 Feb 2024 07:58:04 +0000 (09:58 +0200)] 
lib-dcrypt: Support ChaCha20-Poly1305 with OpenSSL3

18 months agolib-smtp: Ensure chunk is not NULL in smtp_server_connection_data_chunk_add()
Aki Tuomi [Wed, 14 Feb 2024 08:25:13 +0000 (10:25 +0200)] 
lib-smtp: Ensure chunk is not NULL in smtp_server_connection_data_chunk_add()

18 months agolib-dict-backend: dict-ldap - Ensure username is not null on priv lookups
Aki Tuomi [Wed, 14 Feb 2024 08:12:10 +0000 (10:12 +0200)] 
lib-dict-backend: dict-ldap - Ensure username is not null on priv lookups