Hello,
could you please provide me any simple project which demonstrates the behavior?
If the whole IMASK is set to zero for appropriate CAN module, it is not possible that interrupt handler for any message buffer is executed.
I hope you do not POLL any flag from IFLAG register. Flags for appropriate message buffer in IFLAG register will be set even if IMASK register is set to 0.
Regards,
Martin