It was taking a long time to login to Horde webmail using a specific email account. It turned out that the filters setup in horde were causing a delay and the imapd process to use a lot of CPU. Disabling the filter rules made the login much faster and no CPU load.