Save Incoming SMTP messages in MIME format

Hi All!

I’m trying to find a method to save incoming messages to file/stream.

I have an extension manager which registers the event EM_SMTPMESSAGEACCEPT. I then get the NOTEHANDLE from VARARG_PTR. Is there a method to get, either the actual Note in a format which can be saved (i.e. note in stream format) or preferably the MIME version as it is received.

Help would be greatly appreciated since I’ve been working on this for a while with no avail.

I have looked up other topic in the forum but I still didn’t find anything.

Thanking you beforehand,

Joseph