Reformated comments and long lines
[mmh] / uip / forw.c
index 6e33dc3..5c71c55 100644 (file)
@@ -1,10 +1,10 @@
 /*
- * forw.c -- forward a message, or group of messages.
- *
- * 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.
- */
+** forw.c -- forward a message, or group of messages.
+**
+** 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 <fcntl.h>
@@ -81,8 +81,8 @@ static struct msgs *mp = NULL;  /* used a lot */
 
 
 /*
- * static prototypes
- */
+** static prototypes
+*/
 static void mhl_draft (int, char *, int, int, char *, char *, int);
 static void copy_draft (int, char *, char *, int, int, int);
 static void copy_mime_draft (int);
@@ -256,13 +256,13 @@ main (int argc, char **argv)
 
        if (file) {
                /*
-                * Forwarding a file.
-                */
+               ** Forwarding a file.
+               */
                anot = 0;  /* don't want to annotate a file */
        } else {
                /*
-                * Forwarding a message.
-                */
+               ** Forwarding a message.
+               */
                if (!msgp)
                        msgs[msgp++] = "cur";
                if (!folder)
@@ -291,8 +291,8 @@ main (int argc, char **argv)
                adios (filter, "unable to read");
 
        /*
-        * Open form (component) file.
-        */
+       ** Open form (component) file.
+       */
        if (digest) {
                if (issue == 0) {
                        snprintf (buf, sizeof(buf), IFORMAT, digest);
@@ -316,8 +316,8 @@ main (int argc, char **argv)
                adios (drft, "unable to create");
 
        /*
-        * copy the components into the draft
-        */
+       ** copy the components into the draft
+       */
        cpydata (in, out, form, drft);
        close (in);
 
@@ -330,9 +330,9 @@ main (int argc, char **argv)
                close (out);
        } else {
                /*
-                * If filter file is defined, then format the
-                * messages into the draft using mhlproc.
-                */
+               ** If filter file is defined, then format the
+               ** messages into the draft using mhlproc.
+               */
                if (filter)
                        mhl_draft (out, digest, volume, issue, drft, filter, dashstuff);
                else if (mime)
@@ -366,10 +366,10 @@ main (int argc, char **argv)
 
 
 /*
- * Filter the messages you are forwarding, into the
- * draft calling the mhlproc, and reading its output
- * from a pipe.
- */
+** Filter the messages you are forwarding, into the
+** draft calling the mhlproc, and reading its output
+** from a pipe.
+*/
 
 static void
 mhl_draft (int out, char *digest, int volume, int issue,
@@ -414,10 +414,10 @@ mhl_draft (int out, char *digest, int volume, int issue,
                        }
 
                        /*
-                        * Are we dashstuffing (quoting) the lines that begin
-                        * with `-'.  We use the mhl default (don't add any flag)
-                        * unless the user has specified a specific flag.
-                        */
+                       ** Are we dashstuffing (quoting) the lines that begin
+                       ** with `-'.  We use the mhl default (don't add any
+                       ** flag) unless the user has specified a specific flag.
+                       */
                        if (dashstuff > 0)
                                vec[i++] = "-dashstuffing";
                        else if (dashstuff < 0)
@@ -428,12 +428,13 @@ mhl_draft (int out, char *digest, int volume, int issue,
                                                MAXARGS - i, vec[0]);
 
                        /*
-                        * Now add the message names to filter.  We can only
-                        * handle about 995 messages (because vec is fixed size),
-                        * but that should be plenty.
-                        */
-                       for (msgnum = mp->lowsel; msgnum <= mp->hghsel && i < sizeof(vec) - 1;
-                                               msgnum++)
+                       ** Now add the message names to filter.  We can only
+                       ** handle about 995 messages (because vec is fixed
+                       ** size), but that should be plenty.
+                       */
+                       for (msgnum = mp->lowsel;
+                                       msgnum <= mp->hghsel && i < sizeof(vec) - 1;
+                                       msgnum++)
                                if (is_selected (mp, msgnum))
                                        vec[i++] = getcpy (m_name (msgnum));
                        vec[i] = NULL;
@@ -454,13 +455,14 @@ mhl_draft (int out, char *digest, int volume, int issue,
 
 
 /*
- * Copy the messages into the draft.  The messages are
- * not filtered through the mhlproc.  Do dashstuffing if
- * necessary.
- */
+** Copy the messages into the draft.  The messages are
+** not filtered through the mhlproc.  Do dashstuffing if
+** necessary.
+*/
 
 static void
-copy_draft (int out, char *digest, char *file, int volume, int issue, int dashstuff)
+copy_draft (int out, char *digest, char *file, int volume, int issue,
+               int dashstuff)
 {
        int fd,i, msgcnt, msgnum;
        int len, buflen;
@@ -503,9 +505,9 @@ copy_draft (int out, char *digest, char *file, int volume, int issue, int dashst
                        }
 
                        /*
-                        * Copy the message.  Add RFC934 quoting (dashstuffing)
-                        * unless given the -nodashstuffing flag.
-                        */
+                       ** Copy the message.  Add RFC934 quoting (dashstuffing)
+                       ** unless given the -nodashstuffing flag.
+                       */
                        if (dashstuff >= 0)
                                cpydgst (fd, out, msgnam, file);
                        else
@@ -538,8 +540,8 @@ copy_draft (int out, char *digest, char *file, int volume, int issue, int dashst
 
 
 /*
- * Create a mhbuild composition file for forwarding message.
- */
+** Create a mhbuild composition file for forwarding message.
+*/
 
 static void
 copy_mime_draft (int out)