Mail.app IMAP problems when moving mails to different folders
If I move a mail from Inbox to an IMAP folder, the message shows up in the new folder in Mail.app, but if I log into my mail account on Roundcube, the mail is still in the Inbox folder displayed with gray text.
How can I move mails correctly like in Thunderbird or any other email client?
The IMAP server is Dovecot, SSL enabled.
iMac, OS X El Capitan (10.11.5)