Refresh unified inbox after Rules

I have rules moving email to different subfolders, but the email line often remains in the unified inbox even after the email has moved. Selecting such email of course doesn’t display anything in the preview, but it would still be good if it disappeared. All my accounts are IMAP.