/* Copyright (c) 2017-2018 Dovecot authors, see the included COPYING file */
{
const struct {
{
"",
"testuser1",
TRUE },
{
"*",
"testuser1",
TRUE },
{
"!*",
"testuser1",
FALSE },
{
"*@*",
"testuser1",
FALSE },
{
"!*@*",
"testuser1",
TRUE },
{
"*@*",
"testuser1@testdomain",
TRUE },
{
"!*@*",
"testuser1@testdomain",
FALSE },
{
"*@testdomain *@testdomain2",
"testuser1@testdomain",
TRUE },
{
"*@testdomain *@testdomain2",
"testuser1@testdomain2",
TRUE },
{
"*@testdomain *@testdomain2",
"testuser1@testdomain3",
FALSE },
{
"!testuser@testdomain *@testdomain",
"testuser@testdomain",
FALSE },
{
"!testuser@testdomain *@testdomain",
"testuser2@testdomain",
TRUE },
{
"*@testdomain !testuser@testdomain !testuser2@testdomain",
"testuser@testdomain",
FALSE },
{
"*@testdomain !testuser@testdomain !testuser2@testdomain",
"testuser3@testdomain",
TRUE },
{
"!testuser@testdomain !testuser2@testdomain",
"testuser",
TRUE },
{
"!testuser@testdomain !testuser2@testdomain",
"testuser@testdomain",
FALSE },
{
"!testuser@testdomain *@testdomain !testuser2@testdomain",
"testuser3@testdomain",
TRUE },
{
"!testuser@testdomain *@testdomain !testuser2@testdomain",
"testuser@testdomain",
FALSE },
};
}
}