[REBOL] Re: File writing issue
From: mattsmac::hotmail at: 7-Nov-2003 10:29
Actually the EHLO liine is a valid command in extended SMTP. I am routing
this into our local exchange server, so it handles all the commands as they
come in. I know that the waits in the message are not a problem. I don't
use send because I needed to insert a line into the message preamble that
will signal that I need a read reply sent back by the mail client. All of
the code works fine on its own, when the file being attached is already
there. Its only when it is trying to access a file that was created
immediately prior that it has issues.
Again, this is not that big of a deal, as I found a work around using our
network file-sharing that is essentially just as effective.
A few notes on your email.
1) Your HELO line is misspelt below to be EHLO.
2) Your code just blindly "dumps" the HELO along with MAIL FROM and RCPT TO
and the rest of the message down the line - it does not wait on and check
for server responses to these first three. With SMTP, HELO and QUIT could
take a little while to occur. On the HELO the SMTP server needs to acquire a
lock on the mailbox, on the QUIT it processes any deletions and releases the
lock (who knows what else it could be doing). So with multiple clients
coming in, you really need to wait to check that you get the lock.
3) Why not use SEND instead of your own code? It will wait on the HELO and
check the response. You can add custom headers in using the /HEADER
refinement of SEND.
4) Have you checked that the process your server code runs in has the
necessary privileges? Perhaps you should add some code to write a log to a
text file - to ensure that that it is doing what you hope it is doing.