Oh yeah, make it just:
/proc/mail_openwindow(mob/user)
and put it at the top of the sorting machine file.