-
-/*
- * whatnowsbr.c -- the WhatNow shell
+/* whatnowsbr.c -- the WhatNow shell
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
X("prompt string", 4, PRMPTSW) \
X("version", 0, VERSIONSW) \
X("help", 0, HELPSW) \
- X("attach header-field-name", -6, ATTACHSW) \
- X("noattach", -8, NOATTACHSW) \
#define X(sw, minchars, id) id,
if (!(myprompt = *argp++) || *myprompt == '-')
adios (NULL, "missing argument to %s", argp[-2]);
continue;
-
- case ATTACHSW:
- inform("The -attach switch is deprecated");
- continue;
-
- case NOATTACHSW:
- inform("The -noattach switch is deprecated");
- continue;
}
}
if (drft)
X("saslmech", SASLminc(5), SASLMECHSW) \
X("authservice", SASLminc(0), AUTHSERVICESW) \
X("user username", SASLminc(4), USERSW) \
- X("attach fieldname", 6, SNDATTACHSW) \
- X("noattach", 0, SNDNOATTACHSW) \
- X("attachformat", 7, SNDATTACHFORMAT) \
X("port server-port-name/number", 4, PORTSW) \
X("tls", TLSminc(-3), TLSSW) \
X("initialtls", TLSminc(-10), INITTLSSW) \
/* FALLTHRU */
case SNDRFSW:
continue;
-
- case SNDATTACHSW:
- inform("The -attach switch is deprecated");
- continue;
- case SNDNOATTACHSW:
- inform("The -noattach switch is deprecated");
- continue;
-
- case SNDATTACHFORMAT:
- inform("The -attachformat switch is deprecated");
- continue;
}
}
inform("usage: %s [switches]", sp);
{
FILE *f;
m_getfld_state_t gstate = 0;
- char buf[BUFSIZ], name[NAMESZ];
+ char buf[NMH_BUFSIZ], name[NAMESZ];
int state, retval = 0;
if ((f = fopen(drft, "r")) == NULL) {