Home GnuPG
Diffusion GpgOL 81c048b716ec

Improve handling for disallowed filenames

Description

Improve handling for disallowed filenames

* src/common.cpp (get_tmp_outfile): Use a generic name after
50 tries.

If we could not create the file after 50 tries, maybe
the filename is invalid. In that case we now use a
generic "attachment" name. That name is visible in
the "Save As" dialog, but in the OOM the name
is set according to the original filename.

Details

Event Timeline

I've just had an issue probably related to this.
Outlook was showing an error message like the following: "Empty messages cannot be encrypted" (I am translating, so the exact message may differ)

After looking at the logs, GpgOl tried 100 temporary files, failed (because they all existed, no idea why), and showed this message.

After deleting the files it worked, but the error message was misleading.

Maybe you can make use of this information :)