#include <h/mh.h>
#include <h/dropsbr.h>
-#include <h/mts.h>
#include <h/tws.h>
#ifdef HAVE_ERRNO_H
** 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;
}
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 ".