Renamed the mbx_* functions to mbox_*, because mbx is another mail box format.
[mmh] / uip / slocal.c
index 6b78c1e..4e8c30d 100644 (file)
@@ -1033,7 +1033,7 @@ usr_file(int fd, char *mailbox)
                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:");
@@ -1043,14 +1043,14 @@ usr_file(int fd, char *mailbox)
        lseek(fd, (off_t) 0, SEEK_SET);
 
        /* append message to file */
-       if (mbx_copy(md, fd) == -1) {
+       if (mbox_copy(md, fd) == -1) {
                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;