Mercurial > masqmail
changeset 284:4869321aa7bf
recognize the program name `newaliases' too
We still simply exit in this mode, but now we can create a link
called `newaliases' to masqmail instead of needing a script to
call `masqmail -bi'. `ln /bin/true /usr/bin/newaliases' would be
a fancy way too, but letting the MTA handle it is probably the
safer approach.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Tue, 07 Dec 2010 17:09:07 -0300 |
parents | 853b85616c98 |
children | bdcc2b42eb0f |
files | src/masqmail.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/masqmail.c Tue Dec 07 14:19:04 2010 -0300 +++ b/src/masqmail.c Tue Dec 07 17:09:07 2010 -0300 @@ -460,16 +460,19 @@ } else if (strcmp(progname, "mailrm") == 0) { mta_mode = MODE_MCMD; M_cmd = "rm"; - } else if (strcmp(progname, "runq") == 0) { - mta_mode = MODE_RUNQUEUE; - do_runq = TRUE; + } else if (strcmp(progname, "newaliases") == 0) { + mta_mode = MODE_BI; } else if (strcmp(progname, "rmail") == 0) { /* the `rmail' alias should probably be removed now that we have the rmail script. But let's keep it for some while for compatibility. 2010-06-19 */ mta_mode = MODE_ACCEPT; opt_i = TRUE; - } else if (strcmp(progname, "smtpd") == 0 || strcmp(progname, "in.smtpd") == 0) { + } else if (strcmp(progname, "runq") == 0) { + mta_mode = MODE_RUNQUEUE; + do_runq = TRUE; + } else if (strcmp(progname, "smtpd") == 0 + || strcmp(progname, "in.smtpd") == 0) { mta_mode = MODE_SMTP; }