/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "str.h"
#include "strescape.h"
#include "unichar.h"
#include "mail-types.h"
#include "imap-parser.h"
#include "imap-util.h"
const char *const *keywords)
{
if ((flags & MAIL_ANSWERED) != 0)
if ((flags & MAIL_FLAGGED) != 0)
if ((flags & MAIL_DELETED) != 0)
if ((flags & MAIL_DRAFT) != 0)
if ((flags & MAIL_RECENT) != 0)
/* we have keywords too */
keywords++;
}
}
}
{
return MAIL_ANSWERED;
return MAIL_FLAGGED;
return MAIL_DELETED;
return MAIL_SEEN;
return MAIL_DRAFT;
return MAIL_RECENT;
else
return 0;
}
{
unsigned int i, count;
for (i = 0; i < count; i++) {
if (i > 0)
}
}
{
case IMAP_ARG_NIL:
break;
case IMAP_ARG_ATOM:
break;
case IMAP_ARG_STRING:
break;
case IMAP_ARG_LITERAL: {
break;
}
case IMAP_ARG_LIST:
break;
case IMAP_ARG_LITERAL_SIZE:
break;
case IMAP_ARG_EOL:
i_unreached();
}
}
{
if (first)
else
}
}
{
size_t i;
for (i = 0; str[i] != '\0'; i++) {
str[i] = '?';
}
}
{
if (first)
else
case IMAP_ARG_NIL:
break;
case IMAP_ARG_ATOM:
/* atom has only printable us-ascii chars */
break;
case IMAP_ARG_STRING:
case IMAP_ARG_LITERAL: {
break;
}
/* append only valid UTF-8 chars */
if (uni_utf8_get_valid_data((const unsigned char *)strarg,
/* replace all control chars */
break;
}
case IMAP_ARG_LIST:
break;
case IMAP_ARG_LITERAL_SIZE:
break;
case IMAP_ARG_EOL:
i_unreached();
}
}
}
{
}