On 19 Dec 2008, at 18:43, Jean-Nicolas Jolivet wrote:

I am indeed using NNTP, but really I'm not even looking at cr+lf etc...

Basically I'm sending the following command to retrieve a message:
"ARTICLE <message-id>\r\n"

Then I'm reading all the data up until \r\n.\r\n is found.... (that is, a new line, a dot, and a new line again) which marks the end of an email.... and I'm saving that data to the disk

mmm, now that I say it like that though.... a dot on a newline marks the end of a message... and my problem is that I have dot inserted on new lines? can't be a coincidence!... but then again, I'm using AsyncSocket's "readToData" function... so I don't have much control over that...

As you have access to the source you have as much control over it as anyone else has! The data checking termination code is in AsyncSocket.m - (void)doBytesAvailable.
A bit of diligent poking in there might help.



Jean-Nicolas Jolivet
silver...@videotron.ca
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com

This email sent to jonat...@mugginsoft.com

Jonathan Mitchell

Central Conscious Unit
http://www.mugginsoft.com




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to