Type-Ia supernovae in semidetached binaries