public void FetchPartHeader(string sMessageUID,
string sMessagePart,
ArrayList asMessageHeader)
{
if (!m_bIsLoggedIn)
{
try
{
Restore(true);
}
catch (ImapException e)
{
if (e.Type != ImapException.ImapErrorEnum.IMAP_ERR_INSUFFICIENT_DATA)
throw e;
throw new ImapException(ImapException.ImapErrorEnum.IMAP_ERR_NOTCONNECTED);
}
}
if (!m_bIsFolderSelected && !m_bIsFolderExamined)
{
throw new ImapException(ImapException.ImapErrorEnum.IMAP_ERR_NOTSELECTED);
}
if (sMessageUID.Length == 0)
throw new ImapException(ImapException.ImapErrorEnum.IMAP_ERR_INVALIDPARAM);
string sPart = sMessagePart;
if (sPart.Length == 0 )
sPart = IMAP_MSG_DEFAULT_PART;
try
{
GetHeader (sMessageUID, sPart, asMessageHeader);
}
catch (ImapException e)
{
throw e;
}
}