I've resently cleaned the gunk out of my AC unit drain pipe and the unit is running just fine again. To get to the clog, I had to cut into the existing PVC pipe and repair it afterwards.
The original PVC drain pipe had a shallow trap (not like a U trap on the sink, but much more rounded)...