set the initial capacitiy to getOutboundAttachmentNames().size()