Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to save_msg_file() + MessageObject::file_name for saving attachments #3851

Open
iequidoo opened this issue May 23, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@iequidoo
Copy link

Currently save_msg_file() isn't used for saving attachments (iiuc the app implements copying of MessageObject::file on its own). Also i didn't understand why, but when i use "Save as", i see that not the original filename is used in the dialog (i.e. MessageObject::file_name) by default, but the last component of the blob path (Message::file), so when i send two files with the same name and then try to save the second file, it suggests the mangled filename. Core's Message::set_file() should always set Param::Filename to the original filename, so i have no idea why that happens.

@iequidoo iequidoo added the enhancement New feature or request label May 23, 2024
@Simon-Laux
Copy link
Member

MessageObject::file_name does not output the correct original filename for some reason, maybe it is a bug with the composer, because it recreates the message everytime you modify the draft and on sending.

@Simon-Laux Simon-Laux added this to the New composer milestone May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants