NSFNoteExtractFile not working in EM_NSFNOTEUPDATEMAILBOX (EM_REG_BEFORE)

I’m trying to analyze all atts of all incoming and outgoingemails… so I register in a server extension manager

the EM_NSFNOTEUPDATEMAILBOX event.

The problem is that when I call NSFNoteExtractFile I always

get “Specified database is not currently open”…

The DB Handle is OK (I call NSFNoteGetInfo(hNote,_NOTE_DB,&hdb) )

so it seems that there is something bad in getting an

attachment before updating the note.

Any comment will be great.

TIA.

Subject: NSFNoteExtractFile not working in EM_NSFNOTEUPDATEMAILBOX (EM_REG_BEFORE)

Did you ever figure this out? I’m having the exact same problem :frowning: