X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/b4b6a38aefa551bce57d1d5fbb31cf5430a40c21..9322ba2854211794c27fae9468768b80b767c211:/uip/dropsbr.c diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 937ff827..baf8268b 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -350,7 +350,7 @@ mbx_copy (char *mailbox, int mbx_style, int md, int fd, * Change the "Return-Path:" field (if in first line) * back to "From ". */ - if (HasPrefix(buffer, "Return-Path:")) { + if (has_prefix(buffer, "Return-Path:")) { char tmpbuffer[BUFSIZ]; char *tp, *ep, *fp; @@ -361,7 +361,7 @@ mbx_copy (char *mailbox, int mbx_style, int md, int fd, tp = dctime(dlocaltimenow()); snprintf (buffer, sizeof(buffer), "From %.*s %s", (int)(fp - ep), ep, tp); - } else if (HasPrefix(buffer, "X-Envelope-From:")) { + } else if (has_prefix(buffer, "X-Envelope-From:")) { /* * Change the "X-Envelope-From:" field * (if first line) back to "From ". @@ -372,7 +372,7 @@ mbx_copy (char *mailbox, int mbx_style, int md, int fd, strncpy(tmpbuffer, buffer, sizeof(tmpbuffer)); ep = tmpbuffer + 17; snprintf (buffer, sizeof(buffer), "From %s", ep); - } else if (!HasPrefix(buffer, "From ")) { + } else if (!has_prefix(buffer, "From ")) { /* * If there is already a "From " line, * then leave it alone. Else we add one. @@ -391,7 +391,7 @@ mbx_copy (char *mailbox, int mbx_style, int md, int fd, * If this is not first line, and begins with * "From ", then prepend line with ">". */ - if (j != 0 && HasPrefix(buffer, "From ")) { + if (j != 0 && has_prefix(buffer, "From ")) { if (write (md, ">", 1) < 0) { advise (mailbox, "write"); }