search for: mail_storage_set_crit

Displaying 18 results from an estimated 18 matches for "mail_storage_set_crit".

2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
.../* set the received_date by modifying mtime */ + buf.actime = ioloop_time; + buf.modtime = ctx->received_date; + if (utime(new_path, &buf) < 0) { + ctx->failed = TRUE; + mail_storage_set_critical(STORAGE(ctx->mbox->storage), + "utime(%s) failed: %m", new_path); + } + } + } else { ret = -1; if (ENOSPACE(errno)) { mail_stor...
2010 Oct 05
2
Feature request for maildir style boxes
...not attempt to set the gid per parent in the first place. src/lib-storage/index/maildir/maildir-uidlist.c 1412: if (box->file_create_gid != (gid_t)-1 && fchown(fd, (uid_t)-1, box->file_create_gid) < 0) { if (errno == EPERM) { mail_storage_set_critical(box->storage, "%s", eperm_error_get_chgrp("fchown", temp_path, box->file_create_gid, box->file_create_gid_origin)); } else...
2005 Jan 24
2
Problem with incorrect permissions with shared folders
Hi, I'm seeing strange permissions when using an email client to create a new sub folder in a shared folder. This is dovecot-1.0test61 I have a directory /data/mail/shared owner=root group=shared permissions=2770 I have a file /data/mail/shared/dovecot-shared owner=root group-shared permissions=2660 User fred in in group shared (in /etc/group) My understanding
2008 Jan 26
2
dovecot HEAD, assertion failed after 7193:e5af14239137 changeset
Hi! Using HEAD, and after the 7193:e5af14239137 changeset (Store physical message sizes also to dovecot-uidlist if needed.) I'm getting this: (gdb) bt full #0 0x0a0a80dd in kill () from /usr/lib/libc.so.41.0 No symbol table info available. #1 0x0a0e04a7 in abort () at /usr/src/lib/libc/stdlib/abort.c:65 p = (struct atexit *) 0x84992000 cleanup_called = 0 mask =
2006 Jun 12
6
1.0 roadmap
...t renaming them from end to beginning, which probably will at some point start causing syscall failures which will fill up logs. Probably should be done: - mbox: dirty mode should be stored to index - quota code should probably be always doing some quota_set_critical() instead of using mail_storage_set_critical(), so that quota_last_error() would work properly - rfc2557 support for BODYSTRUCTURE, as specified by RFC3501 - keywords: add some limits to how many there can be - don't return \* in PERMANENTFLAGS when we're full - mbox: how well does dirty sync + status work? it reads the...
2008 Jun 26
1
group ownership of new shared folders
...:55 2008 +0300 +++ b/src/lib-storage/index/maildir/maildir-storage.c Thu Jun 26 02:42:54 2008 +0100 @@ -539,6 +539,10 @@ static int maildir_create_shared(struct umask(old_mask); return -1; } + if (chown(dir, (uid_t)-1, gid) < 0) { + mail_storage_set_critical(storage, + "chown(%s) failed: %m", dir); + } for (i = 0; i < N_ELEMENTS(maildir_subdirs); i++) { path = t_strconcat(dir, "/", maildir_subdirs[i], NULL); if (chown(path, (uid_t)-1, gid) < 0) {
2007 Jul 16
0
Can't compile mbox-snarf-plugin.c on AIX 5.3
...: .mailbox_transaction_commit ld: 0711-317 ERROR: Undefined symbol: .mailbox_open ld: 0711-317 ERROR: Undefined symbol: .buffer_append_zero ld: 0711-317 ERROR: Undefined symbol: .buffer_get_space_unsafe ld: 0711-317 ERROR: Undefined symbol: .mailbox_close ld: 0711-317 ERROR: Undefined symbol: .mail_storage_set_critical ld: 0711-317 ERROR: Undefined symbol: .buffer_write ld: 0711-317 ERROR: Undefined symbol: .home_expand ld: 0711-317 ERROR: Undefined symbol: .p_strdup ld: 0711-317 ERROR: Undefined symbol: mail_storage_module_id ld: 0711-317 ERROR: Undefined symbol: hook_mail_storage_created ld: 0711-345 U...
2006 Feb 16
1
ugly hack to make maildir quotas work
...t; if (ctx->failed && ctx->fd == -1) { /* tmp file creation failed */ @@ -264,6 +266,9 @@ "fsync(%s) failed: %m", path); ctx->failed = TRUE; } + if (fstat(ctx->fd, &st) < 0) { + ctx->failed = TRUE; + } if (close(ctx->fd) < 0) { mail_storage_set_critical(STORAGE(ctx->mbox->storage), "close(%s) failed: %m", path); @@ -297,6 +302,8 @@ if (mail_set_seq(dest_mail, ctx->seq) < 0) return -1; + + ((struct index_mail *)dest_mail)->data.physical_size = st.st_size; } t_pop(); /k -- Josh "Koshua&...
2006 Apr 21
0
Bug: quota-maildir.c, array accessed out of bounds
...hile loop is always only executed once: char buf[5120+1]; ... size = 0; while ((ret = read(fd, buf, sizeof(buf)-1)) != 0) { if (ret < 0) { if (errno == ESTALE) break; mail_storage_set_critical(storage, "read(%s) failed: %m", path); } size += ret; } if (ret < 0 || size == sizeof(buf)-1) { /* error / recalculation needed. */ (void)close(fd);...
2006 Jul 14
0
dovecot 1.00 RC2 bugs
...+ src/plugins/quota/quota-maildir.c Thu Jul 13 11:33:58 2006 @@ -246,11 +248,12 @@ return -1; } - if (file_dotlock_replace(&dotlock, 0) < 0) { + if (file_dotlock_replace(&dotlock, DOTLOCK_REPLACE_FLAG_DONT_CLOSE_FD) < 0) { mail_storage_set_critical(storage, "file_dotlock_replace(%s) failed: %m", path); return -1; } + root->fd = fd; return 0; } ======================================================== This patch preserves fd after writing recalculated maildirsize fi...
2010 Oct 08
1
patch for mysterious maildir symlink error
...age/index/maildir/maildir-util.c @@ -91,7 +91,7 @@ { struct stat st; - if (lstat(path, &st) == 0 && (st.st_mode & S_IFLNK) != 0) { + if (lstat(path, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { /* most likely a symlink pointing to a nonexistent file */ mail_storage_set_critical(&mbox->storage->storage, "Maildir: Symlink destination doesn't exist: %s", path);
2014 Feb 18
0
Possible error in function mailbox_autocreate
Hi! in mailbox_autocreate: if (mailbox_create(box, NULL, FALSE) < 0) { errstr = mailbox_get_last_error(box, &error); if (error != MAIL_ERROR_NOTFOUND) { <<< May be MAIL_ERROR_EXISTS should be here? mail_storage_set_critical(box->storage, "Failed to autocreate mailbox %s: %s", box->vname, errstr); return -1; } Some time I got this error when two connections tries to create INBOX at same time. ______ ? ?????????, ?????? ???????
2014 Apr 24
1
maildir compressed message fix patch
...if (i_stream_stat(cstream, TRUE, &stp) < 0) + { + return -1; + } + st = *stp; /* dumb copy */ + i_stream_unref(&cstream); + } + else + { if (stat(path, &st) < 0) { if (errno == ENOENT) return 0; mail_storage_set_critical(&mbox->storage->storage, "stat(%s) failed: %m", path); return -1; - } + } + } + i_stream_unref(&fstream); newpath = t_strdup_printf("%s/%s,S=%"PRIuUOFF_T"%s", dir,...
2009 Jul 08
1
readdir and rename don't mix; patch included
...PPLE - rename can cause readdir to fail with EINVAL; force + quiet rescan unless this is the final such rescan already */ + if (errno == EINVAL && move_count && !final) + move_count = MAILDIR_RENAME_RESCAN_COUNT + 1; + else /* APPLE reduce code deltas */ if (errno != 0) { mail_storage_set_critical(storage, "readdir(%s) failed: %m", path); @@ -772,7 +778,8 @@ that new/ dir is checked as well. it's a good idea anyway. */ unsigned int count = 0; - while ((ret = maildir_scan_dir(ctx, TRUE)) > 0) { + while ((ret = maildir_scan_dir(ctx, TRUE, + coun...
2005 Sep 06
3
Misbehavior with Dovecot and Mulberry
I'm having a bit of misbehavior wherein Dovecot seems to refuse to cooperate with my Mulberry MUA. By and large, everything works great. I can move mail back and forth happily. I can compose a note and copy the outgoing mail to my Dovecot "Sent" folder using my default Mulberry settings. But if I reply or forward a mail, I get a Mulberry error popup saying that it
2006 Jun 18
10
1.0 RC1 status
...it? Can someone try? You can test it with maildir by setting mail_save_crlf=yes, saving a somewhat large mail and FETCHing it (and truss that it really uses sendfile) - LDA: empty mail gives an error. - quota code should probably be always doing some quota_set_critical() instead of using mail_storage_set_critical(), so that quota_last_error() would work properly - rfc2557 support for BODYSTRUCTURE, as specified by RFC3501 - keywords: add some limits to how many there can be - don't return \* in PERMANENTFLAGS when we're full - mbox: how well does dirty sync + status work? it reads the...
2004 Mar 25
2
imap indexing error when moving multiple mails
Hi, I've got an 'interesting' problem with a dovecot 0.99.10.4 setup on NetBSD/i386 1.6ZK. dovecot is serving imap only at the moment, using mbox format mailboxes. '/etc/dovecot.conf' is pretty vanilla - among the modified settings, mail_read_mmaped = yes maildir_check_content_changes = yes mbox_lock = fcntl could be relevant. Anyway - from time to time when I move a
2006 Apr 26
2
being courier_imap compatible
OK, I am running (for many years now) an existing courier_imap maildir ++ setup with exim as the MTA. Has been fine. I have my own custom ldap schema for user account definition and authorization. I installed dovecot 1.0 beta 7 as a test and have it listening on a different port. I would like, if possible, to set things up so that a user could use either dovecot or courier. Having to