Thanks Peter, I cut off the rusted pieces and attached the rubber hose to what was left of the pipe.
No I've got another problem.After replacing the temperature sensor and refilling the coolant the car runs hotter than usual and the fan does not come on.
I bled the cooling system,first closed the screw on the radiator and than the one on the breather pipe.
For now I'm gonna wire the fan direct on a switch for time being.