View Single Post
  #10  
Old January 8th 07, 06:54 PM posted to microsoft.public.outlook.program_addins
Tom at GSD
external usenet poster
 
Posts: 84
Default Adding a header item with MAPI

Oh! Okay. I noticed that all the other header elements were not lower case -
that is why I asked. I don't think it will matter; but I had to ask the
question.

Thanks,
Tom -



"Dmitry Streblechenko" wrote:

AFAIK that's just what the SMTP provider does.
Why is this important? According to all the RFCs MIME headers are not case
sensitive.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Tom at GSD" wrote in message
...
Hi Again Dmitry,

I ran into a slight issue that I seem not to be able to fix. I am adding
the
header information to my out going message; but is seems as though it
always
adds the header information as lower case. Is there a way to tell mapi to
ignore the case? In other words if I add a header like "X-MyHeader" it
will
show up as "x-myheader".

Thanks,
Tom -

"Dmitry Streblechenko" wrote:

1. Read MailItem.MAPIOBJECT property
2. QI it for IMessage Extended MAPI interface
3. Call IMessage::GetIDsFromNames() passing the appropriate GUID and id
4. "Or" the retirned tag with the appropriate type (PT_STRING8)
5. Use Imessage::SetProps or HrSetOneProp to set the property with tag
from
#4.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Tom at GSD" wrote in message
...
Hi,

I have developed an ATL/C++ add-in that I want to add a header item to
a
_MailItem before I forward the email. The idea is that I take an item
out
of
the inbox, modify the header and then forward it to another email
address.
I
see there are Redemption examples; but I do not want to use the
redemption
libraries. Is there an extended MAPI example that will show me how to
accomplish this? I do not want to use any third party utilities. I have
looked for examples on the web but I do not see any.

Thanks,
Tom -








Ads