Fixed announceEmail.pl to be less busy
authorAndrew DeFaria <Andrew@DeFaria.com>
Tue, 18 Aug 2020 11:17:59 +0000 (04:17 -0700)
committerAndrew DeFaria <Andrew@DeFaria.com>
Tue, 18 Aug 2020 11:17:59 +0000 (04:17 -0700)
commitb4c848b00327fdcc52f3ff1742b71f8bd89dd855
treebf8a43bb4ae35a5c7c99c05d2e448fc0372c26ca
parent361e59dd612171a0f4a72ccbd49d1041185a5df0
Fixed announceEmail.pl to be less busy

Turns out announceEmail.pl was looping in MonitorMail. The right way to
do this is to call $IMAP->idle to set the call back. After that
announceEmail.pl is suspended in idle. When action happens on the IMAP
server the callback is called. So MonitorMail gets run to process the
callback. But then the callback is gone and needs to be re-established.
bin/announceEmail.pl