[python-win32] Obtaining SMTP address of a sender and receiver of an outlook mail

venu madhav venutaurus539 at gmail.com
Mon Dec 8 14:48:29 CET 2008


Sir,       I am a beginner in Python and I tried a lot but couldn't make it
work. Can I get a code snippet some where giving me the Sender and Recipient
addresses using LDAP as you have said. I have already a MAPI session opened
for reading the mails. Is it possible to access LDAP object through this
MAPI.
        Any code snippets or references are highly appreciated.

Thank you,
Venu.

On Sat, Dec 6, 2008 at 7:52 AM, BJ Swope <bigblueswope at gmail.com> wrote:

> If you are logged into a windows pc on the domain, you can read query AD
> using ldap.  By access I meant you can hit the AD server, not that you can
> control the server.
>
> I've not monkeyed with the MAPI tools enough to know.
>
>
> On Wed, Dec 3, 2008 at 11:43 PM, venu madhav <venutaurus539 at gmail.com>wrote:
>
>> Hi,
>>        I don't have access to the AD server because only the
>> administrators here have those rights. Aren't there any MAPI Sender and
>> Recipient object properties which satisfies my need?
>>
>> Thank you,
>> Venu.
>>
>> On Thu, Dec 4, 2008 at 9:00 AM, BJ Swope <bigblueswope at gmail.com> wrote:
>>
>>> If you have access to the AD server that hosts those DNs you can use
>>> python's ldap module to retrieve the smtp attribute for the DN you've just
>>> parsed from the message.
>>>
>>> On Wed, Dec 3, 2008 at 2:06 AM, venutaurus539 at gmail.com <
>>> venutaurus539 at gmail.com> wrote:
>>>
>>>> Hi all,
>>>>       I am trying to use python for extracting contents of an outlook
>>>> email. For extracting the list of Recipients addresses I tried using
>>>> the "MAPI.message.Recipients.Address" property, but the problem I am
>>>> facing is that it is giving the complete DN name which is putting me
>>>> in further complications. Is there any way to obtain the actual SMTP
>>>> mail address (username at domain.com) from the above object? I searched
>>>> for it in the MSDN help but couldn't succeed.
>>>>
>>>> Thanks in advance,
>>>> Venu
>>>> --
>>>> http://mail.python.org/mailman/listinfo/python-list
>>>>
>>>
>>>
>>
>
>
> --
> We are all slave to our own paradigm. -- Joshua Williams
>
> If the letters PhD appear after a person's name, that person will remain
> outdoors even after it's started raining. -- Jeff Kay
>
> Fascism is a term used to describe authoritarian nationalist political
> ideologies or mass movements that are concerned with notions of cultural
> decline or decadence and seek to achieve a millenarian national rebirth by
> exalting the nation or race, and promoting cults of unity, strength and
> purity. - Wikipedia
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20081208/c80ad231/attachment.htm>


More information about the python-win32 mailing list