- * folder_read.c -- initialize folder structure and read 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_read.c -- initialize folder structure and read 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.
+*/
- * 1) Create the folder/message structure
- * 2) Read the directory (folder) and temporarily
- * record the numbers of the messages we have seen.
- * 3) Then allocate the array for message attributes and
- * set the initial flags for all messages we've seen.
- * 4) Read and initialize the sequence information.
- */
+** 1) Create the folder/message structure
+** 2) Read the directory (folder) and temporarily
+** record the numbers of the messages we have seen.
+** 3) Then allocate the array for message attributes and
+** set the initial flags for all messages we've seen.
+** 4) Read and initialize the sequence information.
+*/
{
int msgnum, prefix_len, len, *mi;
struct msgs *mp;
{
int msgnum, prefix_len, len, *mi;
struct msgs *mp;
- * Now increment count, and record message
- * number in a temporary place for now.
- */
+ ** Now increment count, and record message
+ ** number in a temporary place for now.
+ */
- /* skip any files beginning with backup prefix */
- if (!strncmp (dp->d_name, backup_prefix, prefix_len))
+ /*
+ ** skip any files beginning with
+ ** backup prefix
+ */
+ if (!strncmp(dp->d_name, backup_prefix, prefix_len))
/* Go ahead and allocate space for 100 additional messages. */
mp->hghoff = mp->hghmsg + 100;
/* for testing, allocate minimal necessary space */
/* Go ahead and allocate space for 100 additional messages. */
mp->hghoff = mp->hghmsg + 100;
/* for testing, allocate minimal necessary space */
- * Allocate space for status of each message.
- */
- mp->msgstats = mh_xmalloc (MSGSTATSIZE(mp, mp->lowoff, mp->hghoff));
+ ** Allocate space for status of each message.
+ */
+ mp->msgstats = mh_xmalloc(MSGSTATSIZE(mp, mp->lowoff, mp->hghoff));
- * Scan through the array of messages we've seen and
- * setup the initial flags for those messages in the
- * newly allocated mp->msgstats area.
- */
+ ** Scan through the array of messages we've seen and
+ ** setup the initial flags for those messages in the
+ ** newly allocated mp->msgstats area.
+ */