@@ -1950,7 +1950,7 @@ def expunge
1950
1950
# [RFC4315[https://www.rfc-editor.org/rfc/rfc4315.html]].
1951
1951
def uid_expunge ( uid_set )
1952
1952
synchronize do
1953
- send_command ( "UID EXPUNGE" , MessageSet . new ( uid_set ) )
1953
+ send_command ( "UID EXPUNGE" , SequenceSet . new ( uid_set ) )
1954
1954
clear_responses ( "EXPUNGE" )
1955
1955
end
1956
1956
end
@@ -2912,17 +2912,17 @@ def fetch_internal(cmd, set, attr, mod = nil, changedsince: nil)
2912
2912
synchronize do
2913
2913
clear_responses ( "FETCH" )
2914
2914
if mod
2915
- send_command ( cmd , MessageSet . new ( set ) , attr , mod )
2915
+ send_command ( cmd , SequenceSet . new ( set ) , attr , mod )
2916
2916
else
2917
- send_command ( cmd , MessageSet . new ( set ) , attr )
2917
+ send_command ( cmd , SequenceSet . new ( set ) , attr )
2918
2918
end
2919
2919
clear_responses ( "FETCH" )
2920
2920
end
2921
2921
end
2922
2922
2923
2923
def store_internal ( cmd , set , attr , flags , unchangedsince : nil )
2924
2924
attr = RawData . new ( attr ) if attr . instance_of? ( String )
2925
- args = [ MessageSet . new ( set ) ]
2925
+ args = [ SequenceSet . new ( set ) ]
2926
2926
args << [ "UNCHANGEDSINCE" , Integer ( unchangedsince ) ] if unchangedsince
2927
2927
args << attr << flags
2928
2928
synchronize do
@@ -2933,7 +2933,7 @@ def store_internal(cmd, set, attr, flags, unchangedsince: nil)
2933
2933
end
2934
2934
2935
2935
def copy_internal ( cmd , set , mailbox )
2936
- send_command ( cmd , MessageSet . new ( set ) , mailbox )
2936
+ send_command ( cmd , SequenceSet . new ( set ) , mailbox )
2937
2937
end
2938
2938
2939
2939
def sort_internal ( cmd , sort_keys , search_keys , charset )
@@ -2964,7 +2964,7 @@ def normalize_searching_criteria(keys)
2964
2964
keys . collect! do |i |
2965
2965
case i
2966
2966
when -1 , Range , Array
2967
- MessageSet . new ( i )
2967
+ SequenceSet . new ( i )
2968
2968
else
2969
2969
i
2970
2970
end
0 commit comments