]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Timo Sirainen [Mon, 26 May 2008 15:49:35 +0000 (18:49 +0300)]
If dovecot-uidlist contains a filename with '/', log an error and recreate
the uidlist instead of assert-crashing.
--HG--
branch : HEAD
Timo Sirainen [Mon, 26 May 2008 15:47:24 +0000 (18:47 +0300)]
Code cleanup
--HG--
branch : HEAD
Timo Sirainen [Mon, 26 May 2008 11:46:00 +0000 (14:46 +0300)]
Prefix AC_CACHE_CHECK variables with i_cv_.
--HG--
branch : HEAD
Timo Sirainen [Mon, 26 May 2008 11:05:09 +0000 (14:05 +0300)]
Once $KRB5_CFLAGS is set, use it instead of calling krb5-config again.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 19:31:10 +0000 (22:31 +0300)]
Don't crash if subscribed mailbox begins with hierarchy separator.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 13:05:09 +0000 (16:05 +0300)]
If SUBSCRIBE or UNSUBSCRIBE fails, we returned "Unknown error".
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 12:10:59 +0000 (15:10 +0300)]
expire-tool: Fixed changing uid/gid.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 02:01:47 +0000 (05:01 +0300)]
Maildir: Moved uidlist refreshing to maildir_uidlist_lookup() where it
benefits all callers.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 01:49:08 +0000 (04:49 +0300)]
Fixed previous transaction log assert-avoidance check.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 01:44:18 +0000 (04:44 +0300)]
Fixed GSSAPI checks. Perhaps it works now with Solaris krb5-config also.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 01:19:49 +0000 (04:19 +0300)]
If index file's header shows that it's unusable (e.g. major version change
or CPU arch change), make sure they're not tried to be used and handle the
rebuilding nicely.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 01:18:42 +0000 (04:18 +0300)]
When creating a new transaction log, don't reuse an existing one if its
sequence isn't 1.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 01:17:39 +0000 (04:17 +0300)]
Avoid assert-crashing with broken transaction log files.
--HG--
branch : HEAD
Timo Sirainen [Sun, 25 May 2008 00:11:15 +0000 (03:11 +0300)]
squat: Flush NFS caches.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 23:58:42 +0000 (02:58 +0300)]
dbox: fdatasync() when saving.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 23:52:39 +0000 (02:52 +0300)]
dbox: Don't write message UID to u.* files' header, since the filename
itself specifies the UID already. When reading u.* files ignore the UID
field completely. This would allow hard linking u.* files, but the metadata
will then contain only a single mailbox's flags+keywords.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 23:50:23 +0000 (02:50 +0300)]
dbox error handling fix
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 23:50:06 +0000 (02:50 +0300)]
dbox: Some mails could have been written using m.* files, even though
everything was supposed to be u.* for now.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 22:52:17 +0000 (01:52 +0300)]
mbox: If INBOX creation fails because of EACCES, try with privileged group
enabled.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 22:45:31 +0000 (01:45 +0300)]
Maildir: If dovecot-uidlist has wrong cached virtual size, remove it when we
detect it. If maildir filename has wrong W value, log a clear error about it.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 22:30:11 +0000 (01:30 +0300)]
timeout_add(0, ..) was looping in timeout handling code.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 22:00:27 +0000 (01:00 +0300)]
Make sure MAIL_RECENT flag is cleared from index file's flags so it can be
used in future for other purposes. Increased minor version number because of
this.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 21:47:27 +0000 (00:47 +0300)]
zlib plugin: Uncompress if the message begins with zlib header instead of
looking at the 'Z' flag. This fixes copying with hard links. Based on a
patch by Richard Platel.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 21:34:03 +0000 (00:34 +0300)]
LIST X-STATUS: Send LIST reply before STATUS reply.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 13:57:28 +0000 (16:57 +0300)]
dbox & cydir: If mailbox doesn't exist, return it as \nonexistent instead of
\noselect.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 13:56:47 +0000 (16:56 +0300)]
Mailbox flags could have been wrong with filesystem layout.
--HG--
branch : HEAD
Timo Sirainen [Sat, 24 May 2008 12:24:05 +0000 (15:24 +0300)]
LIST-EXTENDED: CHILDINFO shouldn't be quoted.
--HG--
branch : HEAD
Timo Sirainen [Sun, 18 May 2008 15:16:41 +0000 (18:16 +0300)]
Compile fix
--HG--
branch : HEAD
Timo Sirainen [Fri, 16 May 2008 23:25:40 +0000 (02:25 +0300)]
maildir uidlist: Include old and new UID in "Duplicate file entry" warning.
--HG--
branch : HEAD
Timo Sirainen [Fri, 16 May 2008 22:20:19 +0000 (01:20 +0300)]
Maildir error handling fixes if appending to uidlist failed.
--HG--
branch : HEAD
Timo Sirainen [Fri, 16 May 2008 22:12:34 +0000 (01:12 +0300)]
kqueue: If opening a file fails with ESTALE, don't log an error. It probably
just means the file was deleted by another NFS client.
--HG--
branch : HEAD
Timo Sirainen [Fri, 16 May 2008 22:00:22 +0000 (01:00 +0300)]
Replaced HAVE_ST_NSEC macro checks with more generic ST_?TIME_NSEC() macros
for getting the nanosecond and ST_NTIMES_EQUAL() macro for comparing them.
Added support for BSD st_?timespec fields.
--HG--
branch : HEAD
Timo Sirainen [Fri, 16 May 2008 21:40:31 +0000 (00:40 +0300)]
Fixed compiling on systems without nanoseconds in struct stat.
--HG--
branch : HEAD
Timo Sirainen [Fri, 16 May 2008 20:43:56 +0000 (23:43 +0300)]
If client tries to change the selected mailbox state while another command
is still running, wait until the command is finished.
--HG--
branch : HEAD
Timo Sirainen [Fri, 16 May 2008 09:09:44 +0000 (12:09 +0300)]
Added %T = trim modifier.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 06:54:03 +0000 (09:54 +0300)]
buffer test failed if stack wasn't cleared by OS.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 05:51:12 +0000 (08:51 +0300)]
If file isn't found from uidlist, refresh the file and look again in case it
was added after the previous mailbox sync (but after the previous view sync
that found new messages).
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 05:31:44 +0000 (08:31 +0300)]
net_is_in_network(): Fixed to work with big endian machines.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 05:31:20 +0000 (08:31 +0300)]
net_is_in_network(): Added IPv6 unit tests
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 04:53:11 +0000 (07:53 +0300)]
"Can't open log file" error was missing linefeed.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 04:43:13 +0000 (07:43 +0300)]
Moved net_is_in_network() to lib/network.c.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 04:01:40 +0000 (07:01 +0300)]
Show the new uidlist_* fields in maildir header.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 04:01:26 +0000 (07:01 +0300)]
Keep track of dovecot-uidlist mtime+size in index file. If it's up-to-date
(and unless indexes weren't updated at some point, it always is) and we're
saving a new message, don't bother reading the uidlist contents.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 03:05:39 +0000 (06:05 +0300)]
More maildir saving code cleanups
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 02:36:43 +0000 (05:36 +0300)]
Fix to previous cleanup.
--HG--
branch : HEAD
Timo Sirainen [Thu, 15 May 2008 02:22:56 +0000 (05:22 +0300)]
Code cleanup
--HG--
branch : HEAD
Timo Sirainen [Tue, 13 May 2008 06:50:27 +0000 (09:50 +0300)]
W=<vsize> is now always added to maildir filenames (the code was
accidentally commented out).
--HG--
branch : HEAD
Diego Liziero [Sun, 11 May 2008 12:49:02 +0000 (14:49 +0200)]
make outofmem_area static
--HG--
branch : HEAD
Timo Sirainen [Fri, 9 May 2008 16:04:16 +0000 (19:04 +0300)]
Removed unused variable popped_frame_pos. Patch by Diego Liziero.
--HG--
branch : HEAD
Timo Sirainen [Wed, 7 May 2008 19:44:45 +0000 (22:44 +0300)]
If SSL function fails and there are no errors, return "Unknown error"
instead of "Success" as the reason.
--HG--
branch : HEAD
Timo Sirainen [Mon, 5 May 2008 23:52:51 +0000 (02:52 +0300)]
If we lose a maildir filename, make sure the message gets marked as expunged
in index.
--HG--
branch : HEAD
Timo Sirainen [Mon, 5 May 2008 22:27:23 +0000 (01:27 +0300)]
Removed a bad assert.
--HG--
branch : HEAD
Timo Sirainen [Mon, 5 May 2008 15:41:32 +0000 (18:41 +0300)]
If inotify_add_watch() fails, log an error.
--HG--
branch : HEAD
Timo Sirainen [Mon, 5 May 2008 15:39:56 +0000 (18:39 +0300)]
If inotify instance limit is reached, give a hint about max_user_instances
file that can be increased.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 22:01:22 +0000 (01:01 +0300)]
Added tag 1.1.rc5 for changeset
3b09af6458e5
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 22:01:13 +0000 (01:01 +0300)]
Released v1.1.rc5.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 21:46:51 +0000 (00:46 +0300)]
Added ATTR_UNUSED to function parameters that won't be implemented for v1.1.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 21:37:52 +0000 (00:37 +0300)]
Free OpenSSL memory at deinit.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 21:24:54 +0000 (00:24 +0300)]
Removed accidentally committed debug sleep().
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 21:22:36 +0000 (00:22 +0300)]
ACL: If any of the flag set rights were given, STORE FLAGS allowed replacing
all flags (+/-FLAGS worked correctly).
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 21:18:56 +0000 (00:18 +0300)]
ACL: If we don't have 'w' access, don't allow creating new keywords.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 20:47:40 +0000 (23:47 +0300)]
ACL plugin was listing mailboxes directly from dovecot-acl-list. It was
supposed to be used only as an optimization to avoid looking into all
mailboxes to see which ones contained dovecot-acl files.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 20:45:42 +0000 (23:45 +0300)]
Added mailbox_name parameter to mailbox_list.iter_is_mailbox().
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 20:44:56 +0000 (23:44 +0300)]
mailbox_list_iter_update() was always setting subscribed flags to processed
nodes. Changed the API so the flags can be specified.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 20:43:18 +0000 (23:43 +0300)]
maildir++ LIST (subscribed): If listing finds a non-subscribed mailbox under
a subscribed one, mark the subscribed one as having children.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 20:09:14 +0000 (23:09 +0300)]
LIST-EXTENDED options were ignored.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 19:35:35 +0000 (22:35 +0300)]
DEBUG: Fixes to calculating minimum initial pool size in debug mode.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 19:05:21 +0000 (22:05 +0300)]
mbox: Always update sync_size when saving mails. We rely on sync_size for
getting the last message's physical size.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 18:55:41 +0000 (21:55 +0300)]
Getting "next message's offset" was broken if a new message had been added
recently. This broke message size calculations.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 18:54:27 +0000 (21:54 +0300)]
Added assert.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 18:54:03 +0000 (21:54 +0300)]
Error message improvements.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 17:42:51 +0000 (20:42 +0300)]
If mail_chroot ends with "/.", remove chroot prefix from home directory.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 16:39:04 +0000 (19:39 +0300)]
Memory pool allocation tweaks.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 16:38:11 +0000 (19:38 +0300)]
Use smaller sentries between allocations. Larger ones make "Growing memory
pool" warnings pointless, because most of the space is wasted on sentries. A
smaller sentry will still catch most of the buffer overflows.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 16:19:23 +0000 (19:19 +0300)]
mbox_lazy_writes: If errors are noticed in mbox, write changes to fix them
immediately to avoid constant errors in logs.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 15:19:57 +0000 (18:19 +0300)]
Handle dict_init() and dict_lookup() failures without crashing.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 15:12:28 +0000 (18:12 +0300)]
Added dict_db_config setting to point to a Berkeley DB config file.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 14:05:12 +0000 (17:05 +0300)]
Don't use krb5_get_error_message(), it doesn't work with Heimdal Kerberos.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 13:57:58 +0000 (16:57 +0300)]
mbox: Don't stop at From_-lines in the message bodies. Use Content-Length:
header to figure out if it belongs to a message body or not.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 11:35:51 +0000 (14:35 +0300)]
The previous gdb check should be done only with --enable-debug.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 01:27:41 +0000 (04:27 +0300)]
Support cross-realm krb5 authentication. Based on patch by Zachary Kotlarek.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 00:44:09 +0000 (03:44 +0300)]
When updating maildir quota create also missing maildirsize file and make
sure the limits in the header are up-to-date.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 00:22:49 +0000 (03:22 +0300)]
Don't restrict login process fd limits when running with GDB=1.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 00:09:18 +0000 (03:09 +0300)]
deliver -e: Write the error string to stderr also with tempfails.
--HG--
branch : HEAD
Timo Sirainen [Sun, 4 May 2008 00:00:32 +0000 (03:00 +0300)]
mail_uid and mail_gid settings weren't handled correctly.
--HG--
branch : HEAD
Timo Sirainen [Sat, 3 May 2008 23:53:55 +0000 (02:53 +0300)]
If fcntl() fails with EACCES, give a more understandable error message since
it's more similar to EAGAIN than anything to do with permissions.
--HG--
branch : HEAD
Timo Sirainen [Sat, 3 May 2008 23:44:01 +0000 (02:44 +0300)]
If auth process dies at startup, deinitialize logs properly so that any
pending log messages from auth process get logged before we kill ourself.
--HG--
branch : HEAD
Timo Sirainen [Sat, 3 May 2008 23:39:58 +0000 (02:39 +0300)]
Added "ignore" option to quota rules which causes the mailbox to be ignored
when counting quota.
--HG--
branch : HEAD
Timo Sirainen [Wed, 30 Apr 2008 17:18:37 +0000 (20:18 +0300)]
Fixed several memory leaks in ACL plugin.
--HG--
branch : HEAD
Timo Sirainen [Wed, 30 Apr 2008 14:06:19 +0000 (17:06 +0300)]
Use a larger initial mbox keywords pool size.
--HG--
branch : HEAD
Timo Sirainen [Wed, 30 Apr 2008 14:06:08 +0000 (17:06 +0300)]
Fixed updating first_recent_uid in index header.
--HG--
branch : HEAD
Timo Sirainen [Wed, 30 Apr 2008 14:05:19 +0000 (17:05 +0300)]
DEBUG: Make sure mempool's initial size is large enough to account for
extra sentries.
--HG--
branch : HEAD
Timo Sirainen [Fri, 25 Apr 2008 00:23:49 +0000 (03:23 +0300)]
Static attributes were broken in user_attrs.
--HG--
branch : HEAD
Timo Sirainen [Thu, 24 Apr 2008 23:10:36 +0000 (02:10 +0300)]
Fixes to handling recent flags with UIDVALIDITY changing.
--HG--
branch : HEAD
Timo Sirainen [Thu, 24 Apr 2008 22:49:39 +0000 (01:49 +0300)]
Reset cached \Recent flags if UIDVALIDITY changes, because we were using
UIDs in the cache.
--HG--
branch : HEAD
Timo Sirainen [Thu, 24 Apr 2008 22:31:05 +0000 (01:31 +0300)]
next_hook should be called after our hook is finished with its doings, that
way they get executed in the intended order. This should fix some problems
when multiple plugins are used.
--HG--
branch : HEAD
Timo Sirainen [Thu, 24 Apr 2008 22:29:15 +0000 (01:29 +0300)]
SIZEOF_ACL_MASK() macro wasn't used as it was intended. Changed so it
allocates enough memory for the struct.
--HG--
branch : HEAD
Timo Sirainen [Thu, 24 Apr 2008 21:52:56 +0000 (00:52 +0300)]
Expire plugin wasn't working unless expire_altmove was also defined.
--HG--
branch : HEAD
Timo Sirainen [Thu, 24 Apr 2008 14:24:32 +0000 (17:24 +0300)]
Better error handling for dnotify failures.
--HG--
branch : HEAD
Timo Sirainen [Thu, 24 Apr 2008 14:03:10 +0000 (17:03 +0300)]
If mailbox hasn't been opened when closing it, don't crash when trying to
flush dirty flags.
--HG--
branch : HEAD