mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
feat: MsgId::get_info(): Report original filename as well
This commit is contained in:
@@ -328,7 +328,12 @@ impl MsgId {
|
|||||||
|
|
||||||
if let Some(path) = msg.get_file(context) {
|
if let Some(path) = msg.get_file(context) {
|
||||||
let bytes = get_filebytes(context, &path).await?;
|
let bytes = get_filebytes(context, &path).await?;
|
||||||
ret += &format!("\nFile: {}, {} bytes\n", path.display(), bytes);
|
ret += &format!(
|
||||||
|
"\nFile: {}, name: {}, {} bytes\n",
|
||||||
|
path.display(),
|
||||||
|
msg.get_filename().unwrap_or_default(),
|
||||||
|
bytes
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if msg.viewtype != Viewtype::Text {
|
if msg.viewtype != Viewtype::Text {
|
||||||
|
|||||||
Reference in New Issue
Block a user