-
Notifications
You must be signed in to change notification settings - Fork 111
/
MailboxFlags.cs
51 lines (50 loc) · 1.62 KB
/
MailboxFlags.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
namespace S22.Imap {
/// <summary>
/// Defines possible attributes for mailboxes.
/// </summary>
/// <remarks>
/// <para>
/// An IMAP mailbox can have a number of flags (read: attributes) set on it, indicating its
/// designated purpose (such as "Spam" or "Drafts").
/// </para>
/// <para>
/// This is especially convenient when dealing with international mailbox names, because, by
/// examining the associated flags, the mailbox purpose can be determined, even if the mailbox
/// name provides no useful indication.
/// </para>
/// <para>
/// Unfortunately, as with many things IMAP, reporting the flags described here is an optional
/// extension (XLIST) to the IMAP protocol and as such may or may not be supported by an IMAP
/// server.
/// </para>
/// </remarks>
public enum MailboxFlag {
/// <summary>
/// The mailbox presents a view on all messages in the user's message store.
/// </summary>
AllMail,
/// <summary>
/// The mailbox is used to archive messages. The meaning of an "archival" mailbox is server
/// dependent.
/// </summary>
Archive,
/// <summary>
/// The mailbox is used to hold draft messages, typically these are messages that are being
/// composed but have not yet been sent.
/// </summary>
Drafts,
/// <summary>
/// The mailbox is used to hold copies of messages that have been sent.
/// </summary>
Sent,
/// <summary>
/// The mailbox is where messages deemed to be junk mail (spam) are held.
/// </summary>
Spam,
/// <summary>
/// The mailbox is used to hold messages that have been deleted or marked for deletion.
/// </summary>
Trash
}
}