Not all TAM fares accrue miles on United. Be careful. You could end up with no miles for a crazy journey if this is just a mileage run.
Only the following classes accrue miles
E, U, S, M, H, K, G, Q, V, L
If it is any other class below, you will get no miles. I have personally done TAM segments and gotten no miles.
http://www.united.com/CMS/en-US/mark...spx?ItemId=378