IMP: trigger getmail upon "refresh" button press

Sebastian Birnbach <[email protected]> Tue, 1 Jan 2019 16:45:53 +0100
Newsgroups gmane.comp.horde.devel
Message-ID <CACTNBFP=rUaR+9Cv+cMwUyLKR0+snMp6owQjUxxVxPrkgMjf=w@mail.gmail.com>
A local IMAP server keeps my users' mails, and IMP is used as frontend. The
local mail server has no MX record, so E-Mails must be fetched from the ISP
with the "getmail" tool. A cron job triggers the getmail utility every few
minutes.

For the work with one of our customers we need faster mail pickup. After we
request login to their sever they send us an E-Mail with a (short-lived)
access token. Ideally getmail would be triggered every n minutes as long as
a user is logged in, plus every time the user clicks 'refresh'. Oh, and it
is a mailbox to which several users have access.

I found getmail can be triggered upon mailbox read access (cf.
https://wiki.dovecot.org/HowTo/TriggerGetmailOnIMAPAccess) but I am not at
all sure about the efficiency and configurability of this solution.


Does Horde offer any kind of support here? A hook to the pressing of
'refresh' in IMP maybe, or periodic command execution as long as a user is
logged in? Anything?
-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]