mail_movement: s:function no longer works; changing to globals