-/*
- *
- * Run a program that hooks into some other system. The first argument is
+/* Run a program that hooks into some other system. The first argument is
* name of the hook to use, the second is the full path name of a mail message.
* The third argument is also the full path name of a mail message, or a NULL
* pointer if it isn't needed. Look in the context for an error message if
int vecp; /* Vector index */
char *program; /* Name of program to execute */
- static int did_message = 0; /* set if we've already output a message */
+ static bool did_message; /* set if we've already output a message */
if ((hook = context_find(hook_name)) == NULL)
return OK;
if (status == OK)
return OK;
- if (did_message == 0) {
+ if (!did_message) {
char *msghook;
if ((msghook = context_find("msg-hook")) != NULL)
inform("%s", msghook);
snprintf(errbuf, sizeof(errbuf), "external hook \"%s\"", hook);
pidstatus(status, stderr, errbuf);
}
- did_message = 1;
+ did_message = true;
}
return NOTOK;