rft - attachments logic, see #221
Merge pull request #236 from baev/master

rft - attachments logic, see #221