POP3_Message.cs
上传用户:horngjaan
上传日期:2009-12-12
资源大小:2882k
文件大小:1k
- using System;
- namespace LumiSoft.MailServer.POP3
- {
- /// <summary>
- /// Holds POP3_Message info (ID,Size,...).
- /// </summary>
- public class POP3_Message
- {
- private POP3_Messages m_pMessages = null;
- private string m_MessageID = ""; // Holds message ID.
- private int m_MessageSize = 0; // Holds message size.
- private bool m_MarkedForDelete = false; // Holds marked for delete flag.
-
- /// <summary>
- /// Default constructor.
- /// </summary>
- /// <param name="messages"></param>
- public POP3_Message(POP3_Messages messages)
- {
- m_pMessages = messages;
- }
- #region Properties Implementation
- /// <summary>
- /// Gets or sets message ID.
- /// </summary>
- public string MessageID
- {
- get{ return m_MessageID; }
- set{ m_MessageID = value; }
- }
- /// <summary>
- /// Gets or sets message size.
- /// </summary>
- public int MessageSize
- {
- get{ return m_MessageSize; }
- set{ m_MessageSize = value; }
- }
- /// <summary>
- /// Gets or sets message state flag.
- /// </summary>
- public bool MarkedForDelete
- {
- get{ return m_MarkedForDelete; }
- set{ m_MarkedForDelete = value; }
- }
- /// <summary>
- /// Gets message number. NOTE message number is 1 based (not zero based).
- /// </summary>
- public int MessageNr
- {
- get{ return m_pMessages.Messages.IndexOf(this)+1; }
- }
- #endregion
- }
- }