2424
2525require_relative "imap/command_data"
2626require_relative "imap/data_encoding"
27+ require_relative "imap/flags"
2728require_relative "imap/response_data"
2829require_relative "imap/response_parser"
2930
@@ -238,43 +239,6 @@ class IMAP < Protocol
238239 # The thread to receive exceptions.
239240 attr_accessor :client_thread
240241
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-
278242 # Returns the debug mode.
279243 def self . debug
280244 return @@debug
@@ -285,16 +249,6 @@ def self.debug=(val)
285249 return @@debug = val
286250 end
287251
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-
298252 # The default port for IMAP connections, port 143
299253 def self . default_port
300254 return PORT
@@ -1062,7 +1016,6 @@ def idle_done
10621016 SSL_PORT = 993 # :nodoc:
10631017
10641018 @@debug = false
1065- @@max_flag_count = 10000
10661019
10671020 # :call-seq:
10681021 # Net::IMAP.new(host, options = {})
0 commit comments