X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fdropsbr.c;h=62ba424e677cb77d9b0bc6b175c35ec2928c02f9;hb=84c6039eb7226c0ba0a8f708205e33d10950d2ae;hp=007186e0c92401218dc532ab760f528fb8e11f63;hpb=3916ab66ad5d183705ac12357621ea8661afd3c0;p=mmh diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 007186e..62ba424 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -11,7 +11,6 @@ #include #include -#include #include #ifdef HAVE_ERRNO_H @@ -104,7 +103,7 @@ mbx_open(char *file, uid_t uid, gid_t gid, mode_t mode) ** Append message to end of file or maildrop. */ int -mbx_copy(char *mailbox, int md, int fd, char *text, int noisy) +mbx_copy(char *mailbox, int md, int fd, int noisy) { int i, j; off_t start, stop; @@ -122,18 +121,11 @@ mbx_copy(char *mailbox, int md, int fd, char *text, int noisy) } start = lseek(md, (off_t) 0, SEEK_CUR); - /* If text is given, we add it to top of message */ - if (text) { - i = strlen(text); - if (write(md, text, i) != i) - return NOTOK; - } - for (j = 0; fgets(buffer, sizeof(buffer), fp) != NULL; j++) { /* ** Check the first line, and make some changes. */ - if (j == 0 && !text) { + if (j == 0) { /* ** Change the "Return-Path:" field ** (if in first line) back to "From ".