I used to have my windows roll up whenever I armed my car, having the mirrors fold in would be similar. You could do it with just relays, but I'm thinking... you could probably use a
dei 530t module, which is for window automation. That should cover everything, it watches the resistance, so when the mirrors fold completely in or something stops them, it will shut off so you don't burn out your motor.
Easy to wire, give it +12v, ground it, hook it up to the wires at the switch and with aftermarket, the ground when armed wire or with normal, something that grounds when the car is locked via remote.
You could even make the mirrors constantly fold in and out if someone sets off your alarm, that would be the coolest.
