added attachments support
Merge pull request #1 from maciejhirsz/master

added attachments support