Years ago, if you book the two segments separately (even just on Delta without using a Northwest flight number), you get mileage for each segment. But if you book it as one flight, you could get the mileage from origin to departure as if it was non-stop. I guess that still is the case today.