Text this: Exact transient photon correlation with arbitrary laser pulses