Subject: | Server may send untagged EXPUNGE or FETCH messages at any time |
The server is allowed, by IMAP spec, to senf untagged FETCH or EXPUNGE
messages at any time[1]. Thus, @SERVER_RESPONSES should include expunge
and fetch. A patch is attached.
- Alex
[1] Technically, a server is not allower to send EXPUNGE messages at
_any_ time, as it is not allowed to do so following FETCH, STORE, or
SEARCH requests. But you should still notice them.
Subject: | responses.patch |
--- lib/IMAP/Client.pm 2007-11-26 13:20:32.000000000 -0500
+++ /usr/lib/perl5/site_perl/5.8.8/IMAP/Client.pm 2007-11-26 13:22:10.000000000 -0500
@@ -31,7 +31,7 @@
# Create Class variables
my %Instances;
-my @SERVER_RESPONSES = ('exists', 'recent'); # constant value
+my @SERVER_RESPONSES = ('exists', 'recent', 'expunge', 'fetch'); # constant value
my $server_response_callback = undef;
my $ID;