/*
- * repl.c -- reply to a message
- *
- * 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.
- */
+** repl.c -- reply to a message
+**
+** 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>
#include <h/utils.h>
/*
- * prototypes
- */
+** prototypes
+*/
void docc (char *, int);
adios (NULL, "-%s unknown", cp);
case HELPSW:
- snprintf (buf, sizeof(buf), "%s: [+folder] [msg] [switches]",
- invo_name);
+ snprintf (buf, sizeof(buf), "%s: [+folder] [msg] [switches]", invo_name);
print_help (buf, switches, 1);
done (0);
case VERSIONSW:
continue;
case WHATSW:
- if (!(whatnowproc = *argp++) || *whatnowproc == '-')
+ if (!(whatnowproc = *argp++) ||
+ *whatnowproc == '-')
adios (NULL, "missing argument to %s", argp[-2]);
nwhat = 0;
continue;
adios (NULL, "missing argument to %s", argp[-2]);
dp = NULL;
if (*cp == '@')
- cp = dp = path (cp + 1, TSUBCWF);
+ cp = dp = path (cp + 1,
+ TSUBCWF);
if (fcc)
fcc = add (", ", fcc);
fcc = add (cp, fcc);
if (file) {
/*
- * We are replying to a file.
- */
+ ** We are replying to a file.
+ */
anot = 0; /* we don't want to annotate a file */
} else {
/*
- * We are replying to a message.
- */
+ ** We are replying to a message.
+ */
if (!msg)
msg = "cur";
if (!folder)
if (mp->numsel > 1)
adios (NULL, "only one message at a time!");
- context_replace (pfolder, folder); /* update current folder */
+ context_replace (pfolder, folder); /* update current folder */
seq_setcur (mp, mp->lowsel); /* update current message */
seq_save (mp); /* synchronize sequences */
context_save (); /* save the context file */
ambigsw (cp, ccswitches);
done (1);
case UNKWNSW:
- adios (NULL, "-%scc %s unknown", ccflag ? "" : "no", cp);
+ adios (NULL, "-%scc %s unknown",
+ ccflag ? "" : "no", cp);
case CTOSW:
ccto = ccflag;