X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;h=df0dc7f6524066892a0509ed1dd5228be5e06d44;hp=f8f9d9537931be93650a662e70d8cfff4b4e4423;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=04a3dfc70394a517a79340a7d3ecd9c6a23d0bee diff --git a/uip/slocal.c b/uip/slocal.c index f8f9d95..df0dc7f 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -72,6 +72,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; static int globbed = 0; /* have we built "vars" table yet? */ static int parsed = 0; /* have we built header field table yet */ @@ -758,10 +759,14 @@ parse(int fd) */ for (i = 0, state = FLD2;;) { switch (state = m_getfld2(state, &f, in)) { + case LENERR2: + state = FLD2; + /* FALL */ + case FLD2: lp = mh_xstrdup(f.value); for (p = hdrs; p->p_name; p++) { - if (mh_strcasecmp(p->p_name, f.name)!=0) { + if (mh_strcasecmp(p->p_name, f.name) == 0) { if (!(p->p_flags & P_HID)) { if ((cp = p->p_value)) { if (p->p_flags & P_ADR) { @@ -793,7 +798,6 @@ parse(int fd) case FILEEOF2: break; - case LENERR2: case FMTERR2: case IOERR2: advise(NULL, "format error in message");