Lines Matching refs:line
171 struct ostream *output, const char *line)
177 if (strncmp(line, "* OK ", 5) != 0) {
180 str_sanitize(line, 160)));
185 if (strncmp(line + 5, "[CAPABILITY ", 12) == 0) {
186 capabilities = t_strsplit(t_strcut(line + 5 + 12, ']'), " ");
193 i_strdup(t_strcut(line + 5 + 12, ']'));
219 const char *line)
225 tagged_capability = strncasecmp(line, "[CAPABILITY ", 12) == 0;
227 capability = t_strcut(line + 12, ']');
240 if (*line == '[') {
243 while (*line != ']' && *line != '\0')
244 line++;
245 if (*line == ' ') line++;
248 str_append(str, line);
252 int imap_proxy_parse_line(struct client *client, const char *line)
269 if (proxy_input_banner(imap_client, output, line) < 0) {
274 } else if (*line == '+') {
284 if (line[1] != ' ' ||
285 base64_decode(line+2, strlen(line+2), NULL, str) < 0) {
313 } else if (strncmp(line, "S ", 2) == 0) {
317 if (strncmp(line, "S OK ", 5) != 0) {
321 str_sanitize(line + 5, 160)));
339 } else if (strncmp(line, "L OK ", 5) == 0) {
340 /* Login successful. Send this line to client. */
344 client_send_login_reply(imap_client, str, line + 5);
349 } else if (strncmp(line, "L ", 2) == 0) {
353 line += 2;
355 const char *log_line = line;
362 if (strncmp(line, STR_NO_IMAP_RESP_CODE_AUTHFAILED,
372 } else if (strncmp(line, "NO [", 4) == 0) {
375 imap_client->cmd_tag, " ", line, "\r\n", NULL));
378 v1.2+. we could either forward the line as-is and
392 } else if (strncasecmp(line, "* CAPABILITY ", 13) == 0) {
394 imap_client->proxy_backend_capability = i_strdup(line + 13);
396 } else if (strncmp(line, "C ", 2) == 0) {
400 if (strncmp(line, "C OK ", 5) == 0 &&
410 } else if (strncasecmp(line, "I ", 2) == 0) {
429 } else if (strncasecmp(line, "* ID ", 5) == 0) {
432 } else if (strncmp(line, "* ", 2) == 0) {
434 client_send_raw(client, t_strconcat(line, "\r\n", NULL));
440 str_sanitize(line, 160)));