/*
- * viamail.c -- send multiple files in a MIME 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.
- */
+** viamail.c -- send multiple files in a MIME 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 <fcntl.h>
{ "description text", 0 },
#define COMMENTSW 5
{ "comment text", 0 },
-#define VERBSW 7
+#define VERBSW 6
{ "verbose", 0 },
-#define NVERBSW 8
+#define NVERBSW 7
{ "noverbose", 0 },
-#define VERSIONSW 9
+#define VERSIONSW 8
{ "version", 0 },
-#define HELPSW 10
+#define HELPSW 9
{ "help", 0 },
-#define DEBUGSW 11
+#define DEBUGSW 10
{ "debug", -5 },
{ NULL, 0 }
};
int writeBase64aux (FILE *, FILE *);
/*
- * static prototypes
- */
+** static prototypes
+*/
static int via_mail (char *, char *, char *, char *, char *, char *);
adios (NULL, "-%s unknown", cp);
case HELPSW:
- snprintf (buf, sizeof(buf), "%s [switches]", invo_name);
+ snprintf (buf, sizeof(buf), "%s [switches]",
+ invo_name);
print_help (buf, switches, 1);
done (1);
case VERSIONSW:
case TOSW:
if (!(f1 = *argp++))
- adios (NULL, "missing argument to %s", argp[-2]);
+ adios (NULL, "missing argument to %s",
+ argp[-2]);
continue;
case SUBJECTSW:
if (!(f2 = *argp++))
- adios (NULL, "missing argument to %s", argp[-2]);
+ adios (NULL, "missing argument to %s",
+ argp[-2]);
continue;
case PARAMSW:
if (!(f3 = *argp++))
- adios (NULL, "missing argument to %s", argp[-2]);
+ adios (NULL, "missing argument to %s",
+ argp[-2]);
continue;
case DESCRIPTSW:
if (!(f4 = *argp++))
- adios (NULL, "missing argument to %s", argp[-2]);
+ adios (NULL, "missing argument to %s",
+ argp[-2]);
continue;
case COMMENTSW:
if (!(f5 = *argp++))
- adios (NULL, "missing argument to %s", argp[-2]);
+ adios (NULL, "missing argument to %s",
+ argp[-2]);
continue;
case FROMSW:
if (!(f7 = *argp++))
- adios (NULL, "missing argument to %s", argp[-2]);
+ adios (NULL, "missing argument to %s",
+ argp[-2]);
continue;
case VERBSW:
/*
- * VIAMAIL
- */
+** VIAMAIL
+*/
static int
via_mail (char *mailsw, char *subjsw, char *parmsw, char *descsw,