Searched defs:reply (Results 1 - 25 of 77) sorted by relevance

1234

/dovecot/src/submission/
H A Dsubmission-commands.c11 #include "smtp-reply.h"
25 - Keep predictable errors consistent as much as possible; send our own reply
30 const struct smtp_reply *reply, struct smtp_reply *reply_r)
32 *reply_r = *reply;
34 switch (reply->status) {
57 smtp_reply_log(reply));
66 if (!smtp_reply_has_enhanced_code(reply)) {
68 SMTP_REPLY_ENH_CODE(reply->status / 100, 0, 0);
29 client_command_handle_proxy_reply(struct client *client, const struct smtp_reply *reply, struct smtp_reply *reply_r) argument
H A Dcmd-noop.c24 struct smtp_reply reply; local
26 if (!client_command_handle_proxy_reply(client, proxy_reply, &reply))
32 smtp_server_reply_forward(cmd, &reply);
H A Dcmd-rset.c25 struct smtp_reply reply; local
31 if (!client_command_handle_proxy_reply(client, proxy_reply, &reply))
34 /* forward reply */
35 smtp_server_reply_forward(cmd, &reply);
H A Dcmd-rcpt.c39 struct smtp_reply reply; local
45 if (!client_command_handle_proxy_reply(client, proxy_reply, &reply))
51 reply.enhanced_code = SMTP_REPLY_ENH_CODE(2, 1, 5);
54 /* forward reply */
55 smtp_server_reply_forward(cmd, &reply);
H A Dcmd-vrfy.c25 struct smtp_reply reply; local
27 if (!client_command_handle_proxy_reply(client, proxy_reply, &reply))
35 reply.enhanced_code = SMTP_REPLY_ENH_CODE(2, 5, 0);
42 smtp_server_reply_forward(cmd, &reply);
H A Dcmd-helo.c47 struct smtp_server_reply *reply; local
50 reply = smtp_server_reply_create_ehlo(cmd->cmd);
70 smtp_server_reply_ehlo_add(reply, "8BITMIME");
71 smtp_server_reply_ehlo_add(reply, "AUTH");
74 smtp_server_reply_ehlo_add(reply, "BINARYMIME");
75 smtp_server_reply_ehlo_add_param(reply,
77 smtp_server_reply_ehlo_add(reply, "CHUNKING");
79 smtp_server_reply_ehlo_add(reply, "DSN");
80 smtp_server_reply_ehlo_add(reply,
82 smtp_server_reply_ehlo_add(reply,
116 struct smtp_reply reply; local
[all...]
H A Dcmd-mail.c60 struct smtp_reply reply; local
66 if (!client_command_handle_proxy_reply(client, proxy_reply, &reply))
74 reply.enhanced_code = SMTP_REPLY_ENH_CODE(2, 1, 0);
77 /* forward reply */
78 smtp_server_reply_forward(cmd, &reply);
/dovecot/src/imap/
H A Dcmd-enable.c10 string_t *reply; local
15 reply = t_str_new(64);
16 str_append(reply, "* ENABLED");
26 str_append(reply, " CONDSTORE");
30 str_append(reply, " QRESYNC");
33 if (str_len(reply) > 9)
34 client_send_line(cmd->client, str_c(reply));
H A Dcmd-store.c135 const char *set, *reply, *tagged_reply; local
165 reply = "NO CONDSTORE failed: Mailbox is read-only.";
167 reply = "OK Store ignored with read-only mailbox.";
170 0, reply);
H A Dcmd-urlfetch.c176 struct imap_urlauth_fetch_reply *reply)
183 imap_append_astring(response, reply->url);
185 if ((reply->flags & IMAP_URLAUTH_FETCH_FLAG_EXTENDED) == 0) {
189 str_printfa(response, " {%"PRIuUOFF_T"}", reply->size);
191 i_assert(reply->size == 0 || reply->input != NULL);
199 if ((reply->flags & IMAP_URLAUTH_FETCH_FLAG_BODYPARTSTRUCTURE) != 0 &&
200 reply->bodypartstruct != NULL) {
202 str_append(response, reply->bodypartstruct);
206 if ((reply
175 cmd_urlfetch_url_success(struct client_command_context *cmd, struct imap_urlauth_fetch_reply *reply) argument
252 cmd_urlfetch_url_callback(struct imap_urlauth_fetch_reply *reply, bool last, void *context) argument
[all...]
/dovecot/src/lib-smtp/
H A Dsmtp-reply.h7 x==9 means invalid/missing enhanced code in reply
25 smtp_reply_has_enhanced_code(const struct smtp_reply *reply) argument
27 return reply->enhanced_code.x > 1 && reply->enhanced_code.x < 6;
31 smtp_reply_is_success(const struct smtp_reply *reply) argument
33 return ((reply->status / 100) == 2);
37 smtp_reply_is_remote(const struct smtp_reply *reply) argument
39 return (reply->status >= 200 && reply->status < 560);
43 smtp_reply_is_temp_fail(const struct smtp_reply *reply) argument
[all...]
H A Dsmtp-server-cmd-helo.c59 struct smtp_server_reply *reply; local
108 /* set generic EHLO reply if none is provided */
109 reply = smtp_server_reply_create_ehlo(cmd->cmd);
112 smtp_server_reply_ehlo_add(reply, "8BITMIME");
115 smtp_server_reply_ehlo_add(reply, "BINARYMIME");
117 smtp_server_reply_ehlo_add(reply, "CHUNKING");
119 smtp_server_reply_ehlo_add(reply, "DSN");
121 smtp_server_reply_ehlo_add(reply,
124 smtp_server_reply_ehlo_add(reply, "PIPELINING");
126 smtp_server_reply_ehlo_add(reply, "STARTTL
[all...]
H A Dsmtp-reply.c7 #include "smtp-reply.h"
9 void smtp_reply_init(struct smtp_reply *reply, unsigned int status, argument
17 i_zero(reply);
18 reply->status = status;
19 reply->text_lines = text_lines;
22 void smtp_reply_printf(struct smtp_reply *reply, unsigned int status, argument
28 smtp_reply_init(reply, status, t_strdup_vprintf(format, args));
33 smtp_reply_get_enh_code(const struct smtp_reply *reply) argument
35 if (reply->enhanced_code.x < 2)
37 if (reply
45 smtp_reply_write(string_t *out, const struct smtp_reply *reply) argument
83 smtp_reply_write_one_line(string_t *out, const struct smtp_reply *reply) argument
105 smtp_reply_log(const struct smtp_reply *reply) argument
[all...]
H A Dtest-smtp-reply-parser.c11 #include "smtp-reply-parser.h"
16 const char *reply; member in struct:smtp_reply_parse_valid_test
26 /* Valid reply tests */
31 .reply = "220\r\n",
35 .reply = "220 \r\n",
39 .reply = "220 OK\r\n",
43 .reply = "550 Requested action not taken: mailbox unavailable\r\n",
48 .reply =
65 .reply =
76 .reply
116 struct smtp_reply *reply; local
179 const char *reply; member in struct:smtp_reply_parse_invalid_test
231 struct smtp_reply *reply; local
[all...]
/dovecot/src/auth/
H A Dpassdb-blocking.c25 passdb_blocking_auth_worker_reply_parse(struct auth_request *request, const char *reply) argument
30 args = t_strsplit_tabescaped(reply);
72 "Received invalid reply from worker: %s", reply);
77 verify_plain_callback(const char *reply, void *context) argument
82 result = passdb_blocking_auth_worker_reply_parse(request, reply);
103 static bool lookup_credentials_callback(const char *reply, void *context) argument
109 result = passdb_blocking_auth_worker_reply_parse(request, reply);
115 "Received reply from worker without "
144 set_credentials_callback(const char *reply, voi argument
[all...]
H A Duserdb-blocking.c17 static bool user_callback(const char *reply, void *context) argument
23 if (strncmp(reply, "FAIL\t", 5) == 0) {
25 args = reply + 5;
26 } else if (strncmp(reply, "NOTFOUND\t", 9) == 0) {
28 args = reply + 9;
29 } else if (strncmp(reply, "OK\t", 3) == 0) {
31 username = reply + 3;
41 i_error("BUG: auth-worker sent invalid user reply");
69 static bool iter_callback(const char *reply, void *context) argument
73 if (strncmp(reply, "*\
[all...]
H A Dauth-penalty.c64 static void auth_penalty_anvil_callback(const char *reply, void *context) argument
71 if (reply == NULL) {
78 } else if (sscanf(reply, "%u %lu", &penalty, &last_penalty) != 2) {
79 i_error("Invalid PENALTY-GET reply: %s", reply);
H A Dpassdb-cache.c56 static bool passdb_cache_verify_plain_callback(const char *reply, void *context) argument
61 result = passdb_blocking_auth_worker_reply_parse(request, reply);
H A Dpassdb-imap.c28 passdb_imap_get_failure_result(const struct imapc_command_reply *reply) argument
30 const char *key = reply->resp_text_key;
51 passdb_imap_login_callback(const struct imapc_command_reply *reply, argument
57 switch (reply->state) {
62 result = passdb_imap_get_failure_result(reply);
64 "%s", reply->text_full);
70 "%s", reply->text_full);
/dovecot/src/lib-imap/
H A Dimap-id.c122 void imap_id_log_reply_append(string_t *reply, const char *key, argument
125 if (str_len(reply) > 0)
126 str_append(reply, ", ");
127 str_append(reply, str_sanitize(key, IMAP_ID_KEY_MAX_LEN));
128 str_append_c(reply, '=');
129 str_append(reply, value == NULL ? "NIL" : str_sanitize(value, 80));
136 string_t *reply; local
145 reply = t_str_new(256);
165 imap_id_log_reply_append(reply, key, value);
169 return str_len(reply)
[all...]
/dovecot/src/master/
H A Dmaster-client.c88 const char *reply = "+\n"; local
93 reply = t_strdup_printf("-Unknown service: %s\n", args[i]);
99 o_stream_send_str(client->conn.output, reply);
/dovecot/src/imap-login/
H A Dclient-authenticate.c37 const struct client_auth_reply *reply,
61 url.userid = reply->destuser;
63 url.host.name = reply->host;
64 if (reply->port != 143)
65 url.port = reply->port;
35 imap_client_auth_result(struct client *client, enum client_auth_result result, const struct client_auth_reply *reply, const char *text) argument
/dovecot/src/submission-login/
H A Dclient-authenticate.c25 struct smtp_server_reply *reply; local
27 reply = smtp_server_reply_create_ehlo(cmd->cmd);
29 smtp_server_reply_ehlo_add(reply, "8BITMIME");
44 smtp_server_reply_ehlo_add_param(reply,
48 smtp_server_reply_ehlo_add_param(reply,
50 smtp_server_reply_ehlo_add(reply,
52 smtp_server_reply_ehlo_add(reply,
56 smtp_server_reply_ehlo_add_param(reply,
60 smtp_server_reply_ehlo_add(reply, "SIZE");
64 smtp_server_reply_ehlo_add(reply, "STARTTL
[all...]
/dovecot/src/lib-master/
H A Dmaster-auth.c104 const struct master_auth_reply *reply; local
127 /* reply is now read */
128 reply = (const void *)conn->buf;
131 if (conn->tag != reply->tag)
132 i_error("master(%s): Received reply with unknown tag %u",
133 conn->path, reply->tag);
137 conn->callback(reply, conn->context);
/dovecot/src/imap-urlauth/
H A Dimap-urlauth.c136 struct auth_user_reply reply; local
142 auth_user_fields_parse(extra_fields, pool_datastack_create(), &reply);
145 if (reply.uid != (uid_t)-1 && net_getunixcred(client->fd, &cred) == 0 &&
146 reply.uid != cred.uid) {
149 (long)cred.uid, (long)reply.uid);
157 fields = array_get(&reply.extra_fields, &count);
174 if (reply.anonymous)

Completed in 68 milliseconds

1234