Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: norricorp on February 19, 2026, 11:17:55 AM

Title: Spam header flag remains yes even if not junk
Post by: norricorp on February 19, 2026, 11:17:55 AM
My email provider uses roundcube for webmail. They also have very poor filtering for junk so I do find wanted emails in my junk folder.
I set these to "not junk" and they are moved to the inbox. So far, so good.
My email client is emclient and when I download email, the no longer junk emails are put in the junk folder. Looking at the headers, the x-spam attribute is set to yes.
When the email is moved from junk to Inbox via webmail, shouldn't the header be set to no or removed?
Title: Re: Spam header flag remains yes even if not junk
Post by: SKaero on February 19, 2026, 11:29:24 AM
Roundcube doesn't change the mail headers when the email is moved to the inbox.
Title: Re: Spam header flag remains yes even if not junk
Post by: norricorp on February 21, 2026, 04:06:02 AM
But could it? Should it?
Title: Re: Spam header flag remains yes even if not junk
Post by: SKaero on February 22, 2026, 01:56:56 AM
Could it?
- No the IMAP spec doesn't allow for messages to be edited, technically you would have to delete it and create a new email without the headers in its place.

Should it?
- I don't think it should, that header should stay in place as a record of how the mail server processed the email, it would be useful if debugging the system as well. I've never seen a system that removes the header when setting a email as not junk.