Mercurial > dovecot > core-2.2
view src/lib-imap/test-imap-util.c @ 18137:3009a1a6f6d5
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi>
author | Phil Carmody <phil@dovecot.fi> |
---|---|
date | Mon, 05 Jan 2015 22:20:10 +0200 |
parents | add8c00fb3cc |
children | 0f22db71df7a |
line wrap: on
line source
/* Copyright (c) 2009-2015 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "mail-types.h" #include "imap-util.h" #include "test-common.h" static void test_imap_parse_system_flag(void) { test_begin("imap_parse_system_flag"); test_assert(imap_parse_system_flag("\\aNswered") == MAIL_ANSWERED); test_assert(imap_parse_system_flag("\\fLagged") == MAIL_FLAGGED); test_assert(imap_parse_system_flag("\\dEleted") == MAIL_DELETED); test_assert(imap_parse_system_flag("\\sEen") == MAIL_SEEN); test_assert(imap_parse_system_flag("\\dRaft") == MAIL_DRAFT); test_assert(imap_parse_system_flag("\\rEcent") == MAIL_RECENT); test_assert(imap_parse_system_flag("answered") == 0); test_assert(imap_parse_system_flag("\\broken") == 0); test_assert(imap_parse_system_flag("\\") == 0); test_assert(imap_parse_system_flag("") == 0); test_end(); } int main(void) { static void (*test_functions[])(void) = { test_imap_parse_system_flag, NULL }; return test_run(test_functions); }