Released from jail two years later, Rainham was subject to an extended supervision order.
Within weeks of his release Rainham was recalled to jail for nine months after breaching release conditions by failing to notify authorities he had changed his address, was accessing the internet and having unsupervised contact with children under 16.
On May 2, this year, the extended supervision order was renewed by the Napier District Court for another five years.
It is due to expire in May 2019.
He breached the conditions of that order within days of it being imposed.
The court heard Rainham was seen by a probation officer using a phone capable of accessing the internet on May 9 in Masterton.
Rainham told the Community Corrections staff member that he had used the cellphone only to listen to music.
Convicting Rainham on the charge, Judge Walsh gave him a stern warning about any further breaches.
"It's clear when I look at your criminal history you have been convicted on a number of occasions ... If you continue to breach inevitably you will end up back in prison," he said.
He convicted Rainham and ordered him to come up for sentence if called upon within six months.
Rainham was ordered to pay $130 court costs.