}
/* Undoes the special character conversion. */
-
static int cfrommap(int c)
{
switch (c)
}
-
-
/* Break a command down into tokens, unquoting any escaped characters. */
-
void MakeStringOf(StrBuf *Buf, int skip)
{
int i;
/* Convert a struct ctdlroom to an IMAP-compatible mailbox name. */
-
long imap_mailboxname(char *buf, int bufsize, struct ctdlroom *qrbuf)
{
char* bufend = buf+bufsize;
* including IR_MAILBOX if we're dealing with a personal room.
*
*/
-
int imap_roomname(char *rbuf, int bufsize, const char *foldername)
{
int levels;
return WILDMAT_TRUE;
}
while (!IsEmptyStr(text) &&
- /* make shure texst - 1 isn't before lcase_p */
+ /* make sure text - 1 isn't before lcase_p */
((text == lcase_text) || (*(text - 1) != WILDMAT_DELIM)))
{
if ((matched = do_imap_match(text++, p))
}
-
/*
* Support function for mailbox pattern name matching in LIST and LSUB
* Returns nonzero if the supplied mailbox name matches the supplied pattern.
}
-
-
-
void IAPrintf(const char *Format, ...)
{
va_list arg_ptr;
va_end(arg_ptr);
}
+
void iaputs(const char *Str, long Len)
{
StrBufAppendBufPlain(IMAP->Reply, Str, Len, 0);
}
+
void ireply(const char *Msg, long len)
{
citimap *Imap = IMAP;
}
+
void IReplyPrintf(const char *Format, ...)
{
citimap *Imap = IMAP;
/* Output a string to the IMAP client, either as a literal or quoted.
* (We do a literal if it has any double-quotes or backslashes.) */
-
-
void IPutStr(const char *Msg, long Len)
{
int i;
}
}
+// output the global alias table
+void tmplput_servcfg_globalaliases(StrBuf *Target, WCTemplputParams *TP) {
+ TRACE;
+ StrBufAppendTemplate(Target, TP, "wow\n", 0);
+ TRACE;
+}
+
+
+
+
+
+
+
+
+
+
int ConditionalServCfg(StrBuf *Target, WCTemplputParams *TP)
{
void *vBuf;
StrBufAppendTemplate(Target, TP, Stat->Name, 1);
}
+
+
int ConditionalServCfgThisLogEnabled(StrBuf *Target, WCTemplputParams *TP)
{
LogStatusStruct *Stat = (LogStatusStruct*) CTX(CTX_SRVLOG);
WebcitAddUrlHandler(HKEY("siteconfig"), "", 0, siteconfig, CTX_NONE);
RegisterNamespace("SERV:CFG", 1, 2, tmplput_servcfg, NULL, CTX_NONE);
+ RegisterNamespace("SERV:GLOBALALIASES", 0, 1, tmplput_servcfg_globalaliases, NULL, CTX_NONE);
RegisterConditional("COND:SERVCFG", 3, ConditionalServCfg, CTX_NONE);
RegisterConditional("COND:SERVCFG:CTXSTRBUF", 4, ConditionalServCfgCTXStrBuf, CTX_STRBUF);
RegisterIterator("PREF:ZONE", 0, ZoneHash, NULL, NULL, NULL, CTX_STRBUF, CTX_NONE, IT_NOFLAG);
RegisterConditional("COND:EXPIRE:MODE", 2, ConditionalExpire, CTX_NONE);
RegisterNamespace("EXPIRE:VALUE", 1, 2, tmplput_ExpireValue, NULL, CTX_NONE);
RegisterNamespace("EXPIRE:MODE", 1, 2, tmplput_ExpireMode, NULL, CTX_NONE);
-
RegisterConditional("COND:SERVCFG:THISLOGENABLE", 4, ConditionalServCfgThisLogEnabled, CTX_SRVLOG);
RegisterIterator("SERVCFG:LOGENABLE", 0, NULL, iterate_GetSrvLogEnable, NULL, DeleteHash, CTX_SRVLOG, CTX_NONE, IT_NOFLAG);
RegisterNamespace("SERVCFG:LOGNAME", 0, 1, tmplput_servcfg_LogName, NULL, CTX_SRVLOG);