about summary refs log tree commit homepage
path: root/t/imapd.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-10 07:04:18 +0000
committerEric Wong <e@yhbt.net>2020-06-13 07:55:45 +0000
commit1804e2961f3a28045b601a982f44ff61ea33a2fe (patch)
tree918caac2ff24140cf43eaa22b31d393a44b4b473 /t/imapd.t
parent1189ecdca2b43769ebc92eb1dcbfc63418396e2c (diff)
downloadpublic-inbox-1804e2961f3a28045b601a982f44ff61ea33a2fe.tar.gz
It seems worthless to support CLOSE for read-only inboxes, but
mutt sends it, so don't return a BAD error with proper use.
Diffstat (limited to 't/imapd.t')
-rw-r--r--t/imapd.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/imapd.t b/t/imapd.t
index 1ec0d5c3..8172a919 100644
--- a/t/imapd.t
+++ b/t/imapd.t
@@ -327,7 +327,8 @@ $r2 = $mic->fetch_hash(2, 'BODY.PEEK[HEADER.FIELDS (message-id)]')
 is($r2->{2}->{'BODY[HEADER.FIELDS (MESSAGE-ID)]'},
         'Message-ID: <20200418222508.GA13918@dcvr>'."\r\n\r\n",
         'BODY.PEEK[HEADER.FIELDS ...] drops .PEEK');
-
+ok($mic->close, 'CLOSE works');
+ok(!$mic->close, 'CLOSE not idempotent');
 ok($mic->logout, 'logged out');
 
 $td->kill;