head 1.5; access; symbols petidomo-2-2:1.1.1.1 petidomo:1.1.1; locks; strict; comment @ * @; 1.5 date 2001.01.20.13.42.01; author simons; state dead; branches; next 1.4; 1.4 date 2001.01.18.20.30.50; author rse; state Exp; branches; next 1.3; 1.3 date 2001.01.16.10.49.08; author simons; state Exp; branches; next 1.2; 1.2 date 2000.12.13.15.35.14; author simons; state Exp; branches; next 1.1; 1.1 date 2000.12.13.13.19.22; author simons; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.12.13.13.19.22; author simons; state Exp; branches; next ; desc @@ 1.5 log @Underscores in file names suck, because you need an extra key-press to type them compared to the hyphen. For this reason (and for consistency) I corrected this horrible, horrible mistake of the past and renamed those files. @ text @/* $Source: /e/ossp/cvs/ossp-pkg/petidomo/acl_scan.l,v $ $Revision: 1.4 $ Copyright (C) 2000 by CyberSolutions GmbH, Germany. This file is part of Petidomo. Petidomo is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. Petidomo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ %{ #include #include "acl_scan.h" %} %% ^[ \t]*#.*$ /* ignore comments */ [ \t] /* ignore whitespace */ \n lineno++; if return TOK_IF; = return TOK_EQUAL; == return TOK_EQUAL; from return TOK_FROM; subject return TOK_SUBJECT; envelope return TOK_ENVELOPE; header return TOK_HEADER; body return TOK_BODY; and return TOK_AND; or return TOK_OR; not return TOK_NOT; then return TOK_THEN; match(es)? return TOK_MATCH; \"[^\"]*\" { yytext[yyleng-1] = '\0'; yytext++; yyleng -= 2; return TOK_STRING; } drop return TOK_DROP; pass return TOK_PASS; approve return TOK_APPROVE; redirect return TOK_REDIRECT; forward return TOK_FORWARD; reject return TOK_REJECT; rejectwith return TOK_REJECTWITH; filter return TOK_FILTER; . { yylval = yytext[0]; return yylval; } /* literal */ %% @ 1.4 log @As we agreed today, Petidomo is now open because licensed under GPL and always will be licensed under GPL, so use "Petidomo" as the program name everywhere and consistently. @ text @d3 1 a3 1 $Revision: 1.3 $ @ 1.3 log @Added new action keyword to the Access Control Language: approve. This keyword will -- unlike to "pass" -- not only pass the mail, but will also make sure that the mail passes all other authorization controls. This means, the mail will be treated as if the Petidomo master password had been given in the header. @ text @d2 2 a3 2 $Source: /d1/e/petidomo/cvs/petidomo/source/acl_scan.l,v $ $Revision: 1.2 $ d7 1 a7 1 This file is part of OpenPetidomo. d9 1 a9 1 OpenPetidomo is free software; you can redistribute it and/or modify d14 1 a14 1 OpenPetidomo is distributed in the hope that it will be useful, but @ 1.2 log @ - Added correct GNU GPL copyright statements to the files. - Removed unnecessary include statements. @ text @d2 2 a3 2 $Source$ $Revision$ d50 1 @ 1.1 log @Initial revision @ text @d2 17 a18 7 * $Source: /usr/local/libdata/cvs/simons/petidomo/src/petidomo/acl_scan.l,v $ * $Revision: 1.2 $ * $Date: 1997/08/06 17:26:55 $ * * Copyright (C) 1997 by CyberSolutions GmbH. * All rights reserved. */ @ 1.1.1.1 log @Imported Petidomo 2.2 as found on www.petidomo.com. @ text @@