Imap protocol and problems with rules

I have problem with rules. I use IMAP protocol and I have rules defined on my PC at em client. And they sometimes work and sometimes not-probably depends on if I saw email on mobile device. Can you help me?