Hi all,
in an attempt to fix message insertion errors, I did the following:
I seperated the code which gets the message from the MTA from the code
that seperates the header from the body, and the code that inserts the
message into the database.
The pipe version (dbmail-smtp) uses fread() to get the message.
The network version (dbmail-lmtpd) uses fgets() to get the message.
The message is put into a string, which is then passed on to the
functions splitting it in header and body.
Using this stuff, it might be easier to find the problems. Also, in my
view, it is the Right Thing (tm) to do, because message handling code
should be seperated from the code which gets the message from the input
stream.
I'll do some more testing to see if everything works OK.
BTW, I haven't been able to use OutLook yet to test the message
problems, as our only Windows machine here is in use at the moment.
Ilja