9 date 93.08.25.17.27.19; author jromine; state Exp;
14 date 92.12.15.00.20.22; author jromine; state Exp;
19 date 92.11.04.00.57.54; author jromine; state Exp;
24 date 92.01.31.22.24.46; author jromine; state Exp;
29 date 92.01.31.22.24.30; author jromine; state Exp;
40 @off_t fixes for BSD44
43 @/* rcvpack.c - a rcvmail program to keep a copy */
45 static char ident[] = "@@(#)$Id: rcvpack.c,v 1.4 1992/12/15 00:20:22 jromine Exp jromine $";
49 #include "../h/dropsbr.h"
50 #include "../h/rcvmail.h"
51 #include "../zotnet/tws.h"
52 #include "../zotnet/mts.h"
59 static struct swit switches[] = {
84 setlocale(LC_ALL, "");
86 invo_name = r1bindex (argv[0], '/');
88 if ((cp = m_find (invo_name)) != NULL) {
89 ap = brkstring (cp = getcpy (cp), " ", "\n");
90 ap = copyip (ap, arguments);
94 (void) copyip (argv + 1, ap);
99 while (cp = *argp++) {
101 switch (smatch (++cp, switches)) {
103 ambigsw (cp, switches);
106 adios (NULLCP, "-%s unknown", cp);
108 (void) sprintf (buf, "%s [switches] file", invo_name);
109 help (buf, switches);
113 adios (NULLCP, "only one file at a time!");
121 adios (NULLCP, "%s [switches] file", invo_name);
123 (void) sprintf (ddate, "Delivery-Date: %s\n", dtimenow ());
125 if ((md = mbx_open (file, getuid (), getgid (), m_gmprot ())) == NOTOK
126 || mbx_copy (file, md, fileno (stdin), 1, ddate, 0) == NOTOK
127 || mbx_close (file, md) == NOTOK) {
129 (void) mbx_close (file, md);
145 static char ident[] = "@@(#)$Id: rcvpack.c,v 1.3 1992/11/04 00:57:54 jromine Exp jromine $";
162 static char ident[] = "@@(#)$Id: rcvpack.c,v 1.2 1992/01/31 22:24:46 jromine Exp jromine $";
174 static char ident[] = "@@(#)$Id: scan.c,v 1.9 1992/01/23 23:06:45 jromine Exp $";