comparison src/masqmail.c @ 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 ba53e648906f
children 84ea0b1fc8f8
comparison
equal deleted inserted replaced
283:853b85616c98 284:4869321aa7bf
458 if (strcmp(progname, "mailq") == 0) { 458 if (strcmp(progname, "mailq") == 0) {
459 mta_mode = MODE_LIST; 459 mta_mode = MODE_LIST;
460 } else if (strcmp(progname, "mailrm") == 0) { 460 } else if (strcmp(progname, "mailrm") == 0) {
461 mta_mode = MODE_MCMD; 461 mta_mode = MODE_MCMD;
462 M_cmd = "rm"; 462 M_cmd = "rm";
463 } else if (strcmp(progname, "runq") == 0) { 463 } else if (strcmp(progname, "newaliases") == 0) {
464 mta_mode = MODE_RUNQUEUE; 464 mta_mode = MODE_BI;
465 do_runq = TRUE;
466 } else if (strcmp(progname, "rmail") == 0) { 465 } else if (strcmp(progname, "rmail") == 0) {
467 /* the `rmail' alias should probably be removed now 466 /* the `rmail' alias should probably be removed now
468 that we have the rmail script. But let's keep it 467 that we have the rmail script. But let's keep it
469 for some while for compatibility. 2010-06-19 */ 468 for some while for compatibility. 2010-06-19 */
470 mta_mode = MODE_ACCEPT; 469 mta_mode = MODE_ACCEPT;
471 opt_i = TRUE; 470 opt_i = TRUE;
472 } else if (strcmp(progname, "smtpd") == 0 || strcmp(progname, "in.smtpd") == 0) { 471 } else if (strcmp(progname, "runq") == 0) {
472 mta_mode = MODE_RUNQUEUE;
473 do_runq = TRUE;
474 } else if (strcmp(progname, "smtpd") == 0
475 || strcmp(progname, "in.smtpd") == 0) {
473 mta_mode = MODE_SMTP; 476 mta_mode = MODE_SMTP;
474 } 477 }
475 478
476 /* parse cmd line */ 479 /* parse cmd line */
477 for (arg=1; arg<argc && argv[arg][0]=='-'; arg++) { 480 for (arg=1; arg<argc && argv[arg][0]=='-'; arg++) {