I´ve tried this in the first time:
"mailbox"
"external" "0" "0" "c:\temp\postie.exe" "several parameters...."
And XMail doesn´t call the program.
Now I´m trying this:
"mailbox"
"external" "0" "0" "cmd.exe /C start c:\temp\a.bat" "@@FROM" "@@RCPT"
It works, but a console windows appear and disappear quickly.
ps: I´m using a Windows 2000 Server and nothing is being sent do stdout.
Thanks
Edinilson
------------------------------------------
ATINET-Afiliado UOL de Atibaia
Rua Francisco R. Santos, 54 sala 3
ATIBAIA/SP Cep: 12940-000
Tel: (0xx11) 4412-0876
http://www.atinet.com.br
----- Original Message -----
From: "Davide Libenzi" <[EMAIL PROTECTED]>
To: "Edinilson J. Santos" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 28, 2001 8:51 PM
Subject: Re: external program
On 28-Feb-2001 Edinilson J. Santos wrote:
> I think that there is a problem with postie because it´s a exe file and
> needs cmd.exe
> But using cmd.exe causes a window being opened every time...
It should not happen coz XMail uses a special CreateProcess() flag that say
to
not open a new window.
I do not know what happens if Your program is trying to write to stdout.
I've tried to run a .cmp with cmd.exe and no windows are open.
You've to remember to use this syntax :
cmd.exe /C start CMD-FILE-NAME
- Davide