Re: [Exim] Python embedded in Exim

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Barry Pederson
Datum:  
To: exim-users
Betreff: Re: [Exim] Python embedded in Exim
"Jeffrey C. Ollie" wrote:
>
>
> There are also two new command line switches -ys and -yd that will
> force an immediate startup of Python or delay startup, overriding
> python_at_start.


Rather than chew up another option letter 'y' for python, you could use -pys
and -pyd instead. This bit in exim.c should work:

-------------
    case 'p':


    /* -ps: force Perl startup; -pd force delayed Perl startup */
    /* -pys: force Python startup; -pyd force delayed Python startup */


    if (0) ;
    #ifdef EXIM_PERL
    else if (*argrest == 's' && argrest[1] == 0) perl_start_option = 1;
    else if (*argrest == 'd' && argrest[1] == 0) perl_start_option = -1;
    #endif
    #ifdef EXIM_PYTHON
    else if (strcmp(argrest, "yd") == 0) python_start_option = 1;
    else if (strcmp(argrest, "ys") == 0) python_start_option = -1;
    #endif
    else badarg = TRUE;
    break;
---------------


Barry