Displaying 4 results from an estimated 4 matches for "i_stream_create_limit".
2008 Feb 19
3
compiling error imaptest.c
...maptest -g -Wall -W -I.
-Isrc/lib-mail -Isrc/lib -Isrc/lib-imap -Isrc/lib-storage/index/mbox
-DHAVE_CONFIG_H src/lib-storage/index/mbox/mbox-from.o
src/lib-imap/libimap.a src/lib-mail/libmail.a src/lib/liblib.a
imaptest.c: In client_append function:
imaptest.c:1492: error: too many arguments for i_stream_create_limit
function
2009 Apr 03
2
Implementation of editheaders in dovecot
...stream;
struct message_size hdr_size;
struct message_size body_size;
DPRINTF("Func `%s' called", __FUNCTION__);
message_get_body_size(stream, &body_size, NULL);
message_get_header_size(stream, &hdr_size, NULL);
i_stream_seek(stream, hdr_size.physical_size);
stream = i_stream_create_limit(stream, body_size.physical_size);
i_stream_unref(&tmp);
return stream;
}
inline static struct istream *
header_filter(struct istream * stream, ARRAY_TYPE(const_string) *
headers_arr,
unsigned int count)
{
const char * const * headers = NULL;
DPRINTF("Func `%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
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...led = TRUE;
+
+ if (!nonsync || ctx->args != NULL)
+ return catenate_finish(ctx, TRUE);
+
+ /* we have to read this -- and any following -- nonsynced
+ literals so we don't treat the literal data as commands. */
+ i_assert(ctx->cat.literal_input == NULL);
+ ctx->cat.literal_input = i_stream_create_limit(ctx->client->input,
+ ctx->cat.literal_size);
+
+ ctx->message_input = TRUE;
+ ctx->cmd->func = catenate_continue_cancel_literal;
+ ctx->cmd->context = ctx;
+ return catenate_continue_cancel_literal(ctx->cmd);
+}
+
+static bool catenate_finish(struct cmd_appen...