diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-03-12 22:14:39 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-03-12 22:40:58 +0100 |
commit | 85fd56f6f150dba0d74859a9d5e00f16d6b33955 (patch) | |
tree | f8a57fe4f81acfc8ad4a3f6a18d9c44be2267d4d /pullimap | |
parent | c8376a4c8130f98a56fd65e370032c27234ed323 (diff) |
Net::IMAP::InterIMAP, interimap: Add support for IMAP NOTIFY [RFC 5465].
Unsollicited LIST responses are currently ignored, hence interimap won't
detect mailbox creation/deletion/subcription/unsubscription.
Diffstat (limited to 'pullimap')
-rwxr-xr-x | pullimap | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -346,7 +346,6 @@ unless (defined $CONFIG{idle}) { $CONFIG{idle} = 1740 if defined $CONFIG{idle} and $CONFIG{idle} == 0; # 29 mins while(1) { - my $r = $IMAP->idle($CONFIG{idle}, sub() { $IMAP->has_new_mails($MAILBOX) }); - pull() if $r; + pull() if $IMAP->idle($CONFIG{idle}, \&Net::IMAP::InterIMAP::has_new_mails); purge(); } |