Reformated comments and long lines
[mmh] / sbr / mf.c
index fdad91e..8f7e357 100644 (file)
--- 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 <h/mf.h>
 #include <ctype.h>
@@ -12,8 +12,8 @@
 #include <h/utils.h>
 
 /*
- * 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 <MRose@UCI>
- *
- * but should insist on
- *
- *     "Marshall T. Rose" <MRose@UCI>
- *
- * Unfortunately, a lot of mailers stupidly let people get away with this.
- *
- * -----
- *
- * We should not allow addresses like
- *
- *     <MRose@UCI>
- *
- * 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 <MRose@UCI>
+**
+** but should insist on
+**
+**     "Marshall T. Rose" <MRose@UCI>
+**
+** Unfortunately, a lot of mailers stupidly let people get away with this.
+**
+** -----
+**
+** We should not allow addresses like
+**
+**     <MRose@UCI>
+**
+** 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); \