rima.lua: Task manager for imap collector