]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Mon, 7 Jun 2010 18:28:15 +0000 (19:28 +0100)]
auth: Another attempt in trying to fix crashed at deinit on pending async auth request lookups.
--HG--
branch : HEAD
Timo Sirainen [Mon, 7 Jun 2010 18:17:46 +0000 (19:17 +0100)]
login: Deinit auth socket after destroying clients to avoid crash.
--HG--
branch : HEAD
Timo Sirainen [Mon, 7 Jun 2010 17:53:42 +0000 (18:53 +0100)]
auth: Fixed prefetch userdb interaction with passdb changing username.
If userdb_* fields were set before user was changed, prefetch returned
the unchanged username.
--HG--
branch : HEAD
Timo Sirainen [Mon, 7 Jun 2010 16:48:51 +0000 (17:48 +0100)]
doveadm: stop and reload commands now run with minimal initialization code.
This allows them to work even if there is something wrong with config file.
--HG--
branch : HEAD
Timo Sirainen [Mon, 7 Jun 2010 16:06:17 +0000 (17:06 +0100)]
lib-storage: Plugin API changed to run plugin functions in correct order.
Previously the hooks were run in correct order, but the functions they
overrode were run in reverse order. This caused problems when multiple
plugins were used.
--HG--
branch : HEAD
Timo Sirainen [Mon, 7 Jun 2010 13:05:42 +0000 (14:05 +0100)]
Mailbox deletion: Delay marking its index deleted until ACL has had a chance to abort the deletion.
--HG--
branch : HEAD
Timo Sirainen [Sat, 5 Jun 2010 12:38:17 +0000 (13:38 +0100)]
mdbox: Removed unnecessary code line.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 20:40:17 +0000 (21:40 +0100)]
TODO updated.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 20:09:12 +0000 (21:09 +0100)]
dbox, mdbox: Fixed race conditions when creating mailboxes.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 18:57:49 +0000 (19:57 +0100)]
rawlog: Rewrote timestamp handling. Now with -t parameter each line begins with timestamp.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 18:47:50 +0000 (19:47 +0100)]
script, script-login: Tell GNU getopt() not to access -parameters after first non-parameter.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 18:16:42 +0000 (19:16 +0100)]
lib-storage: Fixed accessing uncommitted saved mails with dsync
dsync preserves uids, so uid==0 check won't work for detecting such mails.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 18:14:42 +0000 (19:14 +0100)]
lmtp: Compile fix.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 17:51:05 +0000 (18:51 +0100)]
dsync: Fixed loading plugins when built --without-shared-libs
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 17:26:06 +0000 (18:26 +0100)]
dict client: Allow connecting to server multiple times in a second.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 17:05:28 +0000 (18:05 +0100)]
When creating shared directories, preserve parent dir's permissions if it has setgid bit enabled.
This works only if location path uses %variables. The directories up to
last variable are created by preserving parent directory's modes, while
the rest of the directories are created with 0700. For example
with "/var/mail/%d/%2n/%n/Maildir", "/var/mail/domain/nn" preserves /var/mail's
permissions, while the "username/Maildir" directories have 0700 mode.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 15:59:31 +0000 (16:59 +0100)]
Avoid including mailbox-list-private.h everywhere.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 15:51:16 +0000 (16:51 +0100)]
lib-storage: Added mailbox_list_get_root_path() to reduce code duplication.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 15:36:24 +0000 (16:36 +0100)]
lib-storage: Code cleanup.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 15:15:28 +0000 (16:15 +0100)]
auth: Deinit auth request handler before pass/userdbs
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 14:51:47 +0000 (15:51 +0100)]
mail-log: If saved uid isn't available, log an error instead of crashing.
This shouldn't happen, except when saving to virtual mailbox.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 14:50:41 +0000 (15:50 +0100)]
mail-log: Code cleanup.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 14:39:58 +0000 (15:39 +0100)]
mail-log: Show lda/lmtp deliveries as "save", not "copy from Dovecot Delivery Mail".
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 14:25:03 +0000 (15:25 +0100)]
auth: When stopping, try to wait for auth clients to disconnect.
This should avoid auth failures during config reloads.
--HG--
branch : HEAD
Timo Sirainen [Fri, 4 Jun 2010 14:11:55 +0000 (15:11 +0100)]
script: Clear environment before running the script.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 19:10:23 +0000 (20:10 +0100)]
doveadm quota get: Avoid integer overflows with really high quota usage.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 18:52:32 +0000 (19:52 +0100)]
auth: Added %{login_user}, %{login_username} and %{login_domain} variables that are set for master logins.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 18:24:07 +0000 (19:24 +0100)]
doveadm quota get: Print usage also in percentages.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 18:20:54 +0000 (19:20 +0100)]
example-config: Moved ACL settings to a separate .conf file.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 18:17:08 +0000 (19:17 +0100)]
example-config: Moved quota configuration to a separate .conf file and improved the comments.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 17:52:12 +0000 (18:52 +0100)]
quota: Use the new "script" service for executing quota warnings.
This improves the performance, especially when the process is handling
multiple users, because it no longer has to fork a process and wait for
the script to finish.
Example configuration:
plugin {
quota_warning = storage=90%% quota-warning 90 %u
}
service quota-warning {
executable = script /usr/local/bin/quota-warning.sh
user = vmail
unix_listener quota-warning {
}
}
The quota-warning.sh will be executed with parameters 90 and username.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 17:46:26 +0000 (18:46 +0100)]
Added "script" service that can be used to easily execute programs via UNIX socket.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 17:45:02 +0000 (18:45 +0100)]
script-login: Added version check to the protocol.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 16:22:41 +0000 (17:22 +0100)]
script-login: Error message fix.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 17:27:08 +0000 (18:27 +0100)]
Added version_string_verify() and removed code duplication with it.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 16:21:21 +0000 (17:21 +0100)]
Renamed "script" binary to "script-login".
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 15:48:55 +0000 (16:48 +0100)]
auth: Fixes to destroying pending async userdb requests at deinit.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 15:15:58 +0000 (16:15 +0100)]
lib-dict: Changed proxy client's idle timeout from 1 second to 0.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 15:08:07 +0000 (16:08 +0100)]
auth: Added passdb static.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 14:50:37 +0000 (15:50 +0100)]
auth: Removed USERDB_STATIC macro. It's always built anyway.
--HG--
branch : HEAD
Timo Sirainen [Wed, 2 Jun 2010 00:23:51 +0000 (01:23 +0100)]
auth: Recent change caused userdb lookups to crash.
The deinit bug that it tried to fix isn't fixed yet.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 19:00:07 +0000 (20:00 +0100)]
mdbox: When rebuilding storage, don't use map records that have wrong size.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 17:43:16 +0000 (18:43 +0100)]
example-config: Updated global mail_plugins comment.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 17:37:37 +0000 (18:37 +0100)]
config: Fixed handling obsolete [ipv6addr]:port listen setting.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 17:35:48 +0000 (18:35 +0100)]
Added support for [] around ipv6 addresses everywhere.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 16:51:50 +0000 (17:51 +0100)]
acl: Allow tabs between extended acl names.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 16:34:11 +0000 (17:34 +0100)]
configure: Don't use spaces after -I and -L compiler flags.
Apparently they break in some setups. Patch by Ben DJ.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 16:20:42 +0000 (17:20 +0100)]
Compile fix for OSX 10.3.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 16:08:13 +0000 (17:08 +0100)]
virtual: Fixed looking up namespace for save-destination mailbox (!ns/box)
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 15:58:17 +0000 (16:58 +0100)]
imap: Removed a no-op outlook-idle imap client workaround.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 15:57:55 +0000 (16:57 +0100)]
imap: Removed netscape-eoh (Netscape 4.x) from imap client workarounds.
This client should be long dead by now. Also the workaround causes
Dovecot to violate IMAP RFC, so it's not really recommended anyway.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 15:37:59 +0000 (16:37 +0100)]
auth: Aborting pending async requests on deinit caused crashes.
--HG--
branch : HEAD
Timo Sirainen [Tue, 1 Jun 2010 15:01:21 +0000 (16:01 +0100)]
header filter istream: Avoid seeking backwards when caller just wants to reset the stream buffers.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 20:38:19 +0000 (21:38 +0100)]
lmtp: Fixes to seteuid calls.
When delivering to multiple users, the first user's mail should be
deinitialized with that user's effective uid. Also there's no point in
setting uid to 0 between deliveries to multiple users.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 19:34:42 +0000 (20:34 +0100)]
lib-index: If index is read-only, always fail when trying to lock cache file.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 18:28:04 +0000 (19:28 +0100)]
imap: Fixed previous idle change more correctly.
The previous way could have crashed in some situations.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 18:15:01 +0000 (19:15 +0100)]
imap: If client was disconnected while IDLEing (e.g. storage error), it got stuck instead.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 18:09:41 +0000 (19:09 +0100)]
lib-index: Try to handle index directory deletion more nicely.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 17:57:46 +0000 (18:57 +0100)]
lib-storage: Don't log rename() error if dovecot-uidvalidity didn't contain valid value.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 15:46:08 +0000 (16:46 +0100)]
lib-lda: If two LDAs try to autocreate the same mailbox at the same time, don't fail the other one.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 15:42:23 +0000 (16:42 +0100)]
auth: Improved passwd-file's EACCES error messages.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 15:01:09 +0000 (16:01 +0100)]
doveadm: Removed an unnecessary code line.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 14:32:18 +0000 (15:32 +0100)]
director: Update connection counts also on login connection deinit.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 14:25:22 +0000 (15:25 +0100)]
lib-storage: mail_get_stream() no longer sets stream_r if it returns failure.
This fixes e.g. FETCH RFC822.* commands when input couldn't be read.
--HG--
branch : HEAD
Timo Sirainen [Mon, 31 May 2010 14:12:57 +0000 (15:12 +0100)]
If read() from a mail stream fails, log the stream name (filename typically).
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 17:30:55 +0000 (18:30 +0100)]
imap: LIST now handles better if INBOX is in a different namespace than prefix=""
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 17:12:05 +0000 (18:12 +0100)]
doveadm log find: Wait 1 second after logging, to give syslog time to write to files.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 16:39:05 +0000 (17:39 +0100)]
quota: Non-default quota rules should now have '+' before the limit value.
This should make it clearer what it means. The obsolete way without '+' might
be changed in future to actually mean an absolute quota limit.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 16:03:41 +0000 (17:03 +0100)]
doveadm mailbox convert renamed to doveadm mailbox mutf7.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 15:52:24 +0000 (16:52 +0100)]
quota-fs: Log also mountpoint type with mail_debug=yes.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 15:44:14 +0000 (16:44 +0100)]
doveadm: Detect '?' also as wildcard character in usernames.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 15:26:30 +0000 (16:26 +0100)]
doveadm: Group subcommands into a single line in usage output.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 14:26:39 +0000 (15:26 +0100)]
doveadm help <cmd> now also outputs to stdout.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 14:24:55 +0000 (15:24 +0100)]
doveadm help and without parameters now writes output to stdout, otherwise stderr.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 14:20:19 +0000 (15:20 +0100)]
master: dovecot --log-error now internally calls doveadm log test.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 14:17:46 +0000 (15:17 +0100)]
master: Added reload and stop back to usage help string.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 14:15:10 +0000 (15:15 +0100)]
doveadm: Added log test|reopen|find commands.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 12:11:15 +0000 (13:11 +0100)]
dovecot: Removed reload and stop handlers. "dovecot arg" now execs "doveadm arg".
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 12:03:49 +0000 (13:03 +0100)]
doveadm: Added stop and reload commands.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 11:31:22 +0000 (12:31 +0100)]
doveadm: force-resync now fails if mailbox name isn't valid UTF-8
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 11:31:05 +0000 (12:31 +0100)]
lib-storage: Human search parser now fails if given mailbox name isn't valid UTF8.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 11:27:58 +0000 (12:27 +0100)]
doveadm force-resync: Get mailbox name as UTF-8.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 11:23:10 +0000 (12:23 +0100)]
doveadm mailbox *: Removed -7 and -8 parameters from most commands, UTF-8 is used always.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 11:22:46 +0000 (12:22 +0100)]
doveadm fetch: mailbox field value is printed as UTF-8, not mUTF-7.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 11:21:58 +0000 (12:21 +0100)]
lib-storage: human search arg parser now gets mailbox name using UTF-8.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 10:47:42 +0000 (11:47 +0100)]
lib-sql: Don't try to reconnect on deinit or intentional disconnect. Fixes a timeout leak.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 10:46:55 +0000 (11:46 +0100)]
mysql, sqlite: Update db state to disconnected on deinit.
--HG--
branch : HEAD
Timo Sirainen [Fri, 28 May 2010 10:22:04 +0000 (11:22 +0100)]
master: Make sure throttle timeout isn't added for already destroyed services.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 20:19:37 +0000 (21:19 +0100)]
doveadm: Minor help text change.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 20:15:50 +0000 (21:15 +0100)]
master: Fixed crash on config reload.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 20:10:07 +0000 (21:10 +0100)]
doveadm: -u parameter now allows wildcards for usernames.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 20:03:36 +0000 (21:03 +0100)]
doveadm: Added config dependency to mail_user settings.
If doveadm gets the configuration by execing doveconf, it won't get these
settings without the dependency.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 19:55:45 +0000 (20:55 +0100)]
doveadm: Preserve $HOME when execing doveconf.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 19:49:00 +0000 (20:49 +0100)]
doveadm user: User listing is done now by using wildcards in usernames.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 19:30:04 +0000 (20:30 +0100)]
expire: Rewrote expire-tool as a plugin for doveadm.
Whenever using some doveadm mail command with -A parameter, the plugin checks
if it can get the list of potentially matching users from the expire database.
Currently only the list of users is filtered based on expire database, list of
mailboxes could also be filtered but this isn't supported (yet).
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 19:00:28 +0000 (20:00 +0100)]
doveadm quota: Fixed to work with new doveadm API
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 19:00:03 +0000 (20:00 +0100)]
lib-storage: Human search date parser now supports UNIX timestamps.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 18:59:39 +0000 (19:59 +0100)]
doveadm: mail commands can now be extended more easily by plugins.
Also plugins can now override the list of -A users.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 18:27:18 +0000 (19:27 +0100)]
doveadm user: If no user parameters are given, list all usernames.
--HG--
branch : HEAD
Timo Sirainen [Thu, 27 May 2010 18:14:37 +0000 (19:14 +0100)]
dbox: Copying messages crashed.
--HG--
branch : HEAD