projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cosmetic changes.
[mmh]
/
uip
/
dropsbr.c
diff --git
a/uip/dropsbr.c
b/uip/dropsbr.c
index
007186e
..
62ba424
100644
(file)
--- a/
uip/dropsbr.c
+++ b/
uip/dropsbr.c
@@
-11,7
+11,6
@@
#include <h/mh.h>
#include <h/dropsbr.h>
#include <h/mh.h>
#include <h/dropsbr.h>
-#include <h/mts.h>
#include <h/tws.h>
#ifdef HAVE_ERRNO_H
#include <h/tws.h>
#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
** 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;
{
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);
}
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.
*/
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 ".
/*
** Change the "Return-Path:" field
** (if in first line) back to "From ".