I haven't coded on the product in a while, but early in the code we used
to use WinExec() to start the process. Later went to CreateProcess(). I
believe that WinExec() would run batch files, it was an old 16 bit call.
CreateProcess() though is Win32--coming to the point now :)--and I
believe that Scott is right. It doesn't run batch files well--if at all.

Bob

In reply to 02 Apr message from [EMAIL PROTECTED]:


>>My question has to do with the "SendName" registry key (as documented
in KB
>>article IM-20000517-DM01).  I am trying to write a custom filter app
to deal
>>with spam.  Yes, I know Declude probably does what I want, but I work
at a
>>company with ZERO budget for this stuff, don't get me started. :)

>Don't worry, I won't suggest estimating the number of hours it
>will take to write your own program and keep it updated, and
>compare that to the cost of anti-spam software.  :)

>>I have tried setting this key to both a batch file and a VB compiled
>>executable.. both basically take a parameter, do the rename, etc., as
per
>>the KB article.  In both cases, after stoppping and starting the SMTP
>>service, delivery doesn't work and there is no evidence that my custom
>>filter was executed -- even when these programs (both BAT and EXE)
were
>>"stripped down" to do nothing but log the fact that it was called.

>Did you stop/restart the IMail SMTP service after changing the
>SendName registry entry?

>Does the .bat or .exe file have the correct security/privileges so
>that it can be run from a service?

>I believe some people have had troubles using batch files with the
>SendName hook -- I would recommend only trying with .exe files,
>and avoiding batch files.

>                                                    -Scott 
>---
>Declude JunkMail: The advanced anti-spam solution for IMail
>mailservers. Declude Virus: Catches both viruses and
>vulnerabilities in E-mail, with no annual licensing fees.

>---
>[This E-mail was scanned for viruses by Declude Virus
>(http://www.declude.com)] 


>To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
>List Archive:
>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ 
>Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ 




To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to