| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzPop3Acc::GetEmail | (hzEmail&,hzString&,) |
Declared in file: hzMailer.h
Defined in file : hzPop3.cpp
Function Logic:
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 ;
}