Not getting MIME data properly by using MIMEGetEntityData() method of IBM lotus notes c api toolkit
up vote
2
down vote
favorite
I am trying to get the MIME data for fetching boundary, headers and body from Note Item. I am using MIMEGetEntityData() method of IBM lotus notes c api toolkit declared in "mimedir.h".
But when I implemented it I am getting only HTML body part. Below is the implementation snippet:
if (error = MIMEOpenDirectory(hNote, &hMIMEDir))
{
goto exit;
}
if (error = MIMEGetRootEntity(hNote, &pRootEntity))
{
goto exit;
}
while (TRUE)
{
if (error = MIMEGetEntityData(hNote
pRootEntity,
MIME_ENTITY_DATA_RFC822TEXT, /*get all of the data for the entity -- boundary, headers, and body*/
dwOffset,
dwChunkLen,
&hData,
&dwDataLen))
{
if (error == ERR_NO_MIME_DATA)
{
break;
}
goto exit;
}
pData = OSLock(char, hData);
/* writing data to file
...
*/
dwOffset += dwDataLen;
OSUnlockAndFree(hData);
}
Does anyone have any experience with this problem? Or can suggest how to get full MIME data content including header and body? Or any other way to do this?
lotus-notes lotus-domino mime-message
add a comment |
up vote
2
down vote
favorite
I am trying to get the MIME data for fetching boundary, headers and body from Note Item. I am using MIMEGetEntityData() method of IBM lotus notes c api toolkit declared in "mimedir.h".
But when I implemented it I am getting only HTML body part. Below is the implementation snippet:
if (error = MIMEOpenDirectory(hNote, &hMIMEDir))
{
goto exit;
}
if (error = MIMEGetRootEntity(hNote, &pRootEntity))
{
goto exit;
}
while (TRUE)
{
if (error = MIMEGetEntityData(hNote
pRootEntity,
MIME_ENTITY_DATA_RFC822TEXT, /*get all of the data for the entity -- boundary, headers, and body*/
dwOffset,
dwChunkLen,
&hData,
&dwDataLen))
{
if (error == ERR_NO_MIME_DATA)
{
break;
}
goto exit;
}
pData = OSLock(char, hData);
/* writing data to file
...
*/
dwOffset += dwDataLen;
OSUnlockAndFree(hData);
}
Does anyone have any experience with this problem? Or can suggest how to get full MIME data content including header and body? Or any other way to do this?
lotus-notes lotus-domino mime-message
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am trying to get the MIME data for fetching boundary, headers and body from Note Item. I am using MIMEGetEntityData() method of IBM lotus notes c api toolkit declared in "mimedir.h".
But when I implemented it I am getting only HTML body part. Below is the implementation snippet:
if (error = MIMEOpenDirectory(hNote, &hMIMEDir))
{
goto exit;
}
if (error = MIMEGetRootEntity(hNote, &pRootEntity))
{
goto exit;
}
while (TRUE)
{
if (error = MIMEGetEntityData(hNote
pRootEntity,
MIME_ENTITY_DATA_RFC822TEXT, /*get all of the data for the entity -- boundary, headers, and body*/
dwOffset,
dwChunkLen,
&hData,
&dwDataLen))
{
if (error == ERR_NO_MIME_DATA)
{
break;
}
goto exit;
}
pData = OSLock(char, hData);
/* writing data to file
...
*/
dwOffset += dwDataLen;
OSUnlockAndFree(hData);
}
Does anyone have any experience with this problem? Or can suggest how to get full MIME data content including header and body? Or any other way to do this?
lotus-notes lotus-domino mime-message
I am trying to get the MIME data for fetching boundary, headers and body from Note Item. I am using MIMEGetEntityData() method of IBM lotus notes c api toolkit declared in "mimedir.h".
But when I implemented it I am getting only HTML body part. Below is the implementation snippet:
if (error = MIMEOpenDirectory(hNote, &hMIMEDir))
{
goto exit;
}
if (error = MIMEGetRootEntity(hNote, &pRootEntity))
{
goto exit;
}
while (TRUE)
{
if (error = MIMEGetEntityData(hNote
pRootEntity,
MIME_ENTITY_DATA_RFC822TEXT, /*get all of the data for the entity -- boundary, headers, and body*/
dwOffset,
dwChunkLen,
&hData,
&dwDataLen))
{
if (error == ERR_NO_MIME_DATA)
{
break;
}
goto exit;
}
pData = OSLock(char, hData);
/* writing data to file
...
*/
dwOffset += dwDataLen;
OSUnlockAndFree(hData);
}
Does anyone have any experience with this problem? Or can suggest how to get full MIME data content including header and body? Or any other way to do this?
lotus-notes lotus-domino mime-message
lotus-notes lotus-domino mime-message
asked Nov 19 at 4:11
Dipak
112
112
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53368194%2fnot-getting-mime-data-properly-by-using-mimegetentitydata-method-of-ibm-lotus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown