/* Copyright (c) 2013-2018 Dovecot authors, see the included COPYING file */
#include "imap-common.h"
#include "imap-resp-code.h"
#include "imap-commands.h"
#include "imap-urlauth.h"
{
return TRUE;
}
return TRUE;
}
static bool
{
/* check mechanism arguments (we support only INTERNAL mechanism) */
while (!IMAP_ARG_IS_EOL(mech_args)) {
const char *mechanism;
"NO Unsupported URLAUTH mechanism.");
return TRUE;
}
} else {
return TRUE;
}
mech_args++;
}
/* find mailbox namespace */
return TRUE;
/* open mailbox */
if (mailbox_open(box) < 0) {
mailbox_free(&box);
return TRUE;
}
/* check urlauth environment and reset requested key */
mailbox_free(&box);
return TRUE;
}
/* confirm success */
/* FIXME: RFC Says: `Any current IMAP session logged in as the user
that has the mailbox selected will receive an untagged OK response
with the URLMECH status response code'. We currently don't do that
at all. We could probably do it by communicating via mailbox list
index. */
mailbox_free(&box);
return TRUE;
}
{
const char *mailbox;
return TRUE;
}
return FALSE;
if (IMAP_ARG_IS_EOL(&args[0]))
return cmd_resetkey_all(cmd);
return TRUE;
}