search for: value_r

Displaying 20 results from an estimated 39 matches for "value_r".

2018 Jul 13
4
dsync panic
I think I get pretty much the same issue: dsync(support): Panic: file mailbox-attribute.c: line 360 (mailbox_attribute_get_stream): assertion failed: (value_r->value != NULL || value_r->value_stream != NULL) dsync(support): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xc9e06) [0x7fba8a348e06] -> /usr/lib64/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7fba8a348e4a] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [0x7fb...
2016 Dec 06
0
Segmentation fault in imap_bodystructure_is_plain_7bit
...1081 #4 0x00007f920a0fc498 in index_mail_parse_bodystructure (mail=mail at entry=0x234be60, field=field at entry=MAIL_CACHE_IMAP_BODYSTRUCTURE) at index-mail.c:1222 #5 0x00007f920a0fcf1c in index_mail_get_special (_mail=_mail at entry=0x234be60, field=field at entry=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=value_r at entry=0x7ffc1518fde8) at index-mail.c:1379 #6 0x00007f920a0b29cd in dbox_mail_get_special (_mail=_mail at entry=0x234be60, field=field at entry=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=value_r at entry=0x7ffc1518fde8) at dbox-mail.c:229 #7 0x00007f920a0a83f0 in mdbox_mail_get_special (_m...
2017 Jun 08
0
Segmentation fault in imap_bodystructure_is_plain_7bit
...1081 #4 0x00007f920a0fc498 in index_mail_parse_bodystructure (mail=mail at entry=0x234be60, field=field at entry=MAIL_CACHE_IMAP_BODYSTRUCTURE) at index-mail.c:1222 #5 0x00007f920a0fcf1c in index_mail_get_special (_mail=_mail at entry=0x234be60, field=field at entry=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=value_r at entry=0x7ffc1518fde8) at index-mail.c:1379 #6 0x00007f920a0b29cd in dbox_mail_get_special (_mail=_mail at entry=0x234be60, field=field at entry=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=value_r at entry=0x7ffc1518fde8) at dbox-mail.c:229 #7 0x00007f920a0a83f0 in mdbox_mail_get_special (_m...
2018 Feb 02
1
Dovecot 2.3.0, Panic: file mailbox-attribute.c: line 362 (mailbox_attribute_get_stream): assertion failed: (value_r->value != NULL || value_r->value_stream != NULL)
...dsync-local(USERNAME): Error: read(DEST_SERVER.example.com) failed: EOF (last sent=mail_change (EOL), last recv=mailbox) Destination server: Feb 2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Panic: file mailbox-attribute.c: line 362 (mailbox_attribute_get_stream): assertion failed: (value_r->value != NULL || value_r->value_stream != NULL) Feb 2 14:15:23 DEST_SERVER dovecot: dsync-server(USERNAME): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xc8cc4) [0x7fa861bc0cc4] -> /usr/lib64/dovecot/libdovecot.so.0(+0xc8d7e) [0x7fa861bc0d7e] -> /usr/lib64/dovecot/lib...
2018 Jul 07
4
dsync panic
...rom dovecot 2.2.19 to 2.3.2. "doveadm backup" worked fine in v 2.2.19, but now panics (user with shared folder): /opt/dovecot/bin/doveadm backup -u testuser -1 sdbox:/tmp/testuser dsync(standl2): Panic: file mailbox-attribute.c: line 360 (mailbox_attribute_get_stream): assertion failed: (value_r->value != NULL || value_r->value_stream != NULL) dsync(standl2): Error: Raw backtrace: /opt/dovecot/lib/dovecot/libdovecot.so.0(+0xcb6fa) [0x7f43679986fa] -> /opt/dovecot/lib/dovecot/libdovecot.so.0(+0xcb769) [0x7f4367998769] -> /opt/dovecot/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f4...
2006 Apr 14
0
Quota again
...t? With these changes the values are correct (Indeed the quota-fs is correct, the quota-maildir is at least better...) Best regards, Stian --- quota-fs.c.old 2006-04-14 22:46:17.000000000 +0200 +++ quota-fs.c 2006-04-14 13:55:26.000000000 +0200 @@ -285,9 +285,9 @@ } #endif *value_r = (uint64_t)dqblk.dqb_curblocks * - (uint64_t)root->mount->blk_size / 1024; + (uint64_t)root->mount->blk_size / 1024 / 4096; *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * - (uint64_t)root->mount->blk_size / 1024; + (uin...
2010 Feb 10
1
Get some headers Variables
Hello Everyone again !! I'm putting more functions in my plugin, and would need to access a value of one variable that is going to put in the header, how can I get this value by dovecot? example, I have the header: X-ThereisMy: yes How can I get this value inside a plugin ? There is something like getHeaderVar("X-ThereisMy") ?
2010 Jun 29
1
NFS(4) IMAP Quota
...+; if (root->root.quota->set->debug) { i_info("quota-fs: host=%s, path=%s, uid=%s, %s", @@ -366,17 +371,24 @@ /* convert the results from blocks to bytes */ const rquota *rq = &result.getquota_rslt_u.gqr_rquota; - if (rq->rq_active) { - if (bytes) { - *value_r = (uint64_t)rq->rq_curblocks * - (uint64_t)rq->rq_bsize; + if (bytes) { + *value_r = (uint64_t)rq->rq_curblocks * + (uint64_t)rq->rq_bsize; + if (rq->rq_bsoftlimit) { *limit_r = (uint64_t)rq->rq_bsoftlimit * (uint64_t)rq->rq_bsize; } else { - *valu...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...l; + mail = getenv("MAIL"); + static const char *resources[] = { + QUOTA_NAME_STORAGE, + NULL, + NULL + }; + if (strstr(mail, "maildir") != NULL) { + resources[1] = QUOTA_NAME_MESSAGES; + } return resources; } @@ -192,82 +203,108 @@ struct quotctl ctl; #endif + int value_r_t, limit_r_t, value_r_c=0, limit_r_c=0; + char args[] = {USRQUOTA, GRPQUOTA}; + int what[] = {root->uid, root->gid}; + short i; + int quota_error=0; + *value_r = 0; *limit_r = 0; - if (strcasecmp(name, QUOTA_NAME_STORAGE) != 0 || root->mount == NULL) + if (root->mount == NULL)...
2018 Feb 07
0
dovecot-2.22.33.2, segfault on empty emails
...ry=0x55a2a1706618 "header Message-ID (Mail not cached, highest cached seq=361 uid=289064: reset_id=1312894688)") at index-mail-headers.c:460 #23 0x00007f7447e50b10 in index_mail_get_raw_headers (mail=mail at entry=0x55a2a17d7118, field=field at entry=0x7f744476ba33 "Message-ID", value_r=value_r at entry=0x7ffc16d91960) at index-mail-headers.c:659 #25 0x00007f7447dbc1ac in mail_get_first_header (mail=mail at entry=0x55a2a17d7118, field=field at entry=0x7f744476ba33 "Message-ID", value_r=value_r at entry=0x7ffc16d919e0) at mail.c:191 #26 0x00007f744476aaf9 in mail_log_...
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
2013 Nov 05
1
Message parser loops on certain messages (e.g. with a trailing CR character)
...xbecd00, field=MAIL_CACHE_IMAP_BODYSTRUCTURE) at index-mail.c:895 #12 0x00007f94f4c6aedb in index_mail_parse_bodystructure (mail=0xbecd00, field=MAIL_CACHE_IMAP_BODYSTRUCTURE) at index-mail.c:1046 #13 0x00007f94f4c6b4a5 in index_mail_get_special (_mail=0xbecd00, field=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=0x7fff2141d958) at index-mail.c:1170 #14 0x00007f94f4bfab53 in maildir_mail_get_special (_mail=0xbecd00, field=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=0x7fff2141d958) at maildir-mail.c:570 #15 0x00007f94f4c36ea1 in mail_get_special (mail=0xbecd00, field=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=0x7fff2...
2019 Mar 26
4
v2.2.27 Panic: file rfc822-parser.h: line 23 (rfc822_parser_deinit): assertion failed: (ctx->data <= ctx->end)
...;optimized out> header_ctx = 0x0 stream = 0x5563c13eff60 old_offset = 0 ---Type <return> to continue, or q <return> to quit--- str = 0x0 #17 0x00007f3a7c6a76c1 in index_mail_get_special (_mail=_mail at entry=0x5563c13e6de0, field=<optimized out>, value_r=value_r at entry=0x7ffdc7616380) at index-mail.c:1432 mail = 0x5563c13e6de0 data = 0x5563c13e6f60 cache_fields = <optimized out> error = 0x7f3a7c6ac092 <search_more+882> "\204\300A\213\207", <incomplete sequence \310> str = 0x4...
2018 Jul 13
0
dsync panic
On 13 Jul 2018, at 21.39, Wolfgang Rosenauer <wrosenauer at gmail.com <mailto:wrosenauer at gmail.com>> wrote: > > I think I get pretty much the same issue: > > dsync(support): Panic: file mailbox-attribute.c: line 360 (mailbox_attribute_get_stream): assertion failed: (value_r->value != NULL || value_r->value_stream != NULL) > dsync(support): Error: Raw backtrace: /usr/lib64/dovecot/libdovecot.so.0(+0xc9e06) [0x7fba8a348e06] -> /usr/lib64/dovecot/libdovecot.so.0(default_fatal_handler+0x2a) [0x7fba8a348e4a] -> /usr/lib64/dovecot/libdovecot.so.0(i_fatal+0) [...
2007 Feb 18
1
Possible Bug in quota-fs.c
...i, I'm using filesystem quotas with dovecot 1.0rc22 on my Linux 2.4.27 box. The quota limit gets correctly reported in kilobytes to the client but the amount of used space is reported in megabytes. In quota-fs.c I noticed that only the currently used space is divided by 1024: Line 241: *value_r = dqblk.dqb_curblocks / 1024; *limit_r = dqblk.dqb_bsoftlimit; After removing /1024 everything works fine. regards, Martin -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not...
2007 Jan 29
0
dovecot patch for filesystem quota
...s BSDs. I don't know for AIX. --- src/plugins/quota/quota-fs.c.orig 2007-01-28 22:35:32.000000000 +0100 +++ src/plugins/quota/quota-fs.c 2007-01-28 22:36:12.000000000 +0100 @@ -250,8 +250,8 @@ quota_set_error(_root->setup->quota, "Internal quota error"); return -1; } - *value_r = (uint64_t)dqblk.dqb_curblocks * 1024 / DEV_BSIZE; - *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * 1024 / DEV_BSIZE; + *value_r = (uint64_t)dqblk.dqb_curblocks * DEV_BSIZE / 1024; + *limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE / 1024; #else /* Solaris */ if (root->mount->fd == -1...
2009 Aug 11
1
dovecot-1.2.3 (managesieve) crash with backtrace
...il_parse_header_init" #16 0x080a4c40 in index_mail_parse_headers (mail=0x94264b8, headers=0x94319b0) at index-mail-headers.c:431 input = (struct istream *) 0x9423900 old_offset = 0 #17 0x080a500f in index_mail_get_raw_headers (mail=0x94264b8, field=0xb7e736f4 "Message-ID", value_r=0xbf98d608) at index-mail-headers.c:625 headers = {0xb7e736f4 "Message-ID", 0x0} value = <value optimized out> headers_ctx = (struct mailbox_header_lookup_ctx *) 0x0 data = <value optimized out> field_idx = 12 dest = (string_t *) 0x942cbf8 i = <value optimized ou...
2008 Aug 29
1
Dovecot-1.1.2 assertion failure in preparsed_parse_next_header_init
...8122668, field=MAIL_CACHE_IMAP_BODYSTRUCTURE) at index-mail.c:753 #10 0x08098026 in index_mail_parse_bodystructure (mail=0x8122668, field=MAIL_CACHE_IMAP_BODYSTRUCTURE) at index-mail.c:860 #11 0x0809852c in index_mail_get_special (_mail=0x8122668, field=MAIL_FETCH_IMAP_BODYSTRUCTURE, value_r=0xbfb4b370) at index-mail.c:983 #12 0x08078a18 in maildir_mail_get_special (_mail=0x6, field=0, value_r=0xbfb4b370) at maildir-mail.c:437 #13 0x080643f4 in fetch_bodystructure (ctx=0x810b708, mail=0x8122668, context=0x0) at imap-fetch.c:450 #14 0x08064960 in imap_fetch (ctx=0x810b708...
2016 Aug 19
2
Crash on opening mailbox
...zed out> value_start = <optimized out> value_end = <optimized out> i = <optimized out> first_line_idx = <optimized out> #7 index_mail_get_raw_headers (mail=mail at entry=0x7d7e80, field=field at entry=0x7f328d663446 "Message-Id", value_r=value_r at entry=0x7ffc6c9df540) at index-mail-headers.c:656 _mail = <optimized out> headers = {0x7e41f0 "0B~", 0x7f328d88b2d8 <mail_get_first_header at got.plt> ""} value = 0x1001 <error: Cannot access memory at address 0x1001>...
2014 Oct 10
1
fixes for quota support on NetBSD
...amp;qk, &qv) != 0) { + if (quota_get(qh, &qk, &qv) != 0) { if (errno == ESRCH) { fs_quota_root_disable(root, group); return 0; } i_error("quotactl(Q_GETQUOTA, %s) failed: %m", root->mount->mount_path); - return -1; + ret = -1; + goto end; } *value_r = qv.qv_usage * DEV_BSIZE; *limit_r = qv.qv_softlimit * DEV_BSIZE; - return 1; + ret = 1; +end: + quota_close(qh); + return ret; } #endif -------------- next part -------------- $NetBSD: patch-src_plugins_quota_quota-fs.h,v 1.4 2013/08/05 23:12:42 bouyer Exp $ fix support for NetBSD's...