Court jails remand prisoner for possessing drugs