When you cross the U.S. border, government officials can confiscate your electronic devices, search them, and keep them for a while for additional scrutiny, even when there’s no suspicion of wrongdoing. If you travel out of or into the United States, do yourself a favor and read the EFF’s comprehensive guide to what can happen, and what you can do about it. follow link
Just Show Me the Pictures!
Do you ever find that you don't have time to read those long email missives from Aunt Carol, but really do want to see the photos that she has lovingly attached? In Apple Mail, click the Quick Look button located in the message header. You'll get an easily browsed view of just the attached photos, and you can even add them to iPhoto, if you like!
EFF Guide to Defending Privacy at the U.S. Border
To do this he does not need to have any reason, all he needs is to distrust or dislike you and to have his immediate supervisor back him up.
If you are not a U.S. citizen, you will want to arrange your electronic files so that you can be perfectly open and aboveboard at the border (and you will want to be pleasant and respectful no matter what).
Some years ago, Farley Mowat was denied entry. It happens that that Farley Mowat had been invited to the States to receive a literary award, and so was uniquely able to publicize his experience. He wrote a delightful book about it, "My Discovery of America." Mowat was barred on order from on high but now field officers with even less knowledge have the discretion to do the same.