47 capabilities.push_back(cap);
59 if (getenv(
"UCSPITLS"))
62 const string authmethods = session.
getEnv(
"BINCIMAP_LOGIN");
63 auto cram = authmethods.find(
"+CRAM-MD5");
65 if (session.
command.
ssl || session.
hasEnv(
"ALLOW_NONSSL_PLAINTEXT_LOGINS")) {
66 if (cram != string::npos)
bincClient <<
" AUTH=LOGIN AUTH=PLAIN AUTH=CRAM-MD5";
72 bincClient <<
" IDLE LITERAL+ NAMESPACE CHILDREN";
74 vector<string>::const_iterator i = capabilities.begin();
75 while (i != capabilities.end()) {
virtual ParseResult parse(Request &) const
~CapabilityOperator(void)
void addCapability(const std::string &cap)
ProcessResult process(Depot &, Request &)
const std::string getName(void) const
void setName(const std::string &s_in)
bool getUidMode(void) const
const int getState(void) const
void setLastError(const std::string &error) const
struct Binc::Session::@3 command
static Session & getInstance(void)
std::string getEnv(const std::string &key)
bool hasEnv(const std::string &key) const
Declaration of the IODevice class.
Declaration of the IOFactory class.
Operator::ParseResult expectCRLF(void)
Declaration of all operators.
Declaration of a recursive descent IMAP command parser.