- * rmf.c -- remove 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.
- */
+** rmf.c -- remove 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.
+*/
- snprintf (buf, sizeof(buf), "%s [+folder] [switches]",
- invo_name);
+ snprintf (buf, sizeof(buf), "%s [+folder] [switches]", invo_name);
char *cfolder = context_find(pfolder);
if (cfolder && strcmp (cfolder, newfolder)) {
printf ("[+%s now current]\n", newfolder);
char *cfolder = context_find(pfolder);
if (cfolder && strcmp (cfolder, newfolder)) {
printf ("[+%s now current]\n", newfolder);
- if (access (".", W_OK) != NOTOK && access ("..", W_OK) != NOTOK)
+ if (access (".", W_OK) != NOTOK &&
+ access ("..", W_OK) != NOTOK)
- advise (NULL, "you have no profile entry for the %s folder +%s",
- i == NOTOK ? "unreadable" : "read-only", folder);
+ advise (NULL, "you have no profile entry for the %s folder +%s", i == NOTOK ? "unreadable" : "read-only", folder);
- || strncmp (dp->d_name, backup_prefix, j) == 0)
+ || strncmp (dp->d_name,
+ backup_prefix, j) == 0)
- * Search context list for keys that look like
- * "atr-something-folderpath", and remove them.
- */
+ ** Search context list for keys that look like
+ ** "atr-something-folderpath", and remove them.
+ */
for (np = m_defs, pp = NULL; np; np = np->n_next) {
if (ssequal ("atr-", np->n_name)
&& (j = strlen (np->n_name) - plen) > alen
&& *(np->n_name + j) == '-'
&& strcmp (cp, np->n_name + j + 1) == 0) {
if (!np->n_context)
for (np = m_defs, pp = NULL; np; np = np->n_next) {
if (ssequal ("atr-", np->n_name)
&& (j = strlen (np->n_name) - plen) > alen
&& *(np->n_name + j) == '-'
&& strcmp (cp, np->n_name + j + 1) == 0) {
if (!np->n_context)