X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=5df5b5f5c40ce520cc2fb813e4426688e7a0ff6e;hp=0636d119e64d80b5625ab03bdca5d7085bf0dfa7;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 0636d11..5df5b5f 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -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 /* - * 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);