> Ok, I just thought this through again, and at the moment our only option is
> fgetc with one character at a time. Anything that's line-at-a-time is not
> binary safe (correct this assumption and we're home free, though). Block at a
> time, like fread, is not sensitive to the header/body boundary. It is
> inevitable (and I must have missed it by testing with my usual dumb three line
> headers) that read_header() will fread a bit into the body. So we'd have to
> either unread the extra stuff or pass an initial body along the delivery
> chain. Neither is a pretty option (how much you can push back, if at all, is
> highly system dependent).

  Perhaps you could fgetc() through the headers, and once you hit the body
use fread() for performance?


--
Jesse Norell

[EMAIL PROTECTED] is not my email address;
change "administrator" to my first name.
--

Reply via email to