This is still work in progress, I've had problems extracting the attachments, but I think that I have solved it.