Reformated comments and long lines
[mmh] / sbr / folder_delmsgs.c
index 0636d11..5df5b5f 100644 (file)
@@ -1,22 +1,22 @@
 /*
- * folder_delmsgs.c -- "remove" SELECTED messages from a folder
- *
- * 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.
- */
+** folder_delmsgs.c -- "remove" SELECTED messages from a folder
+**
+** 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>
 
 /*
- * 1) If we are using an external rmmproc, then exec it.
- * 2) Else if unlink_msgs is non-zero, then unlink the
- *    SELECTED messages.
- * 3) Else rename SELECTED messages by prefixing name
- *    with backup_prefix.
- *
- * If there is an error, return -1, else return 0.
- */
+** 1) If we are using an external rmmproc, then exec it.
+** 2) Else if unlink_msgs is non-zero, then unlink the
+**    SELECTED messages.
+** 3) Else rename SELECTED messages by prefixing name
+**    with backup_prefix.
+**
+** If there is an error, return -1, else return 0.
+*/
 
 int
 folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
@@ -27,8 +27,8 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
        char msgpath[BUFSIZ];
 
        /*
-        * If "rmmproc" is defined, exec it to remove messages.
-        */
+       ** If "rmmproc" is defined, exec it to remove messages.
+       */
        if (rmmproc) {
                /* Unset the EXISTS flag for each message to be removed */
                for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
@@ -73,8 +73,8 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
        }
 
        /*
-        * Either unlink or rename the SELECTED messages
-        */
+       ** Either unlink or rename the SELECTED messages
+       */
        for (msgnum = mp->lowsel; msgnum <= mp->hghsel; msgnum++) {
                if (is_selected (mp, msgnum)) {
                        /* unselect message */
@@ -82,12 +82,14 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
                        mp->numsel--;
 
                        /*
-                        * Run the external hook on the message if one was specified in the context.
-                        * All we have is the message number; we have changed to the directory
-                        * containing the message.  So, we need to extract that directory to form
-                        * the complete path.  Note that the caller knows the directory, but has
-                        * no way of passing that to us.
-                        */
+                       ** Run the external hook on the message if one
+                       ** was specified in the context.  All we have
+                       ** is the message number; we have changed to
+                       ** the directory containing the message.  So,
+                       ** we need to extract that directory to form the
+                       ** complete path.  Note that the caller knows the
+                       ** directory, but has no way of passing that to us.
+                       */
 
                        if (!nohook) {
                                (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum);