summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
79ed220)
RCV_MOK was 0, RCV_MBX was 1. They were used for exit(3) and done().
`exit(0)' is clearer than another layer of abstraction, and the commands
that used them didn't seem to document the exit statuses anyway. The
included by other means, at least on one platform.
h/nmh.h \
h/oauth.h \
h/prototypes.h \
h/nmh.h \
h/oauth.h \
h/prototypes.h \
h/signals.h \
h/tws.h \
h/utils.h \
h/signals.h \
h/tws.h \
h/utils.h \
+++ /dev/null
-/* rcvmail.h -- rcvmail hook definitions
- */
-
-#include <ctype.h>
-#include <errno.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include "mts/smtp/smtp.h"
-
-
-#define RCV_MOK 0
-#define RCV_MBX 1
#include "sbr/arglist.h"
#include "sbr/error.h"
#include "h/fmt_scan.h"
#include "sbr/arglist.h"
#include "sbr/error.h"
#include "h/fmt_scan.h"
#include "h/tws.h"
#include "h/mts.h"
#include "h/done.h"
#include "h/tws.h"
#include "h/mts.h"
#include "h/done.h"
if (tmpfil[0])
(void) m_unlink (tmpfil);
if (tmpfil[0])
(void) m_unlink (tmpfil);
- exit (status ? RCV_MBX : RCV_MOK);
#include "sbr/print_help.h"
#include "sbr/error.h"
#include "h/dropsbr.h"
#include "sbr/print_help.h"
#include "sbr/error.h"
#include "h/dropsbr.h"
#include "h/tws.h"
#include "h/mts.h"
#include "h/done.h"
#include "h/tws.h"
#include "h/mts.h"
#include "h/done.h"
/* open and lock the file */
if ((md = mbx_open (file, mbx_style, getuid(), getgid(), m_gmprot())) == NOTOK)
/* open and lock the file */
if ((md = mbx_open (file, mbx_style, getuid(), getgid(), m_gmprot())) == NOTOK)
/* append the message */
if (mbx_copy (file, mbx_style, md, fileno(stdin), NULL) == NOTOK) {
mbx_close (file, md);
/* append the message */
if (mbx_copy (file, mbx_style, md, fileno(stdin), NULL) == NOTOK) {
mbx_close (file, md);
}
/* close and unlock the file */
if (mbx_close (file, md) == NOTOK)
}
/* close and unlock the file */
if (mbx_close (file, md) == NOTOK)
#include "sbr/error.h"
#include "h/signals.h"
#include <setjmp.h>
#include "sbr/error.h"
#include "h/signals.h"
#include <setjmp.h>
#include "h/fmt_scan.h"
#include "h/tws.h"
#include "h/mts.h"
#include "h/fmt_scan.h"
#include "h/tws.h"
#include "h/mts.h"
vec[vecp] = 0;
if ((md = vecp ? message_fd (vec) : header_fd ()) == NOTOK)
vec[vecp] = 0;
if ((md = vecp ? message_fd (vec) : header_fd ()) == NOTOK)
NMH_UNUSED (utp);
#endif /* HAVE_GETUTXENT */
NMH_UNUSED (utp);
#endif /* HAVE_GETUTXENT */
#include "sbr/print_help.h"
#include "sbr/error.h"
#include "h/dropsbr.h"
#include "sbr/print_help.h"
#include "sbr/error.h"
#include "h/dropsbr.h"
#include "h/signals.h"
#include <setjmp.h>
#include "h/tws.h"
#include "h/signals.h"
#include <setjmp.h>
#include "h/tws.h"
/* deliver the message */
status = localmail (fd, mdlvr);
/* deliver the message */
status = localmail (fd, mdlvr);
- done (status != -1 ? RCV_MOK : RCV_MBX);
+ done(status != -1 ? 0 : 1);