X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Fmf.c;fp=sbr%2Fmf.c;h=8f7e3579dd2154bc884328001969e9fd4bdbf2f7;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hp=fdad91e42d8585a8918d83ccf49e9d5590005cf1;hpb=337338b404931f06f0db2119c9e145e8ca5a9860;p=mmh diff --git a/sbr/mf.c b/sbr/mf.c index fdad91e..8f7e357 100644 --- a/sbr/mf.c +++ b/sbr/mf.c @@ -1,10 +1,10 @@ /* - * mf.c -- mail filter subroutines - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** mf.c -- mail filter subroutines +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -12,8 +12,8 @@ #include /* - * static prototypes - */ +** static prototypes +*/ static char *getcpy (char *); static int isat (char *); static int parse_address (void); @@ -32,9 +32,9 @@ getcpy (char *s) if (!s) { /* - * causes compiles to blow up because the symbol _cleanup - * is undefined where did this ever come from? - */ + ** causes compiles to blow up because the symbol _cleanup + ** is undefined where did this ever come from? + */ /* _cleanup(); */ abort(); for(;;) @@ -62,62 +62,62 @@ isat (char *p) /* - * - * getadrx() implements a partial 822-style address parser. The parser - * is neither complete nor correct. It does however recognize nearly all - * of the 822 address syntax. In addition it handles the majority of the - * 733 syntax as well. Most problems arise from trying to accomodate both. - * - * In terms of 822, the route-specification in - * - * "<" [route] local-part "@" domain ">" - * - * is parsed and returned unchanged. Multiple at-signs are compressed - * via source-routing. Recursive groups are not allowed as per the - * standard. - * - * In terms of 733, " at " is recognized as equivalent to "@". - * - * In terms of both the parser will not complain about missing hosts. - * - * ----- - * - * We should not allow addresses like - * - * Marshall T. Rose - * - * but should insist on - * - * "Marshall T. Rose" - * - * Unfortunately, a lot of mailers stupidly let people get away with this. - * - * ----- - * - * We should not allow addresses like - * - * - * - * but should insist on - * - * MRose@UCI - * - * Unfortunately, a lot of mailers stupidly let people's UAs get away with - * this. - * - * ----- - * - * We should not allow addresses like - * - * @UCI:MRose@UCI-750a - * - * but should insist on - * - * Marshall Rose <@UCI:MRose@UCI-750a> - * - * Unfortunately, a lot of mailers stupidly do this. - * - */ +** +** getadrx() implements a partial 822-style address parser. The parser +** is neither complete nor correct. It does however recognize nearly all +** of the 822 address syntax. In addition it handles the majority of the +** 733 syntax as well. Most problems arise from trying to accomodate both. +** +** In terms of 822, the route-specification in +** +** "<" [route] local-part "@" domain ">" +** +** is parsed and returned unchanged. Multiple at-signs are compressed +** via source-routing. Recursive groups are not allowed as per the +** standard. +** +** In terms of 733, " at " is recognized as equivalent to "@". +** +** In terms of both the parser will not complain about missing hosts. +** +** ----- +** +** We should not allow addresses like +** +** Marshall T. Rose +** +** but should insist on +** +** "Marshall T. Rose" +** +** Unfortunately, a lot of mailers stupidly let people get away with this. +** +** ----- +** +** We should not allow addresses like +** +** +** +** but should insist on +** +** MRose@UCI +** +** Unfortunately, a lot of mailers stupidly let people's UAs get away with +** this. +** +** ----- +** +** We should not allow addresses like +** +** @UCI:MRose@UCI-750a +** +** but should insist on +** +** Marshall Rose <@UCI:MRose@UCI-750a> +** +** Unfortunately, a lot of mailers stupidly do this. +** +*/ #define QUOTE '\\' @@ -477,7 +477,8 @@ local_part (char *buffer) break; default: - sprintf (err, "no mailbox in local-part (%s)", buffer); + sprintf (err, "no mailbox in local-part (%s)", + buffer); return NOTOK; } @@ -588,9 +589,9 @@ my_lex (char *buffer) register char *bp; /* - * Add C to the buffer bp. After use of this macro *bp is guaranteed - * to be within the buffer. - */ + ** Add C to the buffer bp. After use of this macro *bp is guaranteed + ** to be within the buffer. + */ #define ADDCHR(C) \ do { \ *bp++ = (C); \