Well, this program would be executed when user is not connected, I don't think you would be able to append code in this kind of program (kernel, SAPMSYST)
Hint: You could try to either use CCMS, Solman or create a periodic background job to trigger mail for USR02-UFLAG = 128 since last execution.
Regards,
Raymond