On Wed, 19 Feb 2003, Michal Altair Valasek wrote:

>
> | 1) host the configure the M$ SMTP service to drop files=20
> | inside spool/local
>
> It's not about MS SMTP service, see last response.

The question was :

How do you configure the drop directory for this service ? Because Xmail
is not going to pick up those files for sure.



> | IMO there're 2000 ways to send messages in any high level=20
> | language, pls pick a "sane" one.
>
> The main problem is, so there is lot of third-party programs, which are
> generating messages in this format. It's hardcoded there and their =
> authors
> probably does not even know that something like XMail exists.
>
> As I said, there is a way how to do it programatically - the program is
> simple. But it's deployment not. If it should be really online, I must =
> write
> it as service (daemon) and it must be installed and configured. Or I can
> write it as commandline program, but then I must setup some scheduling, =
> ie.
> every 5 minutes. But then message delivery would be delayed and also =
> there
> is lot of work for administrator.

The Windows service skeleton is about 50 lines of code, and actually I
remember that there was a program that ran whatever .exe as a service ( I
do not remember the name ). The program is :

for (;;) {
        SelectFilesInWinDropDir();
        ForEachFile {
                TranslateAndWriteToSpoolTemp();
                MoveToSpoolLocal();
                DeleteWinDropFile();
        }
        Sleep(3000); // Three seconds
}

This can be done with 100 C lines or maybe 30 Perl lines.




- Davide

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to