static int globbed = 0; /* have we built "vars" table yet? */
static int parsed = 0; /* have we built header field table yet */
static int utmped = 0; /* have we scanned umtp(x) file yet */
static int globbed = 0; /* have we built "vars" table yet? */
static int parsed = 0; /* have we built header field table yet */
static int utmped = 0; /* have we scanned umtp(x) file yet */
char mailbox[BUFSIZ], tmpfil[BUFSIZ];
char **argp, **arguments;
char mailbox[BUFSIZ], tmpfil[BUFSIZ];
char **argp, **arguments;
mts_init ();
arguments = getarguments (invo_name, argc, argv, 0);
mts_init ();
arguments = getarguments (invo_name, argc, argv, 0);
case HELPSW:
snprintf (buf, sizeof(buf), "%s [switches]", invo_name);
case HELPSW:
snprintf (buf, sizeof(buf), "%s [switches]", invo_name);
snprintf (ddate, sizeof(ddate), "Delivery-Date: %s\n", dtimenow (0));
/*
snprintf (ddate, sizeof(ddate), "Delivery-Date: %s\n", dtimenow (0));
/*
if (debug)
debug_printf ("retrieving message from file \"%s\"\n", file);
if ((fd = copy_message (tempfd, tmpfil, 1)) == -1)
if (debug)
debug_printf ("retrieving message from file \"%s\"\n", file);
if ((fd = copy_message (tempfd, tmpfil, 1)) == -1)
if (debug)
debug_printf ("retrieving message from stdin\n");
if ((fd = copy_message (fileno (stdin), tmpfil, 1)) == -1)
if (debug)
debug_printf ("retrieving message from stdin\n");
if ((fd = copy_message (fileno (stdin), tmpfil, 1)) == -1)
(void) m_unlink (tmpfil);
if (!(fp = fdopen (fd, "r+")))
(void) m_unlink (tmpfil);
if (!(fp = fdopen (fd, "r+")))
char *field, *pattern, *action, *result, *string;
char buffer[BUFSIZ], tmpbuf[BUFSIZ];
char *vec[NVEC];
char *field, *pattern, *action, *result, *string;
char buffer[BUFSIZ], tmpbuf[BUFSIZ];
char *vec[NVEC];
/* read and process delivery file */
while (fgets (buffer, sizeof(buffer), fp)) {
/* read and process delivery file */
while (fgets (buffer, sizeof(buffer), fp)) {
* Take action, but don't consider delivered, even
* if action is successful
*/
* Take action, but don't consider delivered, even
* if action is successful
*/
*/
if ((p = lookup (hdrs, field)) && (p->p_value != NULL)
&& matches (p->p_value, pattern)) {
*/
if ((p = lookup (hdrs, field)) && (p->p_value != NULL)
&& matches (p->p_value, pattern)) {
- debug_printf ("vars[%ld]: name=\"%s\" value=\"%s\"\n",
- p - vars, p->p_name, trim(p->p_value));
+ debug_printf ("vars[%td]: name=\"%s\" value=\"%s\"\n",
+ p - vars, p->p_name, trim(p->p_value));
else
pidstatus (status, stdout, ", failed");
}
else
pidstatus (status, stdout, ", failed");
}