So far my instinct tells me eyeeatingfish is probably correct on his understand of trespassing. But I am not sure I believe him on the detaining and searching issues. When strangers come into my yard to steal stuff the police always ask me if I want to trespass them. But I wonder if I am legally allowed to detain them forcefully, or even search them forcefully?
There might be a bit of confusion, the search issue is not connected to the trespass issue.
What I was explaining about the searching of bags by store security is that the 4th amendment does not apply to private parties, it only restricts the government from searching your property. If a store security detains someone as a suspect in a shoplifting, they can and do search the bags of the suspect so they can recover the stolen items.
That is not to say that anyone can search your bags at any time though, they have to be able to justify your detention. If they stop you but it is later found out they didn't have good reason to stop you then they may have committed false imprisonment or face civil issues.
But lets say you found someone in your enclosed back yard and it is clear they are not there for any good reason. You can detain the person until police arrive. Now during that detention if you decide to go through their bag then there is no 4th amendment issue. It might be good to have an explanation handy to show why you went through the guys bag. (ex. make sure he didn't steal something from you)
Everything has to be justifiable though so you might want to refrain from detailing the mail man
