elementary / elementary/mail

Cannot replace a local file with attachment: mail (or files portal?) fails silently

Open
#993 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
215
Forks
50
Avg merge
3h 11m
Merged PRs (30d)
1

Description

### What Happened?

I am trying to save two files i mailed myself from work, and replace the local, out of date, version i have

I do right-click, "save as", which opens a "Save As" dialog where i browse to the old version,
and confirm replacing the old version

"Save As" window disappears, leaving me to think i correctly saved attachment
When in fact the local version is untouched

In Log Output below: error message pointing to **_AttachmentButton.vala:157_**

### Steps to Reproduce

Save As -> select an already existing file with the same name to replace

### Expected Behavior

the old, local version, gets replaced with the one saved from email

### OS Version

8.x (Early Access)

### Session Type

Secure Session (Wayland)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell
Output when performing the action, with Mail executed in terminal:
Trying to replace /home/teamcons/FROZEN BLOOD.xlsx with email attachment "FROZEN BLOOD.xlsx"

** (io.elementary.mail:7636): CRITICAL **: 23:10:37.433: AttachmentButton.vala:157: Error opening the file ‘/home/teamcons/FROZEN BLOOD.xlsx’: The file already exists
```

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.