Beispiel #1
0
 internal Message(ImapClient client, Folder folder)
     : this()
 {
     Flags = new MessageFlagCollection(client, this);
     Labels = new GMailMessageLabelCollection(client, this);
     _client = client;
     Folder = folder;
 }
Beispiel #2
0
 internal Folder(string path, IEnumerable<string> flags, ref Folder parent, ImapClient client)
 {
     _path = path;
     _name = ImapUTF7.Decode(_path.Split(client.Behavior.FolderDelimeter).Last());
     UpdateFlags(flags);
     _parent = parent;
     _client = client;
     GMailThreads = new GMailThreadCollection();
 }
 internal GMailMessageThread(ImapClient client, Folder folder, long threadId)
 {
     Id = threadId;
     Messages = new MessageCollection(client, folder);
 }
 public MessageContent(ImapClient client, Message message)
 {
     _client = client;
     _message = message;
     Parameters = new Dictionary<string, string>();
 }
Beispiel #5
0
        internal static Folder Parse(string commandResult, ref Folder parent, ImapClient client)
        {
            Match match = Expressions.FolderParseRex.Match(commandResult);

            if (match.Success && match.Groups.Count == 4)
            {
                string[] flags = match.Groups[1].Value.Split(' ');
                string path = match.Groups[3].Value;

                if (client.Behavior.FolderDelimeter == '\0')
                {
                    client.Behavior.FolderDelimeter = string.IsNullOrEmpty(match.Groups[2].Value) ? '"' : match.Groups[2].Value.ToCharArray()[0];
                }

                return new Folder(path, flags, ref parent, client);
            }

            return null;
        }
 internal MessageBody(ImapClient client, MessageContent textContent, MessageContent htmlContent)
 {
     _client = client;
     _textContent = textContent;
     _htmlContent = htmlContent;
 }
Beispiel #7
0
 internal Message(long uId, ImapClient client, Folder folder)
     : this(client, folder)
 {
     UId = uId;
 }