public void PutKey(string reply) { int pos = reply.IndexOf(":"); if (pos != -1) { string key = reply.Substring(0, pos); string val = reply.Substring(pos + 1).Replace("\t", " ").Replace(((char)13).ToString(), " ").Replace(((char)10).ToString(), " ").Trim(); if (key.ToUpper().Equals("SUBJECT")) { val = JapaneseMimeDecoder.Decode(val); } if (this[key.ToUpper()] == null) { Add(key.ToUpper(), val); } else if (!key.ToUpper().Equals("RECEIVED")) //If it is the header Received, the first one is saved { this[key.ToUpper()] = val; } } }
public string GetMessageText() { return(JapaneseMimeDecoder.Decode(messageText.ToString())); }