I have no idea about C++ but what you should do is basically (from Pascal code):
- get a temp file name with mi.mercury_command(GET_TEMPFILE, @FileNameBuf, nil)
- extract the message to the temp file with mi.fm_extract_message(job, FileNameBuf, 0)
- modify file contents according to your wishes
- update the message with mi.ji_update_job_data(job, FileNameBuf)
- delete the temp file
/Rolf
<p>I have no idea about C++ but what you should do is basically (from Pascal code):</p><p>- get a temp file name with&nbsp;mi.mercury_command(GET_TEMPFILE, @FileNameBuf, nil)</p><p>- extract the message to the temp file with&nbsp;mi.fm_extract_message(job, FileNameBuf, 0)</p><p>- modify file contents according to your wishes</p><p>- update the message with mi.ji_update_job_data(job, FileNameBuf)</p><p>- delete the temp file&nbsp;</p><p>/Rolf&nbsp;</p><p>&nbsp;</p>