summaryrefslogtreecommitdiff
path: root/lib/net/imap/flags.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2021-05-26 15:48:36 +0900
committerHiroshi SHIBATA <[email protected]>2021-05-27 14:42:11 +0900
commitd5bc6b23370908f19d1a4a19ead56e61444f0974 ()
tree765f16079da2b841691c85244733520a8c699561 /lib/net/imap/flags.rb
parente49c998d1e41737016c8afb7e1b22797018caebb (diff)
Promote net-imap to the bundled gems
Notes: Merged: https://.com/ruby/ruby/pull/4530
-rw-r--r--lib/net/imap/flags.rb76
1 files changed, 0 insertions, 76 deletions
@@ -1,76 +0,0 @@
-# frozen_string_literal: true
-
-module Net
- class IMAP < Protocol
-
- # :category: Message Flags
- #
- # Flag indicating a message has been seen.
- SEEN = :Seen
-
- # :category: Message Flags
- #
- # Flag indicating a message has been answered.
- ANSWERED = :Answered
-
- # :category: Message Flags
- #
- # Flag indicating a message has been flagged for special or urgent
- # attention.
- FLAGGED = :Flagged
-
- # :category: Message Flags
- #
- # Flag indicating a message has been marked for deletion. This
- # will occur when the mailbox is closed or expunged.
- DELETED = :Deleted
-
- # :category: Message Flags
- #
- # Flag indicating a message is only a draft or work-in-progress version.
- DRAFT = :Draft
-
- # :category: Message Flags
- #
- # Flag indicating that the message is "recent," meaning that this
- # session is the first session in which the client has been notified
- # of this message.
- RECENT = :Recent
-
- # :category: Mailbox Flags
- #
- # Flag indicating that a mailbox context name cannot contain
- # children.
- NOINFERIORS = :Noinferiors
-
- # :category: Mailbox Flags
- #
- # Flag indicating that a mailbox is not selected.
- NOSELECT = :Noselect
-
- # :category: Mailbox Flags
- #
- # Flag indicating that a mailbox has been marked "interesting" by
- # the server; this commonly indicates that the mailbox contains
- # new messages.
- MARKED = :Marked
-
- # :category: Mailbox Flags
- #
- # Flag indicating that the mailbox does not contains new messages.
- UNMARKED = :Unmarked
-
- @@max_flag_count = 10000
-
- # Returns the max number of flags interned to symbols.
- def self.max_flag_count
- return @@max_flag_count
- end
-
- # Sets the max number of flags interned to symbols.
- def self.max_flag_count=(count)
- @@max_flag_count = count
- end
-
- end
-end