*
* This prevents the component from being found via fmt_findcomp(),
* which makes sure no text gets added to it when the message is processed.
- *
- * getcpy(NULL) returns a malloc'd zero-length string, so it can safely
- * be free()'d later.
*/
if (!ccto) {
cptr = fmt_findcomp ("to");
int msg_count = sizeof tmpbuf;
state = m_getfld (&gstate, name, tmpbuf, &msg_count, inb);
switch (state) {
- case FLD:
- case FLDPLUS:
+ case FLD:
+ case FLDPLUS:
/*
* if we're interested in this component, save a pointer
* to the component text, then start using our next free
}
break;
- case LENERR:
- case FMTERR:
- case BODY:
+ case LENERR:
+ case FMTERR:
+ case BODY:
case FILEEOF:
goto finished;
- default:
+ default:
adios (NULL, "m_getfld() returned %d", state);
}
}
arglist = argsplit(mhlproc, &mhl, &argnum);
switch (pid = fork()) {
- case NOTOK:
+ case NOTOK:
adios ("fork", "unable to");
- case OK:
+ case OK:
dup2 (fileno (in), fileno (stdin));
dup2 (fileno (out), fileno (stdout));
closefds (3);
}
_exit (-1);
- default:
+ default:
if (pidXwait (pid, mhl))
done (1);
fseek (out, 0L, SEEK_END);
const char *no_at_sign = "no at-sign after local-part";
adr_nodep->escape_local_part =
- ! strncmp (error, no_at_sign, strlen (no_at_sign));
+ has_prefix(error, no_at_sign);
} else {
mnfree (mp);
}