How to extract a ticket

Is there an easy way how to extract one specific ticket with all transactions and attachments? For example to some folder with each trasaction stored as eml? Casual importing back to RT could be then done via rt-mailgate perhaps.

I could program that in Perl API or through REST but if you know about an easier way I would appreciate that.

Yes, there is an easy way! Forwarding the whole ticket (Actions -> Forward) out of RT. It sends you an email with as many emls in attachments as there are transactions.