How To Repair A Wooden Door - Sorting Out Some Rot In A Wooden Door

What I thought would be a simple case of planing a bit off a wooden door to stop it binding after it had swelled in the rain turns into a full scale rot repair job.