Removed unused parameter from mbx_copy().
[mmh] / uip / dropsbr.c
index 007186e..dd7a2df 100644 (file)
@@ -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 ".