Added better documentation for the local sender check and user-delimiter

Also improved the local sender check a little by moving it to a new function.