major issue in outlook "Change in forward mail also change selected mail "

Status
Not open for further replies.
V

varun

outlook change the body of selected mail if we change body of forward mail.

I have a sample application which i got from following site.

http://www.codeproject.com/KB/COM/outlookaddin.aspx

I attach the project on rapidshare, please get it from

http://rapidshare.com/files/302193923/sample1.rar.html

> .

In this application i register inspector event. When select a mail in

outlook click on forward button it calls onnewinspector

here i change mailbody and return. After that i found mail body is also

change in selected mail.

So i think it's serious issue in Outlook.

In Onnewinspector below code change body

HRESULT CAddin::Invoke(DISPID dispidMember,REFIID riid,LCID lcid, WORD

wFlags,

DISPPARAMS* pDispParams, VARIANT* pvarResult,

EXCEPINFO* pExcepInfo, UINT* puArgErr)

{

if(dispidMember = 0xf001)

{

if (!pDispParams)

return E_INVALIDARG;

if (pDispParams->cArgs > 0)

{

IDispatchPtr pDisp(pDispParams->rgvarg[0].pdispVal);

CComQIPtr<_Inspector> spInspector(pDisp);

IDispatchPtr dsptr = NULL;

spInspector->get_CurrentItem(&dsptr);

_MailItemPtr mptr = NULL;

mptr = dsptr;

_bstr_t bd = "this is new body";

if(mptr)

{

RecipientsPtr rptr = NULL;

mptr->get_Recipients(&rptr);

if(rptr)

{

long count = 0;

rptr->get_Count(&count);

if(count == 0)

mptr->put_Body(bd);

mptr = NULL;

}

}

}

}

return S_OK;

}
 
Is there no solution for this problem?

Or there is some possibility to handle this case

"varun" <varun.stellar@yahoo.co.in> wrote in message

news:eTyiQz5XKHA.1280@TK2MSFTNGP04.phx.gbl...
> outlook change the body of selected mail if we change body of forward
> mail.
> I have a sample application which i got from following site.
> http://www.codeproject.com/KB/COM/outlookaddin.aspx
> I attach the project on rapidshare, please get it from
> http://rapidshare.com/files/302193923/sample1.rar.html
> .
> In this application i register inspector event. When select a mail in
> outlook click on forward button it calls onnewinspector
> here i change mailbody and return. After that i found mail body is also
> change in selected mail.
> So i think it's serious issue in Outlook.
> In Onnewinspector below code change body

> HRESULT CAddin::Invoke(DISPID dispidMember,REFIID riid,LCID lcid, WORD
> wFlags,
> DISPPARAMS* pDispParams, VARIANT* pvarResult,
> EXCEPINFO* pExcepInfo, UINT* puArgErr)
> {

> if(dispidMember = 0xf001)
> {
> if (!pDispParams)
> return E_INVALIDARG;

> if (pDispParams->cArgs > 0)
> {
> IDispatchPtr pDisp(pDispParams->rgvarg[0].pdispVal);
> CComQIPtr<_Inspector> spInspector(pDisp);
> IDispatchPtr dsptr = NULL;
> spInspector->get_CurrentItem(&dsptr);
> _MailItemPtr mptr = NULL;
> mptr = dsptr;
> _bstr_t bd = "this is new body";
> if(mptr)
> {
> RecipientsPtr rptr = NULL;
> mptr->get_Recipients(&rptr);
> if(rptr)
> {
> long count = 0;
> rptr->get_Count(&count);
> if(count == 0)
> mptr->put_Body(bd);
> mptr = NULL;
> }
> }
> }
> }
> return S_OK;
> }

>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
A emails disappearing from inbox outlook 2010 exchange server 2010 major trouble Exchange Server Administration 6
A Major Server Crash - Now Public Calendar Categories Aren't Working! Using Outlook 1
mrrobski68 Issue with Find messages in a conversation macro Outlook VBA and Custom Forms 1
H Outlook 365 issue getting details from embedded files, crashing routine Outlook VBA and Custom Forms 0
O Mail rule issue Using Outlook 3
D Auto Remove [EXTERNAL] from subject - Issue with Macro Using Outlook 21
Commodore Safe way to add or update holidays; Windows Notifications issue Using Outlook 8
e_a_g_l_e_p_i Gmail in Outlook 2010 preview issue Using Outlook 4
M Issue transferring Outlook 2016 email accounts & settings onto new computer Using Outlook 8
P Forwarding emails issue with special characters replacing text body Using Outlook 1
S Excel VBA and shared calendar issue Outlook VBA and Custom Forms 3
A Clipboard Resize Issue Using Outlook 7
J O365 - Adding Shared Google Calendar ICS link issue in O365 Using Outlook 0
P Outlook 2013 "Item could not be moved - still an issue for Outlook 2013 Using Outlook 0
E Mail sorting view issue Using Outlook 1
D hide messege issue Using Outlook 1
B Outllok 2007 License Expired issue Using Outlook 0
ManaarZakaria I'm afraid of this issue, cause of strange error Exchange Server Administration 2
e_a_g_l_e_p_i Another reinstall of Outlook 2010 issue Using Outlook 10
Justo Horrillo Issue with rules in Outlook 2010 Using Outlook 4
G Icloud Contacts With Outlook Issue Using Outlook 4
J Outlook.com Contact Sync Issue Using Outlook.com accounts in Outlook 9
M Calendar Time Zone issue Using Outlook 0
B My outlook calendar edit issue Outlook VBA and Custom Forms 0
D Unusual calendar issue Exchange Server Administration 0
D Multiple Accounts Issue Receiving Emails in 2016 Using Outlook 0
B Winmail.dat Issue Using Outlook.com accounts in Outlook 0
tswatek Issue with where Outlook saves new contacts Using Outlook 3
K Outlook with MDaemon Connectivity Issue Using Outlook 4
G .ost file corrupted / solved the issue with some posts already said, but .ost file is corrupted agai Using Outlook 2
D Resizing issue for message field Outlook VBA and Custom Forms 0
P Outlook hanging issue Using Outlook 0
K Outlook 2013 calendar issue with Outlook.com Using Outlook.com accounts in Outlook 2
J Favorites in Public Folders issue Outlook VBA and Custom Forms 0
K Insert screenshots issue Using Outlook 2
T issue changing [Type] in dbo.ContactMainTable/ contacts seem to be deleted BCM (Business Contact Manager) 5
B Sub Calendar-Color Coding Issue Using Outlook 4
T Using Outlook 2007 with Comcast (.pst inbox issue) Using Outlook 1
Brendan.Z Outlook 2013 signature editing issue Using Outlook 3
F Custom contact form icon issue Using Outlook 1
A Autocomplete issue Using Outlook 6
wallisellener Synch issue BCM (Business Contact Manager) 2
H Outlook 2013 size issue Using Outlook 1
C Voting Issue with Shared Inbox Using Outlook 1
J Outlook 2013 Forms Issue Using Outlook 1
M BCM remote database connection issue BCM (Business Contact Manager) 1
A How are you handling Outlook.com category issue and syncing Using Outlook.com accounts in Outlook 2
J Outlook.com EAS Issue Using Outlook.com accounts in Outlook 6
santheocles Issue in Outlook 2013 - cannot reschedule single task Using Outlook 0
P Outlook ruler issue Using Outlook 3

Similar threads

Back
Top