#include <time.h>
int debugsw = 0; /* global */
-int verbosesw = 0;
-char *altmsg = NULL;
+char *altmsg = NULL;
char *annotext = NULL;
char *distfile = NULL;
debugsw++;
/* fall */
case VERBSW:
- verbosesw += 2;
case NVERBSW:
- verbosesw--;
vec[vecp++] = --cp;
continue;
}
if (annotext) {
anno(st);
}
- }
- else {
+ } else {
+ /* spost failed */
advise(NULL, "%s", strexit(status));
- if (verbosesw <= 0) {
- advise(NULL, "Try using -v to get better output");
- }
if (distfile) {
unlink(drft);
if (rename(backup, drft) == NOTOK) {
return "spost or sendmail killed by signal";
}
if (!WIFEXITED(status)) {
- return "sendmail stopt for unknown reasen, message not deliverd to anyone";
+ return "message not delivered to anyone";
}
switch (WEXITSTATUS(status)) {
- case EX_TEMPFAIL:
- return "Temporary error, maby the MTA hase queued the Mail";
- default:
- return "sendmail stopt for unknown reasen, message not deliverd to anyone";
+ case EX_TEMPFAIL:
+ return "Temporary error, maybe the MTA has queued the message";
+ default:
+ return "message not delivered to anyone";
}
}