a9e8641da9
It is a small and lightweight Mail Transport Agent. It accepts mails from locally installed Mail User Agents (MUA) and delivers the mails either locally or to a remote destination. Remote delivery includes several features like TLS/SSL support, SMTP authentication and NULLCLIENT. Make dma conditional to new WITHOUT_DMA option and make it respect WITHOUT_MAIL Reviewed by: peter Discussed with: emaste, bz, peter
25 lines
463 B
Plaintext
25 lines
463 B
Plaintext
%{
|
|
|
|
#include <string.h>
|
|
#include "aliases_parse.h"
|
|
|
|
#define YY_NO_INPUT
|
|
|
|
int yylex(void);
|
|
%}
|
|
|
|
%option yylineno
|
|
%option nounput
|
|
|
|
%%
|
|
|
|
[^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;}
|
|
^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */
|
|
[:,\n] return yytext[0];
|
|
(\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */
|
|
\\\n ;/* ignore continuation. not allowed in comments */
|
|
. return T_ERROR;
|
|
<<EOF>> return T_EOF;
|
|
|
|
%%
|