A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Get language code ('EN-US', or 'FR-FR') of an incoming email?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 15th 08, 12:05 AM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_vba
Mark B[_2_]
external usenet poster
 
Posts: 93
Default Get language code ('EN-US', or 'FR-FR') of an incoming email?

How can I programmatically determine what language an incoming email is?
  #2  
Old August 15th 08, 03:42 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Get language code ('EN-US', or 'FR-FR') of an incoming email?

You would have to parse the Internet message headers to look for that.
Depending on the sending server you might see a header something like
"Content-Language". That can vary though.

Except for Outlook 2007 using the new PropertyAcessor object the object
model doesn't expose the headers. You have to use a lower level API such as
CDO 1.21 or Redemption (www.dimastr.com/redemption) or Extended MAPI for
that. Since you don't say what version of Outlook or language or platform
you're using it's hard to say anything more.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Mark B" wrote in message
...
How can I programmatically determine what language an incoming email is?


  #3  
Old August 15th 08, 11:46 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Get language code ('EN-US', or 'FR-FR') of an incoming email?

You can also look at the PR_INTERNET_CPID property, which is set based on
the received message MIME headers. It is also set on teh outgoing messages
or messages received form another Exchange mailbox even if they do not have
MIME headers.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Ken Slovak - [MVP - Outlook]" wrote in message
...
You would have to parse the Internet message headers to look for that.
Depending on the sending server you might see a header something like
"Content-Language". That can vary though.

Except for Outlook 2007 using the new PropertyAcessor object the object
model doesn't expose the headers. You have to use a lower level API such
as CDO 1.21 or Redemption (www.dimastr.com/redemption) or Extended MAPI
for that. Since you don't say what version of Outlook or language or
platform you're using it's hard to say anything more.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Mark B" wrote in message
...
How can I programmatically determine what language an incoming email is?




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook 07 language file missing code scENG- 440 - need to repair notnef Outlook - Installation 1 April 7th 08 10:23 AM
Email domain sold. Now all my incoming email will be lost. Help! Robert Outlook Express 4 April 13th 07 02:44 AM
is it possible to color code incoming email by sender? Mr . . Outlook - General Queries 7 August 6th 06 10:12 PM
Outlook Language Code Page from MAPI C++ form m3driver Add-ins for Outlook 3 July 7th 06 05:23 PM
Foreign language in the date of my outgoing/incoming messages Jeffrey Brown Outlook - Installation 0 March 27th 06 11:57 PM


All times are GMT +1. The time now is 04:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.