24
24
25
25
require_relative "imap/command_data"
26
26
require_relative "imap/data_encoding"
27
+ require_relative "imap/flags"
27
28
require_relative "imap/response_data"
28
29
require_relative "imap/response_parser"
29
30
@@ -238,43 +239,6 @@ class IMAP < Protocol
238
239
# The thread to receive exceptions.
239
240
attr_accessor :client_thread
240
241
241
- # Flag indicating a message has been seen.
242
- SEEN = :Seen
243
-
244
- # Flag indicating a message has been answered.
245
- ANSWERED = :Answered
246
-
247
- # Flag indicating a message has been flagged for special or urgent
248
- # attention.
249
- FLAGGED = :Flagged
250
-
251
- # Flag indicating a message has been marked for deletion. This
252
- # will occur when the mailbox is closed or expunged.
253
- DELETED = :Deleted
254
-
255
- # Flag indicating a message is only a draft or work-in-progress version.
256
- DRAFT = :Draft
257
-
258
- # Flag indicating that the message is "recent," meaning that this
259
- # session is the first session in which the client has been notified
260
- # of this message.
261
- RECENT = :Recent
262
-
263
- # Flag indicating that a mailbox context name cannot contain
264
- # children.
265
- NOINFERIORS = :Noinferiors
266
-
267
- # Flag indicating that a mailbox is not selected.
268
- NOSELECT = :Noselect
269
-
270
- # Flag indicating that a mailbox has been marked "interesting" by
271
- # the server; this commonly indicates that the mailbox contains
272
- # new messages.
273
- MARKED = :Marked
274
-
275
- # Flag indicating that the mailbox does not contains new messages.
276
- UNMARKED = :Unmarked
277
-
278
242
# Returns the debug mode.
279
243
def self . debug
280
244
return @@debug
@@ -285,16 +249,6 @@ def self.debug=(val)
285
249
return @@debug = val
286
250
end
287
251
288
- # Returns the max number of flags interned to symbols.
289
- def self . max_flag_count
290
- return @@max_flag_count
291
- end
292
-
293
- # Sets the max number of flags interned to symbols.
294
- def self . max_flag_count = ( count )
295
- @@max_flag_count = count
296
- end
297
-
298
252
# The default port for IMAP connections, port 143
299
253
def self . default_port
300
254
return PORT
@@ -1062,7 +1016,6 @@ def idle_done
1062
1016
SSL_PORT = 993 # :nodoc:
1063
1017
1064
1018
@@debug = false
1065
- @@max_flag_count = 10000
1066
1019
1067
1020
# :call-seq:
1068
1021
# Net::IMAP.new(host, options = {})
0 commit comments