imap 141 imap-send.c struct imap *imap; imap 161 imap-send.c #define CAP(cap) (imap->caps & (1 << (cap))) imap 520 imap-send.c struct imap *imap = ctx->imap; imap 527 imap-send.c cmd->tag = ++imap->nexttag; imap 534 imap-send.c while (imap->literal_pending) imap 545 imap-send.c if (imap->num_in_progress) imap 546 imap-send.c printf("(%d in progress) ", imap->num_in_progress); imap 552 imap-send.c if (socket_write(&imap->buf.sock, buf, bufl) != bufl) { imap 561 imap-send.c n = socket_write(&imap->buf.sock, cmd->cb.data, cmd->cb.dlen); imap 564 imap-send.c socket_write(&imap->buf.sock, "\r\n", 2) != 2) { imap 571 imap-send.c imap->literal_pending = 1; imap 573 imap-send.c imap->literal_pending = 1; imap 575 imap-send.c *imap->in_progress_append = cmd; imap 576 imap-send.c imap->in_progress_append = &cmd->next; imap 577 imap-send.c imap->num_in_progress++; imap 664 imap-send.c static void parse_capability(struct imap *imap, char *cmd) imap 669 imap-send.c imap->caps = 0x80000000; imap 673 imap-send.c imap->caps |= 1 << i; imap 674 imap-send.c imap->rcaps = imap->caps; imap 680 imap-send.c struct imap *imap = ctx->imap; imap 698 imap-send.c if (!(arg = next_arg(&s)) || !(imap->uidnext = atoi(arg))) { imap 703 imap-send.c parse_capability(imap, s); imap 722 imap-send.c struct imap *imap = ctx->imap; imap 728 imap-send.c if (buffer_gets(&imap->buf, &cmd)) imap 749 imap-send.c parse_capability(imap, cmd); imap 766 imap-send.c } else if (!imap->in_progress) { imap 772 imap-send.c cmdp = (struct imap_cmd *)((char *)imap->in_progress_append - imap 775 imap-send.c n = socket_write(&imap->buf.sock, cmdp->cb.data, cmdp->cb.dlen); imap 787 imap-send.c if (socket_write(&imap->buf.sock, "\r\n", 2) != 2) imap 790 imap-send.c imap->literal_pending = 0; imap 795 imap-send.c for (pcmdp = &imap->in_progress; (cmdp = *pcmdp); pcmdp = &cmdp->next) imap 802 imap-send.c imap->in_progress_append = pcmdp; imap 803 imap-send.c imap->num_in_progress--; imap 805 imap-send.c imap->literal_pending = 0; imap 835 imap-send.c struct imap *imap = ictx->imap; imap 837 imap-send.c if (imap->buf.sock.fd[0] != -1) { imap 839 imap-send.c socket_shutdown(&imap->buf.sock); imap 841 imap-send.c free(imap); imap 922 imap-send.c ret = socket_write(&ctx->imap->buf.sock, response, strlen(response)); imap 935 imap-send.c struct imap *imap; imap 941 imap-send.c ctx->imap = imap = xcalloc(1, sizeof(*imap)); imap 942 imap-send.c imap->buf.sock.fd[0] = imap->buf.sock.fd[1] = -1; imap 943 imap-send.c imap->in_progress_append = &imap->in_progress; imap 959 imap-send.c imap->buf.sock.fd[0] = tunnel.out; imap 960 imap-send.c imap->buf.sock.fd[1] = tunnel.in; imap 1037 imap-send.c imap->buf.sock.fd[0] = s; imap 1038 imap-send.c imap->buf.sock.fd[1] = dup(s); imap 1041 imap-send.c ssl_socket_connect(&imap->buf.sock, 0, srvc->ssl_verify)) { imap 1049 imap-send.c if (buffer_gets(&imap->buf, &rsp)) { imap 1066 imap-send.c if (!imap->caps && imap_exec(ctx, NULL, "CAPABILITY") != RESP_OK) imap 1074 imap-send.c if (ssl_socket_connect(&imap->buf.sock, 1, imap 1128 imap-send.c if (!imap->buf.sock.ssl) imap 1212 imap-send.c struct imap *imap = ctx->imap; imap 1226 imap-send.c imap->caps = imap->rcaps;