home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume17
/
pps
/
mail.l
< prev
next >
Wrap
Text File
|
1989-02-06
|
476b
|
30 lines
%{
#ifndef lint
static char rcsid[] = "$Header: mail.l,v 0.0 88/06/22 05:22:14 on Rel $";
#endif
#include "pps.h"
#define KEYWORD INITIAL
%}
field ^[^ \t:]+:
%Start COMMENT
%%
<INITIAL>{field} {
begin(KEYWORD);
ECHO;
if (!iskw(yytext))
begin(INITIAL);
}
<INITIAL>\n\n+ { begin(COMMENT); REJECT; }
<COMMENT>^From { begin(INITIAL); REJECT; }
[\t\n\f]+ { space(yytext); }
. { ECHO; }
%%
char *keywords[] = {
"",
"Date:",
"From:",
"Subject:",
"To:",
NULL
};