2 ** folder_free.c -- free a folder/message structure
4 ** This code is Copyright (c) 2002, by the authors of nmh. See the
5 ** COPYRIGHT file in the root directory of the nmh distribution for
6 ** complete copyright information.
13 folder_free(struct msgs *mp)
21 mh_free0(&(mp->foldpath));
23 /* free the sequence names */
24 for (i = 0; mp->msgattrs[i]; i++)
25 mh_free0(&(mp->msgattrs[i]));
27 mh_free0(&(mp->msgstats)); /* free message status area */
28 mh_free0(&mp); /* free main folder structure */