summaryrefslogtreecommitdiff
path: root/imap4d
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2017-01-16 07:58:02 +0200
committerSergey Poznyakoff <gray@gnu.org>2017-01-16 07:58:02 +0200
commit5b77e1ad4728547db2bb8a5edd62ecdc09fba80f (patch)
treeb8667a732871b58f19c69a55021522656b10d1a9 /imap4d
parent96dd35f02fe175507d5ff91ccdcc2c59ff5a24fd (diff)
downloadmailutils-5b77e1ad4728547db2bb8a5edd62ecdc09fba80f.tar.gz
mailutils-5b77e1ad4728547db2bb8a5edd62ecdc09fba80f.tar.bz2
imap4d: log client identity
* imap4d/id.c (eat_args): Log the client identity using the info channel. * imap4d/list.c: tiny change
Diffstat (limited to 'imap4d')
-rw-r--r--imap4d/id.c7
-rw-r--r--imap4d/list.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/imap4d/id.c b/imap4d/id.c
index 65d533783..13a10f185 100644
--- a/imap4d/id.c
+++ b/imap4d/id.c
@@ -39,16 +39,23 @@ eat_args (imap4d_tokbuf_t tok)
else if (p[0] != '(')
return RESP_BAD;
+ mu_diag_init ();
+ mu_stream_printf (mu_strerr, "\033s<%d>%s", MU_DIAG_INFO,
+ _("client identification: "));
+
/* Collect arguments */
while ((p = imap4d_tokbuf_getarg (tok, n++)))
{
if (p[0] == ')')
{
+ mu_stream_printf (mu_strerr, "\n");
if (imap4d_tokbuf_getarg (tok, n))
return RESP_BAD;
return RESP_OK;
}
+ mu_stream_printf (mu_strerr, "%s%c", p, (n % 2) ? ' ' : '=');
}
+ mu_stream_printf (mu_strerr, "\n");
return RESP_BAD;
}
diff --git a/imap4d/list.c b/imap4d/list.c
index 4a2590564..decaaba49 100644
--- a/imap4d/list.c
+++ b/imap4d/list.c
@@ -210,7 +210,7 @@ imap4d_list (struct imap4d_session *session,
if (pfx->ns == NS_OTHER
&& strcmp (ref, pfx->prefix) == 0
- && *mu_str_skip_cset_comp (wcard, "*%"))
+ && strpbrk (wcard, "*%"))
{
/* [A] server MAY return NO to such a LIST command, requiring that a
user name be included with the Other Users' Namespace prefix

Return to:

Send suggestions and report system problems to the System administrator.