related to: https://dev.gnupg.org/T7722
Saving encrypted mails with attachments that have long names has several issues.
Given a freshly encrypted draft with three attachments for each issue:
- `test.pdf`
- `long.name.with.dot.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.123456789.12.odt`
- `long-name-without-dot-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789.odt`
**Issue of renaming**
1. Preview Draft
{F28123911}
2. Select another Draft
3. Select Draft again => Attachments with long names are renamed to `attachment.odt` (also happens on open/close/open)
{F28123920}
gpgol.log
{F28124707}
**Issue of deletion**
Currently not reproducible reliable, but sometimes on deletion of a "attachment.odt" outlook tells me, that the attachment is part of the encrypted message and cannot be deleted (deletion happens though):
{F28124490}
**Issue of sending**
1. Open Draft in it's own window (long names still displayed)
2. Add a recipient/subject and send => Error: attachment "attachment.odt" is an outlook item (see details in image)
{F28124601}
gpgol.log
{F28124987}
Also happens on a second draft save:
1. Create draft with attachments
2. Save
3. Add To, Subject, Body
4. Save => Error: attachment "long.name[...]" is an outlook item (see details in image)
{F28124736}
gpgol.log
{F28124915}
**Issue of unsaved changes on closing Outlook**
To reproduce:
1. Preview Draft
2. Select another Draft
3. Select Draft again => Attachments with long names are renamed to `attachment.odt`
4. Select another Draft again
5. Close Outlook => "Want to save your changes?" (Note: Cancel also closes Outlook)
{F28125070}
gpgol.log
{F28125176}