Skip to content

Commit bd692a3

Browse files
committed
📚 Document NOOP command (allow EXPUNGE data)
1 parent 9997d7c commit bd692a3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/net/imap.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,16 @@ def id(client_id=nil)
518518
# Sends a {NOOP command [IMAP4rev1
519519
# §6.1.2]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.1.2] to the
520520
# server.
521+
#
522+
# This allows the server to send unsolicited untagged EXPUNGE #responses,
523+
# but does not execute any client request. \IMAP servers are permitted to
524+
# send unsolicited untagged responses at any time, except for `EXPUNGE`.
525+
#
526+
# * +EXPUNGE+ can only be sent while a command is in progress.
527+
# * +EXPUNGE+ must _not_ be sent during #fetch, #store, or #search.
528+
# * +EXPUNGE+ may be sent during #uid_fetch, #uid_store, or #uid_search.
529+
#
530+
# See also: #idle
521531
def noop
522532
send_command("NOOP")
523533
end

0 commit comments

Comments
 (0)