]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Marco Bettini [Mon, 19 Sep 2022 09:30:54 +0000 (09:30 +0000)]
lib-sql: driver-cassandra - Use container_of()
Marco Bettini [Fri, 9 Sep 2022 13:34:25 +0000 (13:34 +0000)]
lib-sql: driver_cassandra_connect() - Use cass_session_connect() instead of cass_session_connect_keyspace()
Marco Bettini [Fri, 9 Sep 2022 13:26:40 +0000 (13:26 +0000)]
lib-dict-backend: Use qualifiers for table names when available from the driver
Marco Bettini [Thu, 8 Sep 2022 14:18:03 +0000 (14:18 +0000)]
lib-sql: Add api to retrieve table names qualifiers from the driver (keyspaces, for Cassandra)
Marco Bettini [Thu, 8 Sep 2022 09:24:59 +0000 (09:24 +0000)]
lib-sql: driver-cassandra - Use designated initializers for struct sql_result_vfuncs
Marco Bettini [Wed, 7 Sep 2022 13:59:11 +0000 (13:59 +0000)]
doveadm: Fix timezone handling in doveadm fetch date.sent
Markus Valentin [Tue, 9 Aug 2022 07:12:29 +0000 (09:12 +0200)]
lib-doveadm: doveadm_client_extract() - Unset flush callback when extracting
Markus Valentin [Wed, 27 Jul 2022 09:01:40 +0000 (11:01 +0200)]
lib-doveadm: Add DOVEADM_EX_EXPIRED
Aki Tuomi [Mon, 5 Sep 2022 10:06:57 +0000 (13:06 +0300)]
quota: quota-fs - Cast host to char in clnt_create
The API expects char, not const char.
Aki Tuomi [Mon, 15 Aug 2022 07:16:48 +0000 (10:16 +0300)]
doveadm: doveadm-mail - Always perform userdb lookup
Aki Tuomi [Mon, 15 Aug 2022 07:16:08 +0000 (10:16 +0300)]
doveadm: doveadm-mail - Require user, user-file or all-users option in mail commands
Aki Tuomi [Mon, 15 Aug 2022 07:15:09 +0000 (10:15 +0300)]
doveadm: doveadm-mail - Reorder code in doveadm_cmdv2_wrapper_parse_common_options
Simplifies next change.
Aki Tuomi [Thu, 25 Aug 2022 07:17:32 +0000 (10:17 +0300)]
login-common: Make login_proxy_free(&NULL) no-op
Fixes segfault when proxying loops.
Broken in
a1acd71cf65e6a6b92a6bdd1c1a5479f24d4aa35
Timo Sirainen [Tue, 23 Aug 2022 10:27:53 +0000 (13:27 +0300)]
doveadm: SIGINT, SIGTERM handling - Stop service ioloop only during master_service_run()
This fixes random doveadm failures when hitting Ctrl-C.
Aki Tuomi [Wed, 24 Aug 2022 10:35:41 +0000 (13:35 +0300)]
auth: auth-policy - Include fail_type by default
Aki Tuomi [Wed, 24 Aug 2022 10:32:44 +0000 (13:32 +0300)]
auth: auth-policy - Add new variable fail_type
This variables indicates reason why the request has failed:
The values are:
- internal = Failure was due to dovecot internal processing
- credentials = Invalid credentials were provided
- expired = Credentials or user account has expired
- account = Account is unknown
- disabled = Account is disabled
- policy = Failure was due to policy refusal
Aki Tuomi [Thu, 25 Aug 2022 06:20:40 +0000 (09:20 +0300)]
doc/example-config: Document submissions/465 for submission-login
Aki Tuomi [Wed, 24 Aug 2022 07:18:46 +0000 (10:18 +0300)]
auth: db-dict - Sanitize lookup results before debug logging them
Avoids leaking newlines and such to logs.
Aki Tuomi [Fri, 19 Aug 2022 13:26:23 +0000 (16:26 +0300)]
auth: db-dict - Drop obsolete settings
They have been obsolete long enough
Aki Tuomi [Wed, 10 Aug 2022 12:13:43 +0000 (15:13 +0300)]
doveadm: doveadm-mail - Optimize user-file handling
Do not pointlessly list all users when handling user-file, only
with all users or if there is a mask.
Karl Fleischmann [Fri, 8 Jul 2022 08:25:15 +0000 (10:25 +0200)]
global: Rename plugin/zlib -> plugin/mail-compress in comments
Karl Fleischmann [Fri, 8 Jul 2022 08:24:34 +0000 (10:24 +0200)]
plugins/mail-compress: Change message prefix zlib -> mail-compress
Karl Fleischmann [Fri, 8 Jul 2022 08:24:03 +0000 (10:24 +0200)]
plugins/mail-compress: Rename configuration items zlib -> mail-compress
Karl Fleischmann [Fri, 8 Jul 2022 08:21:47 +0000 (10:21 +0200)]
plugins/mail-compress: Internally rename zlib -> mail-compress
Karl Fleischmann [Fri, 8 Jul 2022 08:15:45 +0000 (10:15 +0200)]
plugins: Rename plugins/zlib -> plugins/mail-compress
This commit renames the plugin without changing any of the configuration
items or internal function naming.
Karl Fleischmann [Thu, 11 Aug 2022 11:09:38 +0000 (13:09 +0200)]
doveadm dump: Rename type imapzlib -> imap-compress
Karl Fleischmann [Thu, 11 Aug 2022 11:09:04 +0000 (13:09 +0200)]
doveadm: Rename zlibconnect cmd -> compress-connect
Karl Fleischmann [Thu, 11 Aug 2022 11:02:13 +0000 (13:02 +0200)]
doveadm/doveadm-compress: Rename from doveadm-zlib
This commit renames the file without changing any of the public
interfaces.
Karl Fleischmann [Thu, 11 Aug 2022 09:40:23 +0000 (11:40 +0200)]
imap/cmd-compress: Fix output stats calculation by retaining the offset
Karl Fleischmann [Wed, 3 Aug 2022 12:53:36 +0000 (14:53 +0200)]
imap: Handle rawlogs when starting a compressed communication
The rawlogs should not contain compressed data when starting a
compressed communication channel. This commit amends rawlog management
data on the imap client to keep track of rawlog streams, and
appropriately handle rawlogs when imap compression is enabled.
Karl Fleischmann [Mon, 25 Jul 2022 06:36:22 +0000 (08:36 +0200)]
doveadm-zlib: Retrieve error from deflated stream
Karl Fleischmann [Wed, 20 Jul 2022 14:44:23 +0000 (16:44 +0200)]
imap: Remove imap_compress_deflate_level setting
It was decided that the default compression level is good enough for
most purposes and thus to remove the configuration option.
Karl Fleischmann [Fri, 15 Jul 2022 12:52:50 +0000 (14:52 +0200)]
imap-zlib: Remove plugin sources
Remove the now unused imap-zlib plugin. The functionality is retained
with the core imap command COMPRESS.
Karl Fleischmann [Fri, 15 Jul 2022 12:46:01 +0000 (14:46 +0200)]
imap: Move imap-zlib plugin functionality into imap core
This commit auto-enables the imap's COMPRESS functionality by copying
the imap-zlib plugin functionality into the imap directory and making it
available as the COMPRESS command.
It also disables compilation of the still existing imap-zlib plugin.
Karl Fleischmann [Thu, 4 Aug 2022 15:14:40 +0000 (17:14 +0200)]
global: Make zlib support required for compilation
As zlib is virtually universally available and with version v3.0 dovecot
will require important libraries by default it makes sense to start
requiring this particular library as well.
Timo Sirainen [Thu, 11 Aug 2022 22:44:00 +0000 (01:44 +0300)]
doveadm: Simplify -A (all-users) parameter handling
Change it to internally work the same way as -u '*'
Timo Sirainen [Thu, 11 Aug 2022 19:19:00 +0000 (22:19 +0300)]
doveadm: Fix -F parameter to work again
Broken by recent parameter handling changes.
Timo Sirainen [Fri, 12 Aug 2022 10:26:12 +0000 (13:26 +0300)]
doveadm: Remove unused doveadm_print_unstick_headers()
Timo Sirainen [Thu, 11 Aug 2022 19:16:03 +0000 (22:16 +0300)]
doveadm: Move username printing from server side to client side
The client requests output for only a single user from the server side, so
it makes sense that the client is the one printing the username.
This also changes sticky headers to be usable only for the username.
Unfortunately it's not easy to remove support for sticky header entirely,
because the username must not be printed before the first proper
doveadm_print() call. For example if "doveadm fetch" doesn't find any
mails, it shouldn't print the username either.
Timo Sirainen [Fri, 12 Aug 2022 05:53:19 +0000 (08:53 +0300)]
doveadm mailbox cache decision: Avoid using sticky header
The following changes makes the sticky headers not work quite so well.
Karl Fleischmann [Thu, 11 Aug 2022 14:36:03 +0000 (16:36 +0200)]
m4: want_mysql.m4 - Remove HAVE_OPENSSL definition when detecting mysql features
The HAVE_OPENSSL macro has no effect on the exposed features when
including mysql.h, thus it can be removed from the feature detection.
Karl Fleischmann [Thu, 11 Aug 2022 14:35:46 +0000 (16:35 +0200)]
lib-http: Remove ifdef-conditions based on HAVE_OPENSSL
This macro was removed in
6b0b7141a8a50ffc99ad51b4f27c75f876e58616 but
the test-specific ifdefs weren't.
Karl Fleischmann [Thu, 11 Aug 2022 14:31:40 +0000 (16:31 +0200)]
lib-smtp: Remove ifdef-conditions based on HAVE_OPENSSL
This macro was removed in
6b0b7141a8a50ffc99ad51b4f27c75f876e58616 but
the test-specific ifdefs weren't.
Timo Sirainen [Mon, 25 Jul 2022 16:26:47 +0000 (19:26 +0300)]
lib-imap-storage, imap: imap_msgpart_url_parse() - Change to return only 0/-1
It was previously never returning -1.
Timo Sirainen [Mon, 25 Jul 2022 16:21:44 +0000 (19:21 +0300)]
lib-imap-urlauth: Cleanup - Remove unnecessary ret assignment
Timo Sirainen [Mon, 25 Jul 2022 16:19:32 +0000 (19:19 +0300)]
lib-imap-storage: imap_msgpart_url_parse() - Fix return value for client errors
If imap_msgpart_url_create() fails, it's always due to invalid client input
rather than due to a storage error.
Timo Sirainen [Mon, 25 Jul 2022 16:18:16 +0000 (19:18 +0300)]
imap: If CATENATE processing stops, skip the rest of the command line
This fixes sending duplicate tagged reply or "Invalid tag" reply.
Timo Sirainen [Mon, 25 Jul 2022 16:17:49 +0000 (19:17 +0300)]
imap: APPEND - Fix CATENATE error message when URL/TEXT is missing the string
Timo Sirainen [Mon, 25 Jul 2022 16:14:33 +0000 (19:14 +0300)]
imap: APPEND - Fix crash if CATENATE list ends with URL atom but without the URL string
Timo Sirainen [Mon, 25 Jul 2022 16:47:34 +0000 (19:47 +0300)]
lib-index: Makefile.am - Fix double-linking of mail-index-util.o
This fixes linking with slibtool.
Timo Sirainen [Tue, 9 Aug 2022 08:09:26 +0000 (11:09 +0300)]
fts: Fix crash in expunge log event handling
fts_expunge_log_flat_write() was trying to access ->log->event, but the
read_log parameter was created by fts_expunge_log_flatten(), which leaves
the log NULL.
Broken by
0588f98a337c17de67dabea52fde20e1a0640fc3
Markus Valentin [Wed, 27 Jul 2022 13:42:58 +0000 (15:42 +0200)]
imapc: imapc_connection_init() - Call event_set_append_log_prefix()
Update logging calls accordingly.
Markus Valentin [Wed, 27 Jul 2022 13:28:16 +0000 (15:28 +0200)]
imapc: Introduce imapc_connection specific event
Markus Valentin [Fri, 5 Aug 2022 12:07:06 +0000 (14:07 +0200)]
imapc: imapc_client_init() - Add event_set_forced_debug() call
Marco Bettini [Tue, 12 Jul 2022 08:51:27 +0000 (08:51 +0000)]
plugins: zlib - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 12:16:54 +0000 (12:16 +0000)]
plugins: welcome - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 08:51:57 +0000 (08:51 +0000)]
plugins: virtual - Replace i_<log>() with e_<log>()
Marco Bettini [Thu, 7 Jul 2022 14:00:29 +0000 (14:00 +0000)]
plugins: trash - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 26 Jul 2022 10:25:48 +0000 (10:25 +0000)]
plugins: replication - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 26 Jul 2022 10:23:37 +0000 (10:23 +0000)]
plugins: replication_fifo_notify() - Unnest return checks
Marco Bettini [Tue, 12 Jul 2022 09:12:17 +0000 (09:12 +0000)]
plugins: quota - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 09:39:21 +0000 (09:39 +0000)]
plugins: pop3-migration - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 10:30:52 +0000 (10:30 +0000)]
plugins: notify-status - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 09:52:59 +0000 (09:52 +0000)]
plugins: mail-log - Replace i_<log>() with e_<log>()
Marco Bettini [Mon, 1 Aug 2022 09:28:09 +0000 (09:28 +0000)]
plugins: mail-log - Drop MAIL_LOG_FIELD_BOX from MAIL_LOG_DEFAULT_FIELDS
the prefix is now already injected in box->event, so adding it here too becomes redundant
Marco Bettini [Thu, 7 Jul 2022 14:21:38 +0000 (14:21 +0000)]
plugins: mail-crypt - Replace i_debug() with e_debug()
Marco Bettini [Tue, 12 Jul 2022 10:09:10 +0000 (10:09 +0000)]
plugins: last-login - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 10:43:24 +0000 (10:43 +0000)]
plugins: imap-zlib - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 10:08:56 +0000 (10:08 +0000)]
plugins: imap-quota - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 10:09:40 +0000 (10:09 +0000)]
plugins: fts-solr - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 12 Jul 2022 10:09:24 +0000 (10:09 +0000)]
plugins: fts - Replace i_<log>() with e_<log>()
Marco Bettini [Wed, 27 Jul 2022 14:55:09 +0000 (14:55 +0000)]
plugins: fts - Pass event into fts_indexer_cmd
Marco Bettini [Mon, 1 Aug 2022 09:12:53 +0000 (09:12 +0000)]
plugins: fts - Add event to struct fts_parser_context
Marco Bettini [Thu, 28 Jul 2022 15:38:53 +0000 (15:38 +0000)]
plugins: fts - Add event to struct fts_expunge_log
Marco Bettini [Thu, 28 Jul 2022 15:20:41 +0000 (15:20 +0000)]
plugins: fts - Add event to struct script_fts_parser
Marco Bettini [Wed, 27 Jul 2022 12:40:43 +0000 (12:40 +0000)]
plugins: fts - Add event to struct fts_backend
Marco Bettini [Tue, 12 Jul 2022 10:08:42 +0000 (10:08 +0000)]
plugins: charset-alias - Replace i_<log>() with e_<log>()
Marco Bettini [Thu, 7 Jul 2022 14:43:03 +0000 (14:43 +0000)]
plugins: acl - Replace i_<log>() with e_<log>()
Marco Bettini [Fri, 15 Jul 2022 13:23:23 +0000 (13:23 +0000)]
plugins: struct acl_backend - Add event
Marco Bettini [Fri, 5 Aug 2022 08:48:55 +0000 (08:48 +0000)]
plugins: Remove stray whitespaces
Marco Bettini [Fri, 8 Jul 2022 10:46:34 +0000 (10:46 +0000)]
lib-storage: index/pop3c - Replace i_<log>() with e_<log>()
Marco Bettini [Thu, 7 Jul 2022 08:01:10 +0000 (08:01 +0000)]
lib-storage: index/mbox - Replace i_<log>() with e_<log>()
Marco Bettini [Thu, 7 Jul 2022 08:01:09 +0000 (08:01 +0000)]
lib-storage: index/maildir - Replace i_<log>() with e_<log>()
Marco Bettini [Fri, 8 Jul 2022 13:11:49 +0000 (13:11 +0000)]
lib-storage: index/imapc - Replace i_<log>() with e_<log>()
Marco Bettini [Thu, 7 Jul 2022 08:01:09 +0000 (08:01 +0000)]
lib-storage: index/dbox-multi - Replace i_<log>() with e_<log>()
Marco Bettini [Thu, 7 Jul 2022 08:01:09 +0000 (08:01 +0000)]
lib-storage: index/dbox-single - Replace i_<log>() with e_<log>()
Marco Bettini [Mon, 11 Jul 2022 07:30:58 +0000 (07:30 +0000)]
lib-storage: index/dbox-common - Replace i_<log>() with e_<log>()
Marco Bettini [Tue, 19 Jul 2022 12:27:04 +0000 (12:27 +0000)]
lib-storage: index - Replace i_<log>() with e_<log>()
Marco Bettini [Mon, 18 Jul 2022 12:59:13 +0000 (12:59 +0000)]
lib-storage: service_auth_userdb_lookup() - Replace i_debug() with e_debug()
Marco Bettini [Thu, 7 Jul 2022 08:30:10 +0000 (08:30 +0000)]
lib-storage: mail_storage_service_lookup_real() - Anticipate the creation of the event before service_auth_userdb_lookup()
Marco Bettini [Tue, 19 Jul 2022 10:31:53 +0000 (10:31 +0000)]
lib-storage: Add prefix to storage event
Marco Bettini [Mon, 1 Aug 2022 10:04:15 +0000 (10:04 +0000)]
lib-storage: Factor in sanitize_box_name()
Martti Rannanjärvi [Fri, 3 Jun 2022 08:15:05 +0000 (11:15 +0300)]
auth: userdb - Stop calling USERDB_RESULT_OK after template expansion failure
Call only USERDB_RESULT_INTERNAL_FAILURE. This was broken by
0f5dc4da3982053036be65190e44bf28a67b1ca2 .
Timo Sirainen [Fri, 8 Jul 2022 13:33:14 +0000 (16:33 +0300)]
login-common: Fail early if redirection destination has empty hostname
Timo Sirainen [Fri, 8 Jul 2022 13:32:38 +0000 (16:32 +0300)]
lmtp: Use hostname (not IP) for proxy_redirect_host_next
This makes it consistent with login-common and doveadm.
Timo Sirainen [Wed, 3 Aug 2022 09:23:09 +0000 (12:23 +0300)]
lib-http: Fix unlimited size parameters for i_stream_create_limit()
The type is uoff_t, not size_t, so the value should be UOFF_T_MAX.
Timo Sirainen [Wed, 3 Aug 2022 09:22:31 +0000 (12:22 +0300)]
lib-http: Wrap server response payload istream into istream-limit
This way if the underlying istream is accessed by other code, lib-http won't
be affected by the seek offset changes.
Timo Sirainen [Wed, 3 Aug 2022 09:05:57 +0000 (12:05 +0300)]
lib-http: Wrap client request payload istream into istream-limit
This way if the underlying istream is accessed by other code, lib-http won't
be affected by the seek offset changes.
Karl Fleischmann [Wed, 27 Jul 2022 13:50:48 +0000 (15:50 +0200)]
m4: dovecot.m4 - Make C standard check aware of autoconf version
Version 2.70 of autoconf deprecated AC_PROG_CC_C99 in favor of using
different cache veriables that are set by AC_PROG_CC. This commit uses
the appropriate mechanism depending on the m4 version used.
Karl Fleischmann [Wed, 27 Jul 2022 13:11:25 +0000 (15:11 +0200)]
m4: dovecot.m4 - Fix formatting
Replace indentation of C99 checks from tabs/arbitrary numbered spaces to
consistent indenting with 2 spaces per level.