PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Re: Impossible to get current user email address in OL2002?
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Program Addins
Re: Impossible to get current user email address in OL2002?
![]() |
Re: Impossible to get current user email address in OL2002? |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Use CurrentProfileName of Redemption.MAPIUtils to get the profile name and
then retrieve the address from registry. -- Regards, Victor Ivanidze, software developer www.ivasoft.biz "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message news:#wKK70NQDHA.1560@TK2MSFTNGP12.phx.gbl... > I'm finding it impossible to get the current user's e-mail address in an > OL2002 addin. > > App.session.currentuser.address issues a popup security warning when I try > to access it, so that's not an option for me. > > Redemption's SafeCurrentUser doesn't return the e-mail address either > because the underlying MAPI is broken. (Dmitry: If you added a SafeSession > object, I could get at it that way.) > > I can't just look at the the to-address of inbound messages, as messages for > multiple addresses may be delivered to the same InBox. > > The profile information is encrypted in the registry. > > Is there any other way or is it just totally impossible to know what your > e-mail address is? For the time being I've raised the white flag and > required the user to enter their e-mail address into an initialization > dialog which then stores it in an xml settings file, but that really sucks > as a solution. > > Thanks in advance for your comments, > > Terry > > |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Victor:
Running OL2002, I find that the e-mail address, and most everything else for the profile is encrypted, so it doesn't look like that will work. Terry "Victor Ivanidze" <victori@mail.fact400.ru> wrote in message news:%23UGHyYWQDHA.2480@tk2msftngp13.phx.gbl... > Use CurrentProfileName of Redemption.MAPIUtils to get the profile name and > then retrieve the address from registry. > > -- > Regards, > > Victor Ivanidze, > software developer > www.ivasoft.biz > > > > "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message > news:#wKK70NQDHA.1560@TK2MSFTNGP12.phx.gbl... > > I'm finding it impossible to get the current user's e-mail address in an > > OL2002 addin. > > > > App.session.currentuser.address issues a popup security warning when I try > > to access it, so that's not an option for me. > > > > Redemption's SafeCurrentUser doesn't return the e-mail address either > > because the underlying MAPI is broken. (Dmitry: If you added a > SafeSession > > object, I could get at it that way.) > > > > I can't just look at the the to-address of inbound messages, as messages > for > > multiple addresses may be delivered to the same InBox. > > > > The profile information is encrypted in the registry. > > > > Is there any other way or is it just totally impossible to know what your > > e-mail address is? For the time being I've raised the white flag and > > required the user to enter their e-mail address into an initialization > > dialog which then stores it in an xml settings file, but that really sucks > > as a solution. > > > > Thanks in advance for your comments, > > > > Terry > > > > > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Terry,
AFAIK the user Exchange address does not encrypted at all. Let's assume you are running Outlook 2002 on Windows 2000 and your current profile is "test". Then in HKCU\Software\Microsoft\WindowsNT\Current Version\Windows Messaging Subsystem\Profiles\test\13dbb0c8aa05101a9bb000aa002fc45a\001e6603 you can find the PR_PROFILE_USER property that is equal to Exchange Server distinguish name (also known as Exchange address). After that you can retrieve e.g. the default SMTP address from AD using LDAP request. -- Regards, Victor Ivanidze, software developer www.ivasoft.biz "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message news:O6#EJPaQDHA.3020@TK2MSFTNGP10.phx.gbl... > Victor: > > Running OL2002, I find that the e-mail address, and most everything else for > the profile is encrypted, so it doesn't look like that will work. > > Terry > > "Victor Ivanidze" <victori@mail.fact400.ru> wrote in message > news:%23UGHyYWQDHA.2480@tk2msftngp13.phx.gbl... > > Use CurrentProfileName of Redemption.MAPIUtils to get the profile name and > > then retrieve the address from registry. > > > > -- > > Regards, > > > > Victor Ivanidze, > > software developer > > www.ivasoft.biz > > > > > > > > "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message > > news:#wKK70NQDHA.1560@TK2MSFTNGP12.phx.gbl... > > > I'm finding it impossible to get the current user's e-mail address in an > > > OL2002 addin. > > > > > > App.session.currentuser.address issues a popup security warning when I > try > > > to access it, so that's not an option for me. > > > > > > Redemption's SafeCurrentUser doesn't return the e-mail address either > > > because the underlying MAPI is broken. (Dmitry: If you added a > > SafeSession > > > object, I could get at it that way.) > > > > > > I can't just look at the the to-address of inbound messages, as messages > > for > > > multiple addresses may be delivered to the same InBox. > > > > > > The profile information is encrypted in the registry. > > > > > > Is there any other way or is it just totally impossible to know what > your > > > e-mail address is? For the time being I've raised the white flag and > > > required the user to enter their e-mail address into an initialization > > > dialog which then stores it in an xml settings file, but that really > sucks > > > as a solution. > > > > > > Thanks in advance for your comments, > > > > > > Terry > > > > > > > > > > > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Victor:
All I have under that key is a single long integer: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\terryl@datagem.com\13dbb0c8aa05101a9bb000aa002fc45a] "00036661"=hex:06,02,00,02 The e-mail address (which happens to be the same as the profile name) can't be stored there. Or maybe I'm missing something. When I search the registry for the e-mail address, nothing useful comes up. Obviously it's there somewhere. That's why I thought it was encrypted. BTW, I'm not running Exchange in this instance. Don't know if it matters. I just remembered I got some profile-related software with Redemption. I'll look into that. Thanks, Terry "Victor Ivanidze" <victori@mail.fact400.ru> wrote in message news:%23zcUlsgQDHA.1040@TK2MSFTNGP12.phx.gbl... > Terry, > > AFAIK the user Exchange address does not encrypted at all. > > Let's assume you are running Outlook 2002 on Windows 2000 and your current > profile is "test". > Then in > HKCU\Software\Microsoft\WindowsNT\Current Version\Windows Messaging > Subsystem\Profiles\test\13dbb0c8aa05101a9bb000aa002fc45a\001e6603 > > you can find the PR_PROFILE_USER property that is equal to Exchange Server > distinguish name (also > known as Exchange address). After that you can retrieve e.g. the default > SMTP address from AD using LDAP request. > > -- > Regards, > > Victor Ivanidze, > software developer > www.ivasoft.biz > > > > "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message > news:O6#EJPaQDHA.3020@TK2MSFTNGP10.phx.gbl... > > Victor: > > > > Running OL2002, I find that the e-mail address, and most everything else > for > > the profile is encrypted, so it doesn't look like that will work. > > > > Terry > > > > "Victor Ivanidze" <victori@mail.fact400.ru> wrote in message > > news:%23UGHyYWQDHA.2480@tk2msftngp13.phx.gbl... > > > Use CurrentProfileName of Redemption.MAPIUtils to get the profile name > and > > > then retrieve the address from registry. > > > > > > -- > > > Regards, > > > > > > Victor Ivanidze, > > > software developer > > > www.ivasoft.biz > > > > > > > > > > > > "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message > > > news:#wKK70NQDHA.1560@TK2MSFTNGP12.phx.gbl... > > > > I'm finding it impossible to get the current user's e-mail address in > an > > > > OL2002 addin. > > > > > > > > App.session.currentuser.address issues a popup security warning when I > > try > > > > to access it, so that's not an option for me. > > > > > > > > Redemption's SafeCurrentUser doesn't return the e-mail address either > > > > because the underlying MAPI is broken. (Dmitry: If you added a > > > SafeSession > > > > object, I could get at it that way.) > > > > > > > > I can't just look at the the to-address of inbound messages, as > messages > > > for > > > > multiple addresses may be delivered to the same InBox. > > > > > > > > The profile information is encrypted in the registry. > > > > > > > > Is there any other way or is it just totally impossible to know what > > your > > > > e-mail address is? For the time being I've raised the white flag and > > > > required the user to enter their e-mail address into an initialization > > > > dialog which then stores it in an xml settings file, but that really > > sucks > > > > as a solution. > > > > > > > > Thanks in advance for your comments, > > > > > > > > Terry > > > > > > > > > > > > > > > > > > > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Terry:
> BTW, I'm not running Exchange in this instance. Don't know if it matters. Oh, you did not tell it earlier. Sure it matters. Well, then you need to look at [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\terryl@datagem.com\9375CFF0413111d3B88A00104B2A6676\00000 001\Email Email address does not encrypted, it just saved as binary data. Regards, Victor "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message news:OjZ3QonQDHA.1040@TK2MSFTNGP12.phx.gbl... > Victor: > > All I have under that key is a single long integer: > > Windows Registry Editor Version 5.00 > > [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows > Messaging > Subsystem\Profiles\terryl@datagem.com\13dbb0c8aa05101a9bb000aa002fc45a] > "00036661"=hex:06,02,00,02 > > The e-mail address (which happens to be the same as the profile name) can't > be stored there. Or maybe I'm missing something. > > When I search the registry for the e-mail address, nothing useful comes up. > Obviously it's there somewhere. That's why I thought it was encrypted. > > BTW, I'm not running Exchange in this instance. Don't know if it matters. > > I just remembered I got some profile-related software with Redemption. I'll > look into that. > > Thanks, > > Terry > > "Victor Ivanidze" <victori@mail.fact400.ru> wrote in message > news:%23zcUlsgQDHA.1040@TK2MSFTNGP12.phx.gbl... > > Terry, > > > > AFAIK the user Exchange address does not encrypted at all. > > > > Let's assume you are running Outlook 2002 on Windows 2000 and your current > > profile is "test". > > Then in > > HKCU\Software\Microsoft\WindowsNT\Current Version\Windows Messaging > > Subsystem\Profiles\test\13dbb0c8aa05101a9bb000aa002fc45a\001e6603 > > > > you can find the PR_PROFILE_USER property that is equal to Exchange Server > > distinguish name (also > > known as Exchange address). After that you can retrieve e.g. the default > > SMTP address from AD using LDAP request. > > > > -- > > Regards, > > > > Victor Ivanidze, > > software developer > > www.ivasoft.biz > > > > > > > > "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message > > news:O6#EJPaQDHA.3020@TK2MSFTNGP10.phx.gbl... > > > Victor: > > > > > > Running OL2002, I find that the e-mail address, and most everything else > > for > > > the profile is encrypted, so it doesn't look like that will work. > > > > > > Terry > > > > > > "Victor Ivanidze" <victori@mail.fact400.ru> wrote in message > > > news:%23UGHyYWQDHA.2480@tk2msftngp13.phx.gbl... > > > > Use CurrentProfileName of Redemption.MAPIUtils to get the profile name > > and > > > > then retrieve the address from registry. > > > > > > > > -- > > > > Regards, > > > > > > > > Victor Ivanidze, > > > > software developer > > > > www.ivasoft.biz > > > > > > > > > > > > > > > > "Terry Lindeman" <terryl@no-spam-datagem.com> wrote in message > > > > news:#wKK70NQDHA.1560@TK2MSFTNGP12.phx.gbl... > > > > > I'm finding it impossible to get the current user's e-mail address > in > > an > > > > > OL2002 addin. > > > > > > > > > > App.session.currentuser.address issues a popup security warning when > I > > > try > > > > > to access it, so that's not an option for me. > > > > > > > > > > Redemption's SafeCurrentUser doesn't return the e-mail address > either > > > > > because the underlying MAPI is broken. (Dmitry: If you added a > > > > SafeSession > > > > > object, I could get at it that way.) > > > > > > > > > > I can't just look at the the to-address of inbound messages, as > > messages > > > > for > > > > > multiple addresses may be delivered to the same InBox. > > > > > > > > > > The profile information is encrypted in the registry. > > > > > > > > > > Is there any other way or is it just totally impossible to know what > > > your > > > > > e-mail address is? For the time being I've raised the white flag > and > > > > > required the user to enter their e-mail address into an > initialization > > > > > dialog which then stores it in an xml settings file, but that really > > > sucks > > > > > as a solution. > > > > > > > > > > Thanks in advance for your comments, > > > > > > > > > > Terry > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

