realbasic-nug
[Top] [All Lists]

Re: SMTP response quirk

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: SMTP response quirk
From: Will Leshner <will dot leshner at gmail dot com>
Date: Fri, 29 Apr 2005 14:37:49 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pDA9cZRfCeenRv1KR23NL/YkAH0fFF4Btm+IsNgLpxNFUWN1cNkUa/13QbeqVOo8ZhPrpSD62yWkI3weGWr+rgYG2kmsurMaL9myqsNBzz1/7tbEfywcztTxC6UkqpWvUL1ajmF/INcv7QSB8mPA3gjlITjFcpzhAO7eBxIOIPk=
References: <4272528F dot 4000204 at digi-net dot com>
On 4/29/05, Ken Jordan <jordan at digi-net dot com> wrote:

> On Mac I get one ServerCommandReply event in which the data string
> received contains the entire server response, beginning with "+OK" and
> ending with "." - no problem.
> 
> However, on Windows I am receiving an inconsistent number of
> ServerCommandReply events

> Has anyone else experienced/overcome this anomaly? What might be
> happening and how can it be remedied?

What's happening is that you basically can't depend at all on the all
the data arriving at once. The fact that it does on the Mac is a fluke
and you shouldn't depend on it. Instead, you have to buffer the data
as it comes in, while at the same time looking for the "." that tells
you all the data has arrived. That's pretty much the these things
work.

-- 
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>