In every situation where this has happened (there have unfortunately been quite a few), I've received miles from both the rerouted from and the rerouted to carriers. As stated, the rerouted to should be automatic and the rerouted from will take a letter and copies of pertinent info.