Return TypeFunction nameArguments
hzEcodehzPop3Acc::GetEmail(hzEmail&,hzString&,)

Declared in file: hzMailer.h
Defined in file : hzPop3.cpp

Function Logic:

0:START 1:hzChain::Clear hzEmail::Clear filepath OpenInputStrm rc 2:rc!=E_OK 3:Return E_OPENFAIL 4:items close hzEmail::Import rc 5:Return rc

Function body:

hzEcode hzPop3Acc::GetEmail (hzEmail& theMessage, hzString& mailId)
{
   _hzfunc("hzPop3Acc::GetEmail") ;
   hzList<hzEmpart>::Iter  pi ;
   ifstream    is ;
   hzChain     Z ;
   hzString    filepath ;
   hzEcode     rc ;
   m_Error.Clear() ;
   theMessage.Clear() ;
   filepath = m_Repos + "/" + mailId ;
   rc = OpenInputStrm(is, filepath) ;
   if (rc != E_OK)
   {
       hzerr(E_OPENFAIL, "Failed tp open email file %s", *filepath) ;
       return E_OPENFAIL ;
   }
   Z << is ;
   is.close() ;
   rc = theMessage.Import(Z) ;
   return rc ;
}