Ilja Booij <[EMAIL PROTECTED]> said: >Paul J Stevens <[EMAIL PROTECTED]> wrote: >> I'm working toward a unified implementation for both functions. But what >> I don't understand is the reason for splitting them up in the first place. >> Ok, so _network does more checking on the state of the instream, but other >> than that...?? Ownership of the stream I'm guessing? >> > These functions were (originally) mine. The difference is mostly this: > read from pipe: just read everything until EOF > read from network: read everything until the singe '.' on a line. > > That's why they're split up. I couldn't come up with a nice way of > combining these (probably my lack of fantasy..)
I believe that there's also a CR/LF conversion / counter in there; confusion over line endings was exploding the handwritten MIME parser. GMime now handles this with its filter mechanism, and has a CR/LF filter for exactly this reason... so... just go unified, no need to worry anymore, IMHO. Aaron
