search for: full_input

Displaying 7 results from an estimated 7 matches for "full_input".

Did you mean: file_input
2010 Sep 20
1
replace istream and unref the old one...
I Build a plugin, that do some stuffs with a email. To get the input istream, i use the "get_stream" function, like zlib does. I create a concat_stream, with the full_input[3]; struct istream *full_input[3]; //this like zlib input = imail->data.stream; //first input, using the input full_input[0] = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE | HEADER_FILTER_NO_CR, exclude_headers, 1, filter_callback, imail); // second input from another file. full...
2020 Nov 10
1
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
...ndex/index-mail-binary.c b/src/lib-storage/index/index-mail-binary.c > index 2577f1afe5..f7bf984916 100644 > --- a/src/lib-storage/index/index-mail-binary.c > +++ b/src/lib-storage/index/index-mail-binary.c > @@ -339,7 +339,7 @@ blocks_count_lines(struct binary_ctx *ctx, struct istream *full_input) > i_stream_skip(full_input, skip); > cur_block_offset += skip; > > - if (cur_block->input->eof) { > + if (i_stream_read_eof(cur_block->input)) { > /* go to the next block */ >...
2010 Jan 20
1
Plugin
Hello Everyone... Some time ago, i send some questions about plugins and concat 2 file handles. So, there is another questions about this. Timo Sirainen send to me this modification, in src/lib-storage/index/maildir/maildir-mail.c struct istream *full_input[3]; full_input[0] = i_stream_create_fd(fd, 0, TRUE); full_input[1] = i_stream_create_fd(fd1, 0, TRUE); full_input[2] = NULL; input = i_stream_create_concat(full_ input); This is necessary because my Header and Body is splited. This modification works fine. My question is: There is a way to do th...
2020 Nov 04
2
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
...< ---------------- 8< ---------------- 8< ---------------- 8< -------- (gdb) bt [...] #5 0x00007ffff7707a25 in i_panic ( format=format at entry=0x7ffff7b7b460 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:523 #6 0x00007ffff7ab5de7 in blocks_count_lines (full_input=0x5555557f1230, ctx=0x7fffffffdb80) at index-mail-binary.c:357 #7 index_mail_read_binary_to_cache (_mail=0x5555557e3b48, part=0x5555557e4678, include_hdr=<optimized out>, reason=<optimized out>, binary_r=0x7fffffffdc16, converted_r=0x7fffffffdc17) at index-mail-binary.c:395 #...
2020 Nov 10
0
imap dumping core in libdovecot-storage with assert "(block_count == 0 || block_idx+1 == block_count)"
...a/src/lib-storage/index/index-mail-binary.c b/src/lib-storage/index/index-mail-binary.c index 2577f1afe5..f7bf984916 100644 --- a/src/lib-storage/index/index-mail-binary.c +++ b/src/lib-storage/index/index-mail-binary.c @@ -339,7 +339,7 @@ blocks_count_lines(struct binary_ctx *ctx, struct istream *full_input) i_stream_skip(full_input, skip); cur_block_offset += skip; - if (cur_block->input->eof) { + if (i_stream_read_eof(cur_block->input)) { /* go to the next block */ if (++block_idx ==...
2013 Oct 15
3
Plugin issue with update from 2.0.19 to 2.1.17
Hello. Probably only Timo can help-me with this. I have a self-made plugin based on the zlib plugin that i use to cryptograph the messages at inbox. As a side-effect of the cryptography, my plugin changes the size of the message, but until 2.0.19 this works well with dovecot index and the W/S flags. But now, i'm going to upgrade to 2.1.17 and now i have these messages on log at my test
2013 Mar 16
3
crash with dovecot 2.2: Panic: Buffer full
...=0x66df90, data_r=data_r at entry=0x7fff684223b0, size_r=size_r at entry=0x7fff684223b8, threshold=threshold at entry=0) at istream.c:464 ret = <optimized out> read_more = false __FUNCTION__ = "i_stream_read_data" #17 0x00007f9d1bfd4f84 in blocks_count_lines (full_input=0x66df90, ctx=0x7fff684223c0) at index-mail-binary.c:319 block_idx = 0 p = <optimized out> size = 0 data = 0x0 ret = <optimized out> cur_block = 0x62d410 block_count = 1 cur_offset = 3944 skip = <optimized out&gt...