From f7548d6d28c313cf80e6f3ef89aed16a19815df1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:51:24 +0200 Subject: Adding upstream version 1:2.3.19.1+dfsg1. Signed-off-by: Daniel Baumann --- pigeonhole/src/managesieve/cmd-logout.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pigeonhole/src/managesieve/cmd-logout.c (limited to 'pigeonhole/src/managesieve/cmd-logout.c') diff --git a/pigeonhole/src/managesieve/cmd-logout.c b/pigeonhole/src/managesieve/cmd-logout.c new file mode 100644 index 0000000..9e0847d --- /dev/null +++ b/pigeonhole/src/managesieve/cmd-logout.c @@ -0,0 +1,21 @@ +/* Copyright (c) 2002-2018 Pigeonhole authors, see the included COPYING file + */ + +#include "lib.h" +#include "ostream.h" + +#include "managesieve-common.h" +#include "managesieve-commands.h" + +bool cmd_logout(struct client_command_context *cmd) +{ + struct client *client = cmd->client; + + /* no arguments */ + if (!client_read_no_args(cmd)) + return FALSE; + + client_send_line(client, "OK \"Logout completed.\""); + client_disconnect(client, "Logged out"); + return TRUE; +} -- cgit v1.2.3