Add support for renaming attachments