How to get original SMTP message before it becomes a document?

Does anyone know how to get an original SMTP message before it is converted into document of fields and stored put into the mail.box file for router processing?

I would think one would have to develop a server task that runs before the SMTP server task. Has anyone done something like this? Is there any samples out there?

Thank you

Subject: How to get original SMTP message before it becomes a document?

Hi Larry,

there is SMTPSaveImportErrors variable in notes.ini, which setting = 2 catches all inbound smtp stream to the STxxxx.tmp files.

regards,

Konrad Misniakiewicz

Subject: How to get original SMTP message before it becomes a document?

you’d use the C API to capture the incoming message, just before it’s placed into the mailbox.

a small issue is that the message stream has already been itemized into individual notes items so you’d still have to process each field, but it’s not horrendously difficult.