all attachments have to have a name; if they don't, they're probably not attachments
get rid of unnecessary if/else
Merge pull request #4 from bepetersn/attachments-have-names

Ensure attachments have names