projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed the mbx_* functions to mbox_*, because mbx is another mail box format.
[mmh]
/
uip
/
slocal.c
diff --git
a/uip/slocal.c
b/uip/slocal.c
index
0ef54c6
..
4e8c30d
100644
(file)
--- a/
uip/slocal.c
+++ b/
uip/slocal.c
@@
-9,7
+9,7
@@
/*
** Under sendmail, users should add the line
**
/*
** Under sendmail, users should add the line
**
-** "| /usr/local/nmh/lib/slocal"
+** "| /usr/local/mmh/bin/slocal"
**
** to their $HOME/.forward file.
**
**
** to their $HOME/.forward file.
**
@@
-25,7
+25,6
@@
#include <h/rcvmail.h>
#include <h/signals.h>
#include <h/tws.h>
#include <h/rcvmail.h>
#include <h/signals.h>
#include <h/tws.h>
-#include <h/mts.h>
#include <h/utils.h>
#include <pwd.h>
#include <h/utils.h>
#include <pwd.h>
@@
-1034,7
+1033,7
@@
usr_file(int fd, char *mailbox)
verbose_printf(" (mbox style)");
/* open and lock the file */
verbose_printf(" (mbox style)");
/* open and lock the file */
- if ((md = mbx_open(mailbox, pw->pw_uid, pw->pw_gid,
+ if ((md = mbox_open(mailbox, pw->pw_uid, pw->pw_gid,
m_gmprot())) == -1) {
if (verbose)
adorn("", "unable to open:");
m_gmprot())) == -1) {
if (verbose)
adorn("", "unable to open:");
@@
-1044,14
+1043,14
@@
usr_file(int fd, char *mailbox)
lseek(fd, (off_t) 0, SEEK_SET);
/* append message to file */
lseek(fd, (off_t) 0, SEEK_SET);
/* append message to file */
- if (mbx_copy(mailbox, md, fd, verbose) == -1) {
+ if (mbox_copy(md, fd) == -1) {
if (verbose)
adorn("", "error writing to:");
return -1;
}
/* close and unlock file */
if (verbose)
adorn("", "error writing to:");
return -1;
}
/* close and unlock file */
- if (mbx_close(mailbox, md) == NOTOK) {
+ if (mbox_close(mailbox, md) == NOTOK) {
if (verbose)
adorn("", "error closing:");
return -1;
if (verbose)
adorn("", "error closing:");
return -1;