Disc-overflow accretion in intermediate polars