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 diff
     1.1 --- a/src/masqmail.c	Tue Dec 07 14:19:04 2010 -0300
     1.2 +++ b/src/masqmail.c	Tue Dec 07 17:09:07 2010 -0300
     1.3 @@ -460,16 +460,19 @@
     1.4  	} else if (strcmp(progname, "mailrm") == 0) {
     1.5  		mta_mode = MODE_MCMD;
     1.6  		M_cmd = "rm";
     1.7 -	} else if (strcmp(progname, "runq") == 0) {
     1.8 -		mta_mode = MODE_RUNQUEUE;
     1.9 -		do_runq = TRUE;
    1.10 +	} else if (strcmp(progname, "newaliases") == 0) {
    1.11 +		mta_mode = MODE_BI;
    1.12  	} else if (strcmp(progname, "rmail") == 0) {
    1.13  		/* the `rmail' alias should probably be removed now
    1.14  		   that we have the rmail script. But let's keep it
    1.15  		   for some while for compatibility. 2010-06-19 */
    1.16  		mta_mode = MODE_ACCEPT;
    1.17  		opt_i = TRUE;
    1.18 -	} else if (strcmp(progname, "smtpd") == 0 || strcmp(progname, "in.smtpd") == 0) {
    1.19 +	} else if (strcmp(progname, "runq") == 0) {
    1.20 +		mta_mode = MODE_RUNQUEUE;
    1.21 +		do_runq = TRUE;
    1.22 +	} else if (strcmp(progname, "smtpd") == 0
    1.23 +	           || strcmp(progname, "in.smtpd") == 0) {
    1.24  		mta_mode = MODE_SMTP;
    1.25  	}
    1.26