logDebug ( "streamFromFile %s succeeded\r\n", file);
logDebug ( "streamFromFile %s succeeded\n", file);
MapiGPGMEImpl::streamFromFile (const char *file, LPATTACH att){    HRESULT hr;    LPSTREAM to = NULL, from = NULL;    STATSTG statInfo;    hr = att->OpenProperty (PR_ATTACH_DATA_BIN, &IID_IStream, 0,	 		      MAPI_CREATE | MAPI_MODIFY, (LPUNKNOWN*) &to);    if (FAILED (hr))	return FALSE;    hr = OpenStreamOnFile (MAPIAllocateBuffer, MAPIFreeBuffer,			   STGM_READ, (char*)file, NULL, &from);    if (!SUCCEEDED (hr)) {	to->Release ();	logDebug ( "streamFromFile %s failed.\r\n", file);	return FALSE;    }    from->Stat (&statInfo, STATFLAG_NONAME);    from->CopyTo (to, statInfo.cbSize, NULL, NULL);    to->Commit (0);    to->Release ();    from->Release ();    logDebug ( "streamFromFile %s succeeded\r\n", file);    return TRUE;}