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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+
part text/plain 4
foo
EOF
*/
for (compnum = 1, state = FLD2;;) {
switch (state = m_getfld2(state, &f, in)) {
+ case LENERR2:
+ state = FLD2;
case FLD2:
compnum++;
adios(EX_CONFIG, NULL, "draft has empty body -- no directives!");
/* NOTREACHED */
- case LENERR2:
case FMTERR2:
case IOERR2:
adios(EX_CONFIG, NULL, "message format error in component #%d",
for (state = FLD2; !eflag; ) {
switch (state = m_getfld2(state, &f, fp)) {
+ case LENERR2:
+ state = FLD2;
case FLD2:
for (ip = ignores; *ip; ip++)
if (simplematch(*ip, f.name)) {
}
return;
- case LENERR2:
case FMTERR2:
case IOERR2:
advise(NULL, "format error in message %s", mname);