X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fdropsbr.c;fp=uip%2Fdropsbr.c;h=dd7a2df53cf1ef7137005ea9f68f3582da14056d;hp=007186e0c92401218dc532ab760f528fb8e11f63;hb=de448e64862babc8ea92d6ee3f61f68ba3915128;hpb=4ab286d12be3ccc5f3000673857b4f69b689c69b diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 007186e..dd7a2df 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -104,7 +104,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 +122,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 ".