]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: Added struct client_command_context.tagline_reply
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 2 May 2016 09:01:40 +0000 (12:01 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 2 May 2016 09:17:17 +0000 (12:17 +0300)
Can be used by plugins.

src/imap/imap-client.c
src/imap/imap-client.h

index 4144f33bbd407149fe8f3cb081e72d34e3d14c4f..76424f26b1a375ed06734759b55dc3216fddde3a 100644 (file)
@@ -506,6 +506,7 @@ void client_send_tagline(struct client_command_context *cmd, const char *data)
 
        i_assert(!cmd->tagline_sent);
        cmd->tagline_sent = TRUE;
+       cmd->tagline_reply = p_strdup(cmd->pool, data);
 
        if (tag == NULL || *tag == '\0')
                tag = "*";
index 82f2a3987b33d7fa6237e16648f940a63f7928da..394b59cc19d867c894472e5764e10c59f5f97ed8 100644 (file)
@@ -66,6 +66,7 @@ struct client_command_context {
           them. */
        const char *args;
        enum command_flags cmd_flags;
+       const char *tagline_reply;
 
        command_func_t *func;
        void *context;