Searched defs:parser (Results 1 - 25 of 83) sorted by relevance

1234

/dovecot/src/lib-mail/
H A Dtest-rfc2231-parser.c4 #include "rfc822-parser.h"
5 #include "rfc2231-parser.h"
30 struct rfc822_parser_context parser; local
34 test_begin("rfc2231 parser");
35 rfc822_parser_init(&parser, (const void *)input, strlen(input), NULL);
36 test_assert(rfc2231_parse(&parser, &result) == 0);
H A Dmessage-id.c5 #include "rfc822-parser.h"
10 struct rfc822_parser_context parser; local
13 rfc822_parser_init(&parser, (const unsigned char *)*msgid_p,
24 rfc822_skip_lwsp(&parser);
26 if (*parser.data == '"')
27 ret = rfc822_parse_quoted_string(&parser, msgid);
29 ret = rfc822_parse_dot_atom(&parser, msgid);
33 if (*parser.data != '@')
36 parser.data++;
37 rfc822_skip_lwsp(&parser);
[all...]
H A Dtest-message-part.c5 #include "message-parser.h"
68 struct message_parser_ctx *parser; local
77 pool = pool_alloconly_create("message parser", 10240);
80 parser = message_parser_init(pool, input, 0, 0);
81 while ((ret = message_parser_parse_next_block(parser, &block)) > 0) {
87 message_parser_deinit(&parser, &parts);
H A Dtest-rfc822-parser.c5 #include "rfc822-parser.h"
23 struct rfc822_parser_context parser; local
29 rfc822_parser_init(&parser, (const void *)tests[i].input,
31 test_assert_idx(rfc822_parse_quoted_string(&parser, str) == tests[i].ret, i);
50 struct rfc822_parser_context parser; local
56 rfc822_parser_init(&parser, (const void *)input, strlen(input), NULL);
57 while ((ret = rfc822_parse_content_param(&parser, &key, &value)) > 0 &&
H A Dmessage-date.c7 #include "rfc822-parser.h"
18 struct rfc822_parser_context parser; member in struct:message_date_parser_context
106 ret = ctx->parser.data == ctx->parser.end ? 0 :
107 rfc822_parse_atom(&ctx->parser, ctx->str);
126 rfc822_skip_lwsp(&ctx->parser);
132 if (*ctx->parser.data != ',')
134 ctx->parser.data++;
135 rfc822_skip_lwsp(&ctx->parser);
197 if (!IS_TIME_SEP(*ctx->parser
[all...]
H A Dmessage-snippet.c8 #include "message-parser.h"
98 struct message_parser_ctx *parser; local
111 parser = message_parser_init(pool_datastack_create(), input, 0, 0);
113 while ((ret = message_parser_parse_next_block(parser, &raw_block)) > 0) {
140 message_parser_deinit(&parser, &parts);
H A Dtest-message-header-parser.c7 #include "message-header-parser.h"
22 test_message_header_parser_one(struct message_header_parser_ctx *parser, argument
30 test_assert(message_parse_header_next(parser, &hdr) > 0);
47 test_assert(message_parse_header_next(parser, &hdr) > 0);
56 test_assert(message_parse_header_next(parser, &hdr) > 0);
71 test_assert(message_parse_header_next(parser, &hdr) > 0);
80 test_assert(message_parse_header_next(parser, &hdr) > 0);
99 test_assert(message_parse_header_next(parser, &hdr) > 0);
117 test_assert(message_parse_header_next(parser, &hdr) > 0);
123 test_assert(message_parse_header_next(parser,
133 struct message_header_parser_ctx *parser; local
170 struct message_header_parser_ctx *parser; local
203 struct message_header_parser_ctx *parser; local
247 struct message_header_parser_ctx *parser; local
270 struct message_header_parser_ctx *parser; local
[all...]
/dovecot/src/plugins/fts/
H A Dxml2text.c4 #include "message-parser.h"
5 #include "fts-parser.h"
11 struct fts_parser *parser; local
19 parser = fts_parser_html.try_init(&parser_context);
20 i_assert(parser != NULL);
26 parser->v.more(parser, &block);
35 parser->v.more(parser, &block);
H A Dfts-parser-html.c5 #include "message-parser.h"
7 #include "fts-parser.h"
10 struct fts_parser parser; member in struct:html_fts_parser
18 struct html_fts_parser *parser; local
23 parser = i_new(struct html_fts_parser, 1);
24 parser->parser.v = fts_parser_html;
25 parser->html2text = mail_html2text_init(0);
26 parser->output = buffer_create_dynamic(default_pool, 4096);
27 return &parser
33 struct html_fts_parser *parser = (struct html_fts_parser *)_parser; local
51 struct html_fts_parser *parser = (struct html_fts_parser *)_parser; local
[all...]
H A Dfts-parser.c6 #include "message-parser.h"
7 #include "fts-parser.h"
72 void fts_parser_more(struct fts_parser *parser, struct message_block *block) argument
74 if (parser->v.more != NULL)
75 parser->v.more(parser, block);
80 if (parser->utf8_output == NULL) {
81 parser->utf8_output =
84 buffer_set_used_size(parser->utf8_output, 0);
87 parser
96 struct fts_parser *parser = *_parser; local
[all...]
/dovecot/src/config/
H A Dconfig-parser.h10 struct setting_parser_context *parser; member in struct:config_module_parser
/dovecot/src/lib-imap/
H A Dtest-imap-parser.c5 #include "imap-parser.h"
12 struct imap_parser *parser; local
17 test_begin("imap parser crlf handling");
19 parser = imap_parser_create(input, NULL, 1024);
25 test_assert(imap_parser_read_args(parser, 0, 0, &args) == -2);
29 test_assert(imap_parser_read_args(parser, 0, 0, &args) == 1);
34 imap_parser_reset(parser);
38 test_assert(imap_parser_read_args(parser, 0, 0, &args) == -2);
41 test_assert(imap_parser_read_args(parser, 0, 0, &args) == -2);
44 test_assert(imap_parser_read_args(parser,
[all...]
H A Dimap-id.c7 #include "imap-parser.h"
101 struct imap_parser *parser; local
111 parser = imap_parser_create(input, NULL, (size_t)-1);
112 if (imap_parser_finish_line(parser, 0, 0, &args) <= 0)
117 imap_parser_unref(&parser);
H A Dtest-imap-envelope.c7 #include "message-parser.h"
121 struct message_parser_ctx *parser; local
129 parser = message_parser_init(pool, input,
133 while ((ret = message_parser_parse_next_block(parser, &block)) > 0) {
139 message_parser_deinit(&parser, &parts);
177 test_begin(t_strdup_printf("imap envelope parser [%u]", i));
H A Dtest-imap-bodystructure.c7 #include "message-parser.h"
384 struct message_parser_ctx *parser; local
391 parser = message_parser_init(pool, input,
395 while ((ret = message_parser_parse_next_block(parser, &block)) > 0) {
403 message_parser_deinit(&parser, &parts);
445 test_begin(t_strdup_printf("imap bodystructure parser [%u]", i));
481 test_begin(t_strdup_printf("imap bodystructure parser full [%u]", i));
/dovecot/src/lib-storage/
H A Dmail-search-build.h13 struct mail_search_parser *parser; member in struct:mail_search_build_context
17 /* error is either here or in parser */
30 struct mail_search_parser *parser, const char **charset,
H A Dmail-search-parser-cmdline.c4 #include "mail-search-parser-private.h"
7 struct mail_search_parser parser; member in struct:cmdline_mail_search_parser
16 struct cmdline_mail_search_parser *parser = local
19 if (parser->args[0] == NULL) {
20 if (parser->list_level != 0) {
27 if (strcmp(parser->args[0], "(") == 0) {
28 parser->list_level++;
29 parser->args++;
32 } else if (strcmp(parser->args[0], ")") == 0) {
33 if (parser
51 struct cmdline_mail_search_parser *parser = local
68 struct cmdline_mail_search_parser *parser = local
89 struct cmdline_mail_search_parser *parser; local
[all...]
H A Dmail-search-parser.c4 #include "mail-search-parser-private.h"
8 struct mail_search_parser *parser = *_parser; local
11 pool_unref(&parser->pool);
14 int mail_search_parse_key(struct mail_search_parser *parser, argument
19 if ((ret = parser->v.parse_key(parser, key_r)) <= 0)
22 parser->cur_key = *key_r;
26 int mail_search_parse_string(struct mail_search_parser *parser, argument
31 ret = parser->v.parse_string(parser, value_
40 mail_search_parse_skip_next(struct mail_search_parser *parser, const char *str) argument
46 mail_search_parser_get_error(struct mail_search_parser *parser) argument
[all...]
H A Dtest-mail-search-args-imap.c8 #include "mail-search-parser.h"
132 struct mail_search_parser *parser; local
136 parser = mail_search_parser_init_cmdline(t_strsplit(args, " "));
138 parser, &charset, &sargs, &error) < 0)
140 mail_search_parser_deinit(&parser);
H A Dmail-search-parser-imap.c5 #include "mail-search-parser-private.h"
14 struct mail_search_parser parser; member in struct:imap_mail_search_parser
22 struct imap_mail_search_parser *parser = local
24 const struct imap_arg *arg = parser->cur->args;
40 stack->prev = parser->cur;
43 parser->cur->args++;
44 parser->cur = stack;
49 parser->cur = parser->cur->prev;
55 parser
62 struct imap_mail_search_parser *parser = local
90 struct imap_mail_search_parser *parser = local
112 struct imap_mail_search_parser *parser; local
[all...]
H A Dtest-mail-search-args-simplify.c8 #include "mail-search-parser.h"
226 struct mail_search_parser *parser; local
230 parser = mail_search_parser_init_cmdline(t_strsplit(args, " "));
232 parser, &charset, &sargs, &error) < 0)
234 mail_search_parser_deinit(&parser);
/dovecot/src/lib-master/
H A Dtest-master-service-settings-cache.c5 #include "settings-parser.h"
64 const struct setting_parser_context *parser; local
77 test_assert(master_service_settings_cache_read(cache, &input, NULL, &parser, &error) == 0);
/dovecot/src/lib-oauth2/
H A Doauth2-private.h10 struct json_parser *parser; member in struct:oauth2_request
/dovecot/src/lib-smtp/
H A Dtest-smtp-reply-parser.c11 #include "smtp-reply-parser.h"
115 struct smtp_reply_parser *parser; local
122 parser = smtp_reply_parser_init(input, test->max_size);
129 (parser, &reply, &error)) > 0) {
133 (parser, test->enhanced_code.x > 0, &reply, &error)) > 0) {
174 smtp_reply_parser_deinit(&parser);
230 struct smtp_reply_parser *parser; local
238 parser = smtp_reply_parser_init(input, test->max_size);
244 while ((ret=smtp_reply_parse_ehlo(parser, &reply, &error)) > 0);
246 while ((ret=smtp_reply_parse_next(parser, FALS
[all...]
/dovecot/src/lib-http/
H A Dhttp-parser.c9 #include "http-parser.h"
74 void http_parser_init(struct http_parser *parser, argument
77 i_zero(parser);
78 parser->begin = data;
79 parser->cur = data;
80 parser->end = data + size;
83 void http_parse_ows(struct http_parser *parser) argument
86 if (parser->cur >= parser->end)
88 while (parser
94 http_parser_skip_token(struct http_parser *parser) argument
107 http_parse_token(struct http_parser *parser, const char **token_r) argument
118 http_parse_token_list_next(struct http_parser *parser, const char **token_r) argument
145 http_parse_quoted_string(struct http_parser *parser, const char **str_r) argument
200 http_parse_token_or_qstring(struct http_parser *parser, const char **word_r) argument
[all...]

Completed in 138 milliseconds

1234