/*
* prototypes
*/
-int output_message (CT, char *);
int output_message_fp (CT, FILE *, char *);
/*
return OK;
}
-int
-output_message (CT ct, char *file)
-{
- FILE *fp;
- int status;
-
- if (! strcmp (file, "-")) {
- fp = stdout;
- } else if ((fp = fopen (file, "w")) == NULL) {
- advise (file, "unable to open for writing");
- return NOTOK;
- }
- status = output_message_fp(ct, fp, file);
- if (strcmp (file, "-")) fclose(fp);
- return status;
-}
-
/*
* Output a Content structure to a file.
* doesn't falsely match an mbox delimiter.
*/
cp = bufp;
- if (gotlen >= 5 && HasPrefix(cp, "From ")) {
+ if (gotlen >= 5 && has_prefix(cp, "From ")) {
fprintf (out, "=%02X", 'F');
cp++;
n += 3;