Emails in junk folder not marked as spam
Steps to reproduce
Steps to reproduce
Select mail in junk folder
"Mark not spam" action is not available
To be able to mark the message as "not spam" the user needs to mark it as spam (but why then the message is in the junk folder???) and then use the button to mark it as not spam
Expected behavior The action to "Mark not spam" should be directly available for all messages (automatically) moved to the junk folder
Actual behavior Users needs to mark messages in the junk folder as spam to be able to mark them as not spam
Mail app version 5.0.6
Nextcloud version 31.0.4
Mailserver or service Own mail server
Operating system Irrelevant
PHP engine version PHP 8.2
Nextcloud memory caching redis
Web server Nginx
Database MariaDB
Additional info I would expect that if a message was moved in the junk folder it must be classified as spam. To mark as not spam messages erroneously put in the junk folder, I need first to mark them as spam (again?) and the mark them as not spam.
Expected behavior
Messages in the junk folder (not actually moved there manually by the user) should present the action "Mark not spam".
Actual behavior
To mark as not spam messages erroneously put in the junk folder, I need first to mark them as spam (again?) and the mark them as not spam.
Mail app version
No response
Nextcloud version
No response
Mailserver or service
No response
Operating system
No response
PHP engine version
None
Nextcloud memory caching
No response
Web server
None
Database
None
Additional info
No response
Thank you for your feedback.
What makes an email junk is the IMAP flag $Junk. There is also an attribute for mailboxes \junk and it's where junk emails should be moved into.
So in my interpretation there could be non-junk emails in a mailbox marked as junk. But I would be okay with still showing the Mark as not spam.
I'm accepting this report.
Ref https://www.ietf.org/rfc/rfc9051.html#name-flags-message-attribute Ref https://www.ietf.org/rfc/rfc9051.html#name-server-responses-mailbox-st
Thanks for the observation, I learned something new today :-)
I just realised that there is an exclamation mark on some emails in the junk folder. For those ones, I do get directly the “Mark not spam” action.
I also realised I have two folders named “junk” one is INBOX.spam the other is INBOX.junk.