Searched refs:parser (Results 1 - 25 of 109) sorted by relevance

12345

/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...]
H A Dhttp-date.c92 http_date_parse_sp(struct http_date_parser *parser) argument
94 if (parser->cur >= parser->end)
96 if (parser->cur[0] != ' ')
98 parser->cur++;
103 http_date_parse_number(struct http_date_parser *parser, argument
108 if (parser->cur >= parser->end || !i_isdigit(parser->cur[0]))
111 *number_r = parser
124 http_date_parse_word(struct http_date_parser *parser, int maxchars, string_t **word_r) argument
151 http_date_parse_year(struct http_date_parser *parser) argument
163 http_date_parse_month(struct http_date_parser *parser) argument
184 http_date_parse_day(struct http_date_parser *parser) argument
193 http_date_parse_time_of_day(struct http_date_parser *parser) argument
227 http_date_parse_time_gmt(struct http_date_parser *parser) argument
250 http_date_parse_format_imf_fixdate(struct http_date_parser *parser) argument
286 http_date_parse_format_rfc850(struct http_date_parser *parser) argument
332 http_date_parse_format_asctime(struct http_date_parser *parser) argument
377 http_date_parse_format_any(struct http_date_parser *parser) argument
434 struct http_date_parser parser; local
[all...]
H A Dhttp-header-parser.c8 #include "http-parser.h"
11 #include "http-header-parser.h"
48 struct http_header_parser *parser; local
50 parser = i_new(struct http_header_parser, 1);
51 parser->input = input;
54 parser->limits = *limits;
56 if (parser->limits.max_size == 0)
57 parser->limits.max_size = (uoff_t)-1;
58 if (parser->limits.max_field_size == 0)
59 parser
73 struct http_header_parser *parser = *_parser; local
83 http_header_parser_reset(struct http_header_parser *parser) argument
91 http_header_parse_name(struct http_header_parser *parser) argument
112 http_header_parse_ows(struct http_header_parser *parser) argument
123 http_header_parse_content(struct http_header_parser *parser) argument
160 http_header_parse(struct http_header_parser *parser) argument
290 http_header_parse_next_field(struct http_header_parser *parser, const char **name_r, const unsigned char **data_r, size_t *size_r, const char **error_r) argument
[all...]
H A Dhttp-request-parser.c6 #include "http-parser.h"
7 #include "http-message-parser.h"
8 #include "http-request-parser.h"
26 struct http_message_parser parser; member in struct:http_request_parser
44 struct http_request_parser *parser; local
49 parser = i_new(struct http_request_parser, 1);
59 if (parser->max_target_length == 0)
60 parser->max_target_length = HTTP_REQUEST_DEFAULT_MAX_TARGET_LENGTH;
72 http_message_parser_init(&parser->parser, inpu
79 struct http_request_parser *parser = *_parser; local
88 http_request_parser_restart(struct http_request_parser *parser, pool_t pool) argument
96 http_request_parse_method(struct http_request_parser *parser) argument
120 http_request_parse_target(struct http_request_parser *parser) argument
165 http_request_parse(struct http_request_parser *parser, pool_t pool) argument
285 http_request_parse_request_line(struct http_request_parser *parser, pool_t pool) argument
324 http_request_parser_message_error(struct http_request_parser *parser) argument
344 http_request_parser_pending_payload( struct http_request_parser *parser) argument
353 http_request_parse_expect_header(struct http_request_parser *parser, struct http_request *request, const struct http_header_field *hdr) argument
472 http_request_parse_headers(struct http_request_parser *parser, struct http_request *request) argument
492 http_request_parse_finish_payload( struct http_request_parser *parser, enum http_request_parse_error *error_code_r, const char **error_r) argument
513 http_request_parse_next(struct http_request_parser *parser, pool_t pool, struct http_request *request, enum http_request_parse_error *error_code_r, const char **error_r) argument
[all...]
H A Dhttp-response-parser.c6 #include "http-parser.h"
8 #include "http-message-parser.h"
9 #include "http-response-parser.h"
26 struct http_message_parser parser; member in struct:http_response_parser
40 struct http_response_parser *parser; local
46 parser = i_new(struct http_response_parser, 1);
47 http_message_parser_init(&parser->parser,
49 return parser;
54 struct http_response_parser *parser local
63 http_response_parser_restart(struct http_response_parser *parser) argument
71 http_response_parse_status(struct http_response_parser *parser) argument
91 http_response_parse_reason(struct http_response_parser *parser) argument
111 _reply_sanitize(struct http_message_parser *parser) argument
144 http_response_parse(struct http_response_parser *parser) argument
243 http_response_parse_status_line(struct http_response_parser *parser) argument
309 http_response_parser_get_last_offset(struct http_response_parser *parser) argument
314 http_response_parse_next(struct http_response_parser *parser, enum http_response_payload_type payload_type, struct http_response *response, const char **error_r) argument
[all...]
H A Dhttp-message-parser.c8 #include "http-parser.h"
10 #include "http-header-parser.h"
13 #include "http-message-parser.h"
17 void http_message_parser_init(struct http_message_parser *parser, argument
21 i_zero(parser);
22 parser->input = input;
23 i_stream_ref(parser->input);
25 parser->header_limits = *hdr_limits;
26 parser->max_payload_size = max_payload_size;
27 parser
30 http_message_parser_deinit(struct http_message_parser *parser) argument
39 http_message_parser_restart(struct http_message_parser *parser, pool_t pool) argument
64 http_message_parser_get_pool(struct http_message_parser *parser) argument
71 http_message_parse_version(struct http_message_parser *parser) argument
98 http_message_parse_finish_payload(struct http_message_parser *parser) argument
134 http_message_parse_header(struct http_message_parser *parser, const char *name, const unsigned char *data, size_t size) argument
361 http_message_parse_headers(struct http_message_parser *parser) argument
432 http_message_parse_body(struct http_message_parser *parser, bool request) argument
[all...]
H A Dhttp-auth.c7 #include "http-parser.h"
32 http_parse_token68(struct http_parser *parser, const char **token68_r) argument
41 if (parser->cur >= parser->end || !http_char_is_token68(*parser->cur))
43 first = parser->cur++;
44 while (parser->cur < parser->end && http_char_is_token68(*parser->cur))
45 parser
56 http_parse_auth_param(struct http_parser *parser, const char **param_r, const char **value_r) argument
91 http_parse_auth_params(struct http_parser *parser, ARRAY_TYPE(http_auth_param) *params) argument
129 struct http_parser parser; local
199 struct http_parser parser; local
[all...]
/dovecot/src/lib/
H A Djson-parser.c10 #include "json-parser.h"
47 static int json_parser_read_more(struct json_parser *parser) argument
49 uoff_t cur_highwater = parser->input->v_offset +
50 i_stream_get_data_size(parser->input);
54 i_assert(parser->highwater_offset <= cur_highwater);
56 if (parser->error != NULL)
59 if (parser->highwater_offset == cur_highwater) {
60 ret = i_stream_read(parser->input);
62 parser->error = "Token too large";
65 if (ret < 0 && !parser
86 json_parser_update_input_pos(struct json_parser *parser) argument
113 struct json_parser *parser; local
129 struct json_parser *parser = *_parser; local
155 json_parse_whitespace(struct json_parser *parser) argument
173 json_skip_string(struct json_parser *parser) argument
206 json_parse_unicode_escape(struct json_parser *parser) argument
277 json_parse_string(struct json_parser *parser, bool allow_skip, const char **value_r) argument
337 json_parse_digits(struct json_parser *parser) argument
350 json_parse_int(struct json_parser *parser) argument
368 json_parse_number(struct json_parser *parser, const char **value_r) argument
398 json_parse_atom(struct json_parser *parser, const char *atom) argument
417 json_parse_denest(struct json_parser *parser) argument
449 json_parse_close_object(struct json_parser *parser, enum json_type *type_r) argument
458 json_parse_close_array(struct json_parser *parser, enum json_type *type_r) argument
466 json_parser_object_open(struct json_parser *parser) argument
475 json_try_parse_next(struct json_parser *parser, enum json_type *type_r, const char **value_r) argument
636 json_parse_next(struct json_parser *parser, enum json_type *type_r, const char **value_r) argument
661 json_parse_skip_next(struct json_parser *parser) argument
675 json_strinput_destroyed(struct json_parser *parser) argument
683 json_try_parse_stream_start(struct json_parser *parser, struct istream **input_r) argument
715 json_parse_next_stream(struct json_parser *parser, struct istream **input_r) argument
[all...]
H A Diso8601-date.c39 iso8601_date_parse_number(struct iso8601_date_parser *parser, argument
44 if (parser->cur >= parser->end || !i_isdigit(parser->cur[0]))
47 *number_r = parser->cur[0] - '0';
48 parser->cur++;
51 if (parser->cur >= parser->end || !i_isdigit(parser->cur[0]))
53 *number_r = ((*number_r) * 10) + parser
60 iso8601_date_parse_secfrac(struct iso8601_date_parser *parser) argument
83 is08601_date_parse_time_offset(struct iso8601_date_parser *parser) argument
133 is08601_date_parse_full_time(struct iso8601_date_parser *parser) argument
175 is08601_date_parse_full_date(struct iso8601_date_parser *parser) argument
212 iso8601_date_parse_date_time(struct iso8601_date_parser *parser) argument
239 struct iso8601_date_parser parser; local
[all...]
H A Duri-util.c134 uri_parse_pct_encoded_data(struct uri_parser *parser,
145 parser->error = "Unexpected URI boundary after '%'";
150 parser->error = p_strdup_printf(parser->pool,
159 parser->error = p_strdup_printf(parser->pool,
167 if (!parser->allow_pct_nul && *ch_r == '\0') {
168 parser->error =
175 int uri_parse_pct_encoded(struct uri_parser *parser, argument
179 (parser,
183 uri_parse_unreserved_char(struct uri_parser *parser, unsigned char *ch_r) argument
196 uri_parse_unreserved(struct uri_parser *parser, string_t *part) argument
217 uri_parse_unreserved_pct(struct uri_parser *parser, string_t *part) argument
241 uri_data_decode(struct uri_parser *parser, const char *data, const char *until, const char **decoded_r) argument
280 uri_parse_scheme(struct uri_parser *parser, const char **scheme_r) argument
315 struct uri_parser parser; local
434 uri_parse_reg_name(struct uri_parser *parser, const char **reg_name_r) argument
567 uri_parse_host_name(struct uri_parser *parser, const char **host_name_r) argument
696 uri_parse_host(struct uri_parser *parser, struct uri_host *host) argument
811 uri_parse_authority(struct uri_parser *parser, struct uri_authority *auth) argument
817 uri_parse_slashslash_authority(struct uri_parser *parser, struct uri_authority *auth) argument
823 uri_parse_host_authority(struct uri_parser *parser, struct uri_authority *auth) argument
829 uri_parse_slashslash_host_authority(struct uri_parser *parser, struct uri_authority *auth) argument
835 uri_parse_path_segment(struct uri_parser *parser, const char **segment_r) argument
871 uri_parse_path(struct uri_parser *parser, int *relative_r, const char *const **path_r) argument
970 uri_parse_query(struct uri_parser *parser, const char **query_r) argument
1010 uri_parse_fragment(struct uri_parser *parser, const char **fragment_r) argument
1051 uri_parser_init_data(struct uri_parser *parser, pool_t pool, const unsigned char *data, size_t size) argument
1060 uri_parser_init(struct uri_parser *parser, pool_t pool, const char *uri) argument
1067 uri_parser_get_tmpbuf(struct uri_parser *parser, size_t size) argument
1076 uri_parse_absolute_generic(struct uri_parser *parser, enum uri_parse_flags flags) argument
1163 struct uri_parser parser; local
[all...]
/dovecot/src/lib-smtp/
H A Dsmtp-reply-parser.c8 #include "smtp-parser.h"
10 #include "smtp-reply-parser.h"
93 smtp_reply_parser_error(struct smtp_reply_parser *parser, argument
98 i_free(parser->error);
101 parser->error = i_strdup_vprintf(format, args);
108 struct smtp_reply_parser *parser; local
110 parser = i_new(struct smtp_reply_parser, 1);
111 parser->max_reply_size =
113 parser->input = input;
115 parser
121 struct smtp_reply_parser *parser = *_parser; local
132 smtp_reply_parser_set_stream(struct smtp_reply_parser *parser, struct istream *input) argument
143 smtp_reply_parser_restart(struct smtp_reply_parser *parser) argument
155 smtp_reply_parse_code(struct smtp_reply_parser *parser, unsigned int *code_r) argument
182 smtp_reply_parse_textstring(struct smtp_reply_parser *parser) argument
204 smtp_reply_parse_ehlo_domain(struct smtp_reply_parser *parser) argument
226 smtp_reply_parse_ehlo_greet(struct smtp_reply_parser *parser) argument
275 smtp_reply_parse_enhanced_code(struct smtp_reply_parser *parser, const char **pos) argument
346 smtp_reply_parser_finish_line(struct smtp_reply_parser *parser) argument
361 smtp_reply_parse_more(struct smtp_reply_parser *parser) argument
523 smtp_reply_parse(struct smtp_reply_parser *parser) argument
558 smtp_reply_parse_next(struct smtp_reply_parser *parser, bool enhanced_codes, struct smtp_reply **reply_r, const char **error_r) argument
592 smtp_reply_parse_ehlo(struct smtp_reply_parser *parser, struct smtp_reply **reply_r, const char **error_r) argument
[all...]
H A Dsmtp-command-parser.c9 #include "smtp-parser.h"
10 #include "smtp-command-parser.h"
53 smtp_command_parser_error(struct smtp_command_parser *parser, argument
59 parser->state.state = SMTP_COMMAND_PARSE_STATE_ERROR;
61 i_free(parser->error);
62 parser->error_code = code;
65 parser->error = i_strdup_vprintf(format, args);
73 struct smtp_command_parser *parser; local
75 parser = i_new(struct smtp_command_parser, 1);
76 parser
99 struct smtp_command_parser *parser = *_parser; local
111 smtp_command_parser_restart(struct smtp_command_parser *parser) argument
119 smtp_command_parser_set_stream(struct smtp_command_parser *parser, struct istream *input) argument
140 smtp_command_parse_identifier(struct smtp_command_parser *parser) argument
165 smtp_command_parse_parameters(struct smtp_command_parser *parser) argument
217 smtp_command_parse_line(struct smtp_command_parser *parser) argument
332 smtp_command_parse(struct smtp_command_parser *parser) argument
377 smtp_command_parser_pending_data(struct smtp_command_parser *parser) argument
385 smtp_command_parse_finish_data(struct smtp_command_parser *parser) argument
429 smtp_command_parse_next(struct smtp_command_parser *parser, const char **cmd_name_r, const char **cmd_params_r, enum smtp_command_parse_error *error_code_r, const char **error_r) argument
473 smtp_command_parse_data_with_size(struct smtp_command_parser *parser, uoff_t size) argument
491 smtp_command_parse_data_with_dot(struct smtp_command_parser *parser) argument
509 smtp_command_parse_auth_response(struct smtp_command_parser *parser, const char **line_r, enum smtp_command_parse_error *error_code_r, const char **error_r) argument
[all...]
H A Dsmtp-parser.c8 #include "smtp-parser.h"
120 void smtp_parser_init(struct smtp_parser *parser, argument
123 parser->pool = pool;
124 parser->begin = parser->cur = (unsigned char *)data;
125 parser->end = (unsigned char *)data + strlen(data);
126 parser->error = NULL;
134 smtp_parser_parse_ldh_str(struct smtp_parser *parser, argument
137 const unsigned char *pbegin = parser->cur, *palnum;
145 while (parser
163 smtp_parser_parse_domain(struct smtp_parser *parser, const char **value_r) argument
228 smtp_parser_parse_snum(struct smtp_parser *parser, string_t *literal, uint8_t *octet_r) argument
259 smtp_parser_parse_ipv4_address(struct smtp_parser *parser, string_t *literal, struct in_addr *ip4_r) argument
291 smtp_parser_parse_address_literal(struct smtp_parser *parser, const char **value_r, struct ip_addr *ip_r) argument
413 smtp_parser_parse_quoted_string(struct smtp_parser *parser, const char **value_r) argument
484 smtp_parser_skip_atom(struct smtp_parser *parser) argument
497 smtp_parser_parse_atom(struct smtp_parser *parser, const char **value_r) argument
511 smtp_parser_parse_string(struct smtp_parser *parser, const char **value_r) argument
543 smtp_parser_parse_xtext(struct smtp_parser *parser, string_t *out) argument
[all...]
H A Dsmtp-syntax.c6 #include "smtp-parser.h"
19 struct smtp_parser parser; local
27 smtp_parser_init(&parser, pool_datastack_create(), string);
29 if ((ret=smtp_parser_parse_string(&parser, value_r)) < 0) {
31 *error_r = parser.error;
34 if (parser.cur < parser.end) {
86 struct smtp_parser parser; local
97 smtp_parser_init(&parser, pool_datastack_create(), xtext);
99 if ((ret=smtp_parser_parse_xtext(&parser, valu
148 struct smtp_parser parser; local
168 smtp_parse_ehlo_line(struct smtp_parser *parser, const char **key_r, const char *const **params_r) argument
241 struct smtp_parser parser; local
[all...]
H A Dsmtp-command-parser.h22 void smtp_command_parser_set_stream(struct smtp_command_parser *parser,
28 int smtp_command_parse_next(struct smtp_command_parser *parser,
33 smtp_command_parse_data_with_size(struct smtp_command_parser *parser,
36 smtp_command_parse_data_with_dot(struct smtp_command_parser *parser);
37 bool smtp_command_parser_pending_data(struct smtp_command_parser *parser);
40 int smtp_command_parse_auth_response(struct smtp_command_parser *parser,
H A Dsmtp-reply-parser.h12 void smtp_reply_parser_set_stream(struct smtp_reply_parser *parser,
15 int smtp_reply_parse_next(struct smtp_reply_parser *parser,
18 int smtp_reply_parse_ehlo(struct smtp_reply_parser *parser,
H A Dsmtp-address.c6 #include "smtp-parser.h"
45 struct smtp_parser parser; member in struct:smtp_address_parser
54 smtp_parser_parse_dot_string(struct smtp_parser *parser, argument
57 const unsigned char *pbegin = parser->cur;
65 if (parser->cur >= parser->end ||
66 (!smtp_char_is_atext(*parser->cur) && *parser->cur != '.'))
68 parser->cur++;
70 while (parser
80 smtp_parse_localpart(struct smtp_parser *parser, const char **localpart_r) argument
95 struct smtp_parser *parser = &aparser->parser; local
137 smtp_parse_source_route(struct smtp_parser *parser) argument
183 struct smtp_parser *parser = &aparser->parser; local
239 struct smtp_parser *parser = &aparser->parser; local
[all...]
/dovecot/src/lib-storage/
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 Dmail-search-parser.h8 /* Build a parser parsing the given imap args. NOTE: args must not be freed
9 until this parser is destroyed. */
12 /* Build a parser parsing the given command line args. */
16 void mail_search_parser_deinit(struct mail_search_parser **parser);
21 int mail_search_parse_key(struct mail_search_parser *parser,
24 int mail_search_parse_string(struct mail_search_parser *parser,
28 bool mail_search_parse_skip_next(struct mail_search_parser *parser,
32 const char *mail_search_parser_get_error(struct mail_search_parser *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 Dmail-search-parser-private.h4 #include "mail-search-parser.h"
7 int (*parse_key)(struct mail_search_parser *parser, const char **key_r);
8 int (*parse_string)(struct mail_search_parser *parser,
10 bool (*parse_skip_next)(struct mail_search_parser *parser,
/dovecot/src/lib-imap/
H A Dimap-parser.c7 #include "imap-parser.h"
51 size_t cur_pos; /* parser position in input buffer */
74 struct imap_parser *parser; local
76 parser = i_new(struct imap_parser, 1);
77 parser->refcount = 1;
78 parser->pool = pool_alloconly_create(MEMPOOL_GROWING"IMAP parser",
80 parser->input = input;
81 parser->output = output;
82 parser
89 imap_parser_ref(struct imap_parser *parser) argument
98 struct imap_parser *parser = *_parser; local
110 imap_parser_enable_literal_minus(struct imap_parser *parser) argument
115 imap_parser_reset(struct imap_parser *parser) argument
141 imap_parser_set_streams(struct imap_parser *parser, struct istream *input, struct ostream *output) argument
148 imap_parser_get_error(struct imap_parser *parser, enum imap_parser_error *error_r) argument
157 imap_parser_skip_to_next(struct imap_parser *parser, const unsigned char **data, size_t *data_size) argument
177 imap_arg_create(struct imap_parser *parser) argument
186 imap_parser_open_list(struct imap_parser *parser) argument
197 imap_parser_close_list(struct imap_parser *parser) argument
228 imap_parser_strdup(struct imap_parser *parser, const void *data, size_t len) argument
238 imap_parser_save_arg(struct imap_parser *parser, const unsigned char *data, size_t size) argument
304 is_valid_atom_char(struct imap_parser *parser, char chr) argument
322 imap_parser_read_atom(struct imap_parser *parser, const unsigned char *data, size_t data_size) argument
352 imap_parser_read_string(struct imap_parser *parser, const unsigned char *data, size_t data_size) argument
396 imap_parser_literal_end(struct imap_parser *parser) argument
433 imap_parser_read_literal(struct imap_parser *parser, const unsigned char *data, size_t data_size) argument
479 imap_parser_read_literal_data(struct imap_parser *parser, const unsigned char *data, size_t data_size) argument
531 imap_parser_is_next_resp_text(struct imap_parser *parser) argument
549 imap_parser_is_next_text(struct imap_parser *parser) argument
565 imap_parser_read_text(struct imap_parser *parser, const unsigned char *data, size_t data_size) argument
583 imap_parser_read_arg(struct imap_parser *parser) argument
747 finish_line(struct imap_parser *parser, unsigned int count, const struct imap_arg **args_r) argument
774 imap_parser_read_args(struct imap_parser *parser, unsigned int count, enum imap_parser_flags flags, const struct imap_arg **args_r) argument
820 imap_parser_get_last_literal_size(struct imap_parser *parser, ARRAY_TYPE(imap_arg_list) **list_r) argument
848 imap_parser_get_literal_size(struct imap_parser *parser, uoff_t *size_r) argument
860 imap_parser_read_last_literal(struct imap_parser *parser) argument
882 imap_parser_finish_line(struct imap_parser *parser, unsigned int count, enum imap_parser_flags flags, const struct imap_arg **args_r) argument
903 imap_parser_read_word(struct imap_parser *parser) argument
[all...]
/dovecot/src/plugins/fts/
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-tika.c10 #include "message-parser.h"
12 #include "fts-parser.h"
23 struct fts_parser parser; member in struct:tika_fts_parser
88 struct tika_fts_parser *parser)
90 i_assert(parser->payload == NULL);
96 parser->payload = i_stream_create_from_data("", 0);
99 parser->payload = response->payload;
105 if (parser->user->mail_debug) {
107 mail_user_plugin_getenv(parser->user, "fts_tika"),
110 parser
87 fts_tika_parser_response(const struct http_response *response, struct tika_fts_parser *parser) argument
140 struct tika_fts_parser *parser; local
174 struct tika_fts_parser *parser = (struct tika_fts_parser *)_parser; local
241 struct tika_fts_parser *parser = (struct tika_fts_parser *)_parser; local
[all...]

Completed in 41 milliseconds

12345