I'm writing a program that will run with procmail, but my issue is that I don't know when to stop looking for data. How can I programaticly know when it's the end of the email? Do I need to look for char 255? (looks like a Y with a cross in it) Since the end of emails seems to be full of those, ex: if I grab more data then needed. But I'm not 100% sure if this is the way of doing it.
The content-lenght header seems to get added by the client and not by the MTA, so when the email goes through my program, that header does not yet exist. So that's not an option either.
Thanks in advance.
The content-lenght header seems to get added by the client and not by the MTA, so when the email goes through my program, that header does not yet exist. So that's not an option either.
Thanks in advance.