Displaying 20 results from an estimated 183 matches for "i_error".
2017 Sep 08
5
EOF from net_disconnect(fd)
...see if the plugin is indeed sending the EOF? Knowing that lets me know if I need to chase down the issue in the Go daemon code.
I?m no pro with C but I tried. The snippet from the plugin follows:
alarm(1);?????????????? ???
{
if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
? i_error("write(%s) failed: %m", socket_path);
? ret = -1;
} else {
? char res[1024];
? ret = net_receive(fd, res, sizeof(res)-1);
? if (ret < 0) {
??????????????? i_error("read(%s) failed: %m", socket_path);
? } else {
??????????????? res[ret] = '\0';
???????????????...
2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started
experimenting with the filesystem quotas, and I have a suggestion for
improvement. On my mail server, I use group-based quotas, and would
like to have Dovecot be able to report these quotas.
It should be simple to implement, requiring only changes to the
quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2017 Sep 08
1
EOF from net_disconnect(fd)
...code.
>>
>>
>>
>> I?m no pro with C but I tried. The snippet from the plugin follows:
>>
>>
>>
>> alarm(1);
>>
>> {
>>
>> if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
>>
>> i_error("write(%s) failed: %m", socket_path);
>>
>> ret = -1;
>>
>> } else {
>>
>> char res[1024];
>>
>> ret = net_receive(fd, res, sizeof(res)-1);
>>
>> if (ret < 0) {
>>
>> i_error("read(%s)...
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest.
I dont think I broke it..
Place into dovecot-source root as usual and compile with:
gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H
src/lib/liblib.a
As per Timo's instructions.
# imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX]
[clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO]
USER = template for
2014 Oct 10
1
fixes for quota support on NetBSD
...0000000 +0100
+++ src/plugins/quota/quota-fs.c 2013-08-06 01:00:32.000000000 +0200
@@ -672,34 +672,38 @@
{
struct quotakey qk;
struct quotaval qv;
+ struct quotahandle *qh;
+ int ret;
- if (root->qh == NULL) {
- if ((root->qh = quota_open(root->mount->mount_path)) == NULL) {
- i_error("cannot open quota for %s: %m",
- root->mount->mount_path);
- fs_quota_root_disable(root, group);
- return 0;
- }
- }
+ if ((qh = quota_open(root->mount->mount_path)) == NULL) {
+ i_error("cannot open quota for %s: %m",
+ root->mount->mount_path);
+...
2017 Sep 08
0
EOF from net_disconnect(fd)
...me know if I need to chase down the issue in the Go daemon code.
>
>
>
> I?m no pro with C but I tried. The snippet from the plugin follows:
>
>
>
> alarm(1);
>
> {
>
> if (net_transmit(fd, str_data(req), str_len(req)) < 0) {
>
> i_error("write(%s) failed: %m", socket_path);
>
> ret = -1;
>
> } else {
>
> char res[1024];
>
> ret = net_receive(fd, res, sizeof(res)-1);
>
> if (ret < 0) {
>
> i_error("read(%s) failed: %m", socket_path);
>
> } el...
2004 Apr 26
1
Setting "default_mail_env" Why is index->mailbox_path empty?
...p(mclay): open() failed with mbox file : No such file or directory
I tracked down where the error message is getting generated and added
some more printing:
In mbox-index.c I added:
int mbox_set_syscall_error(struct mail_index *index, const char *function)
{
i_assert(function != NULL);
i_error("index->mailbox_path: %%%s%%", index->mailbox_path);
i_error("index->dir: %%%s%%", index->dir);
i_error("index->filepath: %%%s%%", index->filepath);
i_error("index->control_dir: %%%s%%", index->control_dir);
in...
2010 Nov 26
1
Mailbox Delete
...namespace *ns;
struct mailbox *box;
ns = mail_namespace_find(namespaces, &name);
if (ns != NULL){
box = mailbox_alloc(ns->list, name, 0);
if (mailbox_delete(box) < 0) {
struct mail_storage *storage = mailbox_get_storage(box);
i_error("Can't delete mailbox %s: %s",
name,mail_storage_get_last_error(storage, NULL));
}
if (mailbox_mark_index_deleted(box, TRUE) < 0){
struct mail_storage *storage = mailbox_get_storage(box);
i_error("Can't delete INDEX %...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
.../* XFS */
- struct fs_disk_quota xdqblk;
+ if (strcmp(root->mount->type, "xfs") == 0) {
+ /* XFS */
+ struct fs_disk_quota xdqblk;
- if (quotactl(QCMD(Q_XGETQUOTA, USRQUOTA),
- root->mount->device_path,
- root->uid, (caddr_t)&xdqblk) < 0) {
- i_error("quotactl(Q_XGETQUOTA, %s) failed: %m",
- root->mount->device_path);
- quota_set_error(_root->setup->quota,
- "Internal quota error");
- return -1;
- }
+ if (quotactl(QCMD(Q_XGETQUOTA, args[i]),
+ root->mount->device_path,
+ what[i...
2009 Mar 24
1
Making changes to dovecot log levels
...const char *fmt, ...)
{
va_list va;
i_free(index->error);
if (fmt == NULL)
index->error = NULL;
else {
va_start(va, fmt);
index->error = i_strdup_vprintf(fmt, va);
va_end(va);
i_error("%s", index->error);
}
return -1;
}
changing the line :
i_error("%s", index->error);
to
i_warning("%s", index_error);
and for the file src/lib-storage/index/mbox/mbox-sync.c
changing this code
if (rec == NULL && uid < sync_ctx...
2008 Nov 23
3
dovecot >1.1.3 + antispam plugin issues
...x/istream-raw-mbox.c) helped and plugin was
working correctly, but only with Dovecot <=1.1.3.
if (stream->istream.v_offset -
rstream->hdr_offset + new_pos > rstream->mail_size) {
/* istream_raw_mbox_set_next_offset() used invalid
cached next_offset? */
i_error("Next message unexpectedly lost from %"PRIuUOFF_T,
rstream->hdr_offset + rstream->mail_size);
rstream->eof = TRUE;
rstream->corrupted = TRUE;
rstream->istream.istream.stream_errno = EINVAL;
stream->pos = 0;
return -...
2003 May 27
1
Postgres "issue"
Dear list,
I have a small issue with dovecot talking to a postgresql server:
If my postgres server get restarted, dovecot fails to reconnect to the
postgres server.
I run dovecot 0.99.9.1 (which is actually a cvs version of dovecot, of may 9
2003)
I have the same postgres version for the server as I use for the libraries.
Is it hard to get auto-reconnect to work?
Kind regards,
Maikel
2008 Nov 07
6
Cannot get the libwrap patch work
Hello there,
I have been trying to make the patch work for libwrap(TCP
Wrappers) posted on http://dovecot.org/patches
<http://dovecot.org/patches%20Patch%20of%201.1> Patch of 1.1 but could not
get it work. Any help will be highly appreciated. After compiling and
running it I get error "Error: login_tcp_wrappers can't be used because
Dovecot wasn't built with
2010 Oct 10
9
Dovecot 2.0.5 and BSDI 4.3 again
Right,
Changes made to dovecot-2.0.5/src/lib-master/master-service.c
conn.listen_fd = l->fd;
conn.fd = net_accept(l->fd, &conn.remote_ip, &conn.remote_port);
i_error("conn.fd: %d",conn.fd);
i_error("l->fd: %d",l->fd);
i_error("&conn.remote_ip: %d",&conn.remote_ip);
i_error("&conn.remote_port: %d",&conn.remote_port);
if (c...
2014 Feb 09
1
Dsync crash (v2.2.10, sdbox+sis → mbox)
...=
t->first_new_seq && seq <= t->last_new_seq)
dsync(user1): Error: Raw backtrace:
/usr/local/lib/dovecot/libdovecot.so.0(+0x6889a) [0x7f58a95a189a] ->
/usr/local/lib/dovecot/libdovecot.so.0(default_fatal_handler+0x32)
[0x7f58a95a19a2] -> /usr/local/lib/dovecot/libdovecot.so.0(i_error+0)
[0x7f58a955b1cf] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xc0287)
[0x7f58a98ca287] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(+0xc3145)
[0x7f58a98cd145] ->
/usr/local/lib/dovecot/libdovecot-storage.so.0(mail_cache_decision_state_update+0xb6)
[0x7f58a98bcb06] ->
/usr...
2010 Jul 07
5
problems with sieve under 2.0...
...nit): assertion failed: (box->opened)
Jul 7 13:18:00 bellman dovecot: lda(perry): Error: Raw backtrace: /usr/local/lib/dovecot/libdovecot.so.0 [0x7f55e07fedd2] -> /usr/local/lib/dovecot/libdovecot.so.0(i_syslog_fatal_handler+0x2b) [0x7f55e07fee7b] -> /usr/local/lib/dovecot/libdovecot.so.0(i_error+0) [0x7f55e07ff1e3] -> /usr/local/lib/dovecot/libdovecot-storage.so.0 [0x7f55e0cbdc31] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(index_transaction_begin+0x3f) [0x7f55e0cbdc7f] -> /usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_transaction_begin+0x13) [0x7f55e0c750d3] -> /...
2020 Oct 31
3
v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed)
On 10/18/20 10:28 PM, Aki Tuomi wrote:
>> doveadm(myuser at example.com): Panic: file mail-storage.c: line 2112 (mailbox_get_open_status): assertion failed: (box->opened)
...
> I can reproduce your problem with the `fts lookup` command. Luckily it's equivalent to running `doveadm search`. I'll open a bug about this.
Can you provide any status on the bug/fix?
Thanks.
2004 Dec 28
1
Debugging msync() failed errors
>From today's maillog:
maillog:Dec 28 09:29:40 aurora dovecot: IMAP(doug): msync() failed with index file /home/doug/Maildir/.projects.job591/dovecot.index: Invalid argument
maillog:Dec 28 09:30:21 aurora dovecot: IMAP(doug): msync() failed with index file /home/doug/Maildir/dovecot.index: Invalid argument
maillog:Dec 28 09:30:22 aurora dovecot: IMAP(doug): msync() failed with index file
2016 May 15
2
indexer-worker out of memory with vsz_limit=750 MB?!
...ol_system_realloc(134217728): Out of memory
May 15 12:14:51 dobby4 dovecot: indexer-worker(user at example.com): Error:
Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0xaa4b7)
[0x7f37027b84b7] -> /usr/lib/dovecot/libdovecot.so.0(+0xab851)
[0x7f37027b9851] -> /usr/lib/dovecot/libdovecot.so.0(i_error+0)
[0x7f37027b89a6] -> /usr/lib/dovecot/libdovecot.so.0(+0xd0405)
[0x7f37027de405] -> /usr/lib/dovecot/libdovecot.so.0(+0xa56e2)
[0x7f37027b36e2] -> /usr/lib/dovecot/libdovecot.so.0(+0xa5813)
[0x7f37027b3813] -> /usr/lib/dovecot/libdovecot.so.0(+0xa59e3)
[0x7f37027b39e3] -> /usr/lib/...
2013 Dec 13
1
File descriptor leak in sieve-extprograms
...ugins/sieve-extprograms/script-client-local.c
index 56d32f707c09..f54ef82132cf 100644
--- a/src/plugins/sieve-extprograms/script-client-local.c
+++ b/src/plugins/sieve-extprograms/script-client-local.c
@@ -139,7 +139,6 @@ static int script_client_local_close_output(struct script_client *sclient)
i_error("shutdown(%s, SHUT_WR) failed: %m", sclient->path);
return -1;
}
- sclient->fd_out = -1;
return 1;
}
diff --git a/src/plugins/sieve-extprograms/script-client.c b/src/plugins/sieve-extprograms/script-client.c
index 06a5d5d54ba9..6fefca4c9f26 100644
--- a/src/plugins/sieve-e...