Skip to content

Commit 9ee199f

Browse files
committed
♻️ Replace MessageSet with SequenceSet (internally)
1 parent e13ba7a commit 9ee199f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/net/imap.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ def expunge
19501950
# [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]].
19511951
def uid_expunge(uid_set)
19521952
synchronize do
1953-
send_command("UID EXPUNGE", MessageSet.new(uid_set))
1953+
send_command("UID EXPUNGE", SequenceSet.new(uid_set))
19541954
clear_responses("EXPUNGE")
19551955
end
19561956
end
@@ -2912,17 +2912,17 @@ def fetch_internal(cmd, set, attr, mod = nil, changedsince: nil)
29122912
synchronize do
29132913
clear_responses("FETCH")
29142914
if mod
2915-
send_command(cmd, MessageSet.new(set), attr, mod)
2915+
send_command(cmd, SequenceSet.new(set), attr, mod)
29162916
else
2917-
send_command(cmd, MessageSet.new(set), attr)
2917+
send_command(cmd, SequenceSet.new(set), attr)
29182918
end
29192919
clear_responses("FETCH")
29202920
end
29212921
end
29222922

29232923
def store_internal(cmd, set, attr, flags, unchangedsince: nil)
29242924
attr = RawData.new(attr) if attr.instance_of?(String)
2925-
args = [MessageSet.new(set)]
2925+
args = [SequenceSet.new(set)]
29262926
args << ["UNCHANGEDSINCE", Integer(unchangedsince)] if unchangedsince
29272927
args << attr << flags
29282928
synchronize do
@@ -2933,7 +2933,7 @@ def store_internal(cmd, set, attr, flags, unchangedsince: nil)
29332933
end
29342934

29352935
def copy_internal(cmd, set, mailbox)
2936-
send_command(cmd, MessageSet.new(set), mailbox)
2936+
send_command(cmd, SequenceSet.new(set), mailbox)
29372937
end
29382938

29392939
def sort_internal(cmd, sort_keys, search_keys, charset)
@@ -2964,7 +2964,7 @@ def normalize_searching_criteria(keys)
29642964
keys.collect! do |i|
29652965
case i
29662966
when -1, Range, Array
2967-
MessageSet.new(i)
2967+
SequenceSet.new(i)
29682968
else
29692969
i
29702970
end

0 commit comments

Comments
 (0)