nextcloud / nextcloud/mail

Save to files / Unter Dateien speichern not working with äöü in filename or jpeg

Open
#10,823 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. Recieve an e-mail with an attachment and it's filename contains ö (ü + ä not tested)

Image

  1. Click ... on the attachment and "save to file"... it doesn't work. But you recieve a done message.

Image

  1. Look into the folder.... file wasn't saved.

--> Similar failure is with an "*.jpeg"-file.
On Step 3 you'll see an corrupt *.eml

Image

I renamed the file to *.jpg and it worked.

Expected behavior

save attachment correctly ;)

Actual behavior

Doesn't save the attachment or creats an wrong file instead

Mail app version

4.2.3

Nextcloud version

30.0.6

Mailserver or service

different.

Operating system

Linux - Docker

PHP engine version

PHP 8.2

Nextcloud memory caching

No response

Web server

None

Database

None

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with an attachment whose filename contains ä, ö, or ü, and with a JPEG attachment, using Mail 4.2.3 on Nextcloud 30.0.6. Check whether the saved output is missing or incorrectly written as an .eml file. Done means both filenames and JPEG attachments are saved correctly and the success message matches the result.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.