The quark line rule and D decays