Reformated comments and long lines
[mmh] / sbr / addrsbr.c
index d8f6a12..c8eb0c8 100644 (file)
@@ -1,65 +1,65 @@
 /*
- * addrsbr.c -- parse addresses 822-style
- *
- * 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.
- */
+** addrsbr.c -- parse addresses 822-style
+**
+** 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/mh.h>
 #include <h/addrsbr.h>
 #include <h/mf.h>
 
 /*
- * High level parsing of addresses:
- *
- * The routines in sbr/mf.c parse the syntactic representations of
- * addresses.  The routines in sbr/addrsbr.c associate semantics with those
- * addresses.
- *
- * If #ifdef DUMB is in effect, a full 822-style parser is called
- * for syntax recongition.  This breaks each address into its components.
- * Note however that no semantics are assumed about the parts or their
- * totality.  This means that implicit hostnames aren't made explicit,
- * and explicit hostnames aren't expanded to their "official" represenations.
- *
- * If DUMB is not in effect, then this module does some
- * high-level thinking about what the addresses are.
- *
- * 1. for MMDF systems:
- *
- *      string%<uucp>@<local>  ->  string
- *
- * 2. for non-MMDF systems:
- *
- *      string@host.<uucp>  ->  host!string
- *
- * 3. for any system, an address interpreted relative to the local host:
- *
- *      string@<uucp>  ->  string
- *
- * For cases (1) and (3) above, the leftmost host is extracted.  If it's not
- * present, the local host is used.  If the tests above fail, the address is
- * considered to be a real 822-style address.
- *
- * If an explicit host is not present, then MH checks for a bang to indicate
- * an explicit UUCP-style address.  If so, this is noted.  If not, the host is
- * defaulted, typically to the local host.  The lack of an explict host is
- * also noted.
- *
- * If an explicit 822-style host is present, then MH checks to see if it
- * can expand this to the official name for the host.  If the hostname is
- * unknown, the address is so typed.
- *
- * To summarize, when we're all done, here's what MH knows about the address:
- *
- * DUMB - type: local, uucp, or network
- *              host:  not locally defaulted, not explicitly expanded
- *              everything else
- *
- * other - type: local, uucp, network, unknown
- *               everything else
- */
+** High level parsing of addresses:
+**
+** The routines in sbr/mf.c parse the syntactic representations of
+** addresses.  The routines in sbr/addrsbr.c associate semantics with those
+** addresses.
+**
+** If #ifdef DUMB is in effect, a full 822-style parser is called
+** for syntax recongition.  This breaks each address into its components.
+** Note however that no semantics are assumed about the parts or their
+** totality.  This means that implicit hostnames aren't made explicit,
+** and explicit hostnames aren't expanded to their "official" represenations.
+**
+** If DUMB is not in effect, then this module does some
+** high-level thinking about what the addresses are.
+**
+** 1. for MMDF systems:
+**
+**      string%<uucp>@<local>  ->  string
+**
+** 2. for non-MMDF systems:
+**
+**      string@host.<uucp>  ->  host!string
+**
+** 3. for any system, an address interpreted relative to the local host:
+**
+**      string@<uucp>  ->  string
+**
+** For cases (1) and (3) above, the leftmost host is extracted.  If it's not
+** present, the local host is used.  If the tests above fail, the address is
+** considered to be a real 822-style address.
+**
+** If an explicit host is not present, then MH checks for a bang to indicate
+** an explicit UUCP-style address.  If so, this is noted.  If not, the host is
+** defaulted, typically to the local host.  The lack of an explict host is
+** also noted.
+**
+** If an explicit 822-style host is present, then MH checks to see if it
+** can expand this to the official name for the host.  If the hostname is
+** unknown, the address is so typed.
+**
+** To summarize, when we're all done, here's what MH knows about the address:
+**
+** DUMB - type: local, uucp, or network
+**              host:  not locally defaulted, not explicitly expanded
+**              everything else
+**
+** other - type: local, uucp, network, unknown
+**               everything else
+*/
 
 
 static int  ingrp = 0;
@@ -77,8 +77,8 @@ extern boolean  username_extension_masquerading;  /* defined in mts.c */
 
 
 /*
- * external prototypes
- */
+** external prototypes
+*/
 char *getusername (void);
 
 
@@ -309,8 +309,8 @@ adrformat (struct mailname *mp)
 #define WBITS   "\020\01MBEG\02MEND\03HBEG\04HEND"
 
 /*
- * Check if this is my address
- */
+** Check if this is my address
+*/
 
 int
 ismymbox (struct mailname *np)
@@ -325,9 +325,9 @@ ismymbox (struct mailname *np)
        static struct mailname mq={NULL};
 
        /*
-        * If this is the first call, initialize
-        * list of alternate mailboxes.
-        */
+       ** If this is the first call, initialize
+       ** list of alternate mailboxes.
+       */
        if (am == NULL) {
                mq.m_next = NULL;
                mq.m_mbox = getusername ();
@@ -397,9 +397,9 @@ local_test: ;
        }
 
        /*
-        * Now scan through list of alternate
-        * mailboxes, and check for a match.
-        */
+       ** Now scan through list of alternate
+       ** mailboxes, and check for a match.
+       */
        for (mp = &mq; mp->m_next;) {
                mp = mp->m_next;
                if (!np->m_mbox)
@@ -459,15 +459,15 @@ local_test: ;
 
 
 /*
- * Moved from hosts.c -- find out the official name of a host
- */
+** Moved from hosts.c -- find out the official name of a host
+*/
 
 /*
- * In the SendMail world, we really don't know what the valid
- * hosts are.  We could poke around in the sendmail.cf file, but
- * that still isn't a guarantee.  As a result, we'll say that
- * everything is a valid host, and let SendMail worry about it.
- */
+** In the SendMail world, we really don't know what the valid
+** hosts are.  We could poke around in the sendmail.cf file, but
+** that still isn't a guarantee.  As a result, we'll say that
+** everything is a valid host, and let SendMail worry about it.
+*/
 
 #include <h/mts.h>
 #include <netdb.h>