Re: [exim] Re(2): pipe message to app

Etusivu
Poista viesti
Vastaa
Lähettäjä: David Saez Padros
Päiväys:  
Vastaanottaja: Bill Hacker
Kopio: Exim Users
Aihe: Re: [exim] Re(2): pipe message to app
Hi !!

>> headers_add = ${dlfunc{pipe_message.o}{pipe_message}\
>>     {/usr/bin/dspam --classify --user xxxx}}

>>
>> tomorrow i will try to give it a test
>>
> While testing, let me know if you have any thoughts on the (partially)
> documented
> feature of dlfunc to call a C wrapper that in turn calls some other
> language's code.


i have done all in c, there is no wrapper

> Not that a pipe cannot also do that, but dlfunc *might* be able to call
> any-posix-compliant
> binary without caring if the *source* was in C or some other language.


what do you mean ? by now i have a working test that open a
read/write pipe to dspam (pipe, fork, dup2, etc ..) that is able
to inject in stdin and read dspam stdout. The only concern that i
have is how to make it work (get the whole message) while expanded
in a transport.

--
Best regards ...

----------------------------------------------------------------
    David Saez Padros                http://www.ols.es
    On-Line Services 2000 S.L.       e-mail  david@???
    Pintor Vayreda 1                 telf    +34 902 50 29 75
    08184 Palau-Solita i Plegamans   movil   +34 670 35 27 53
----------------------------------------------------------------