[python-win32] pywin32 query ...

2009-06-08 Thread Vikas NV
Hi, I have been trying to use the Impersonate user code that you have in the PyWin32.chm document. The code that I am trying is : import win32security import win32con import win32api class Impersonate: def __init__(self,login,password): self.domain='BLAHBLAH' self.login=login

Re: [python-win32] MAPI CopyMessages

2009-06-08 Thread Tim Golden
Tim Golden wrote: Has anyone had success using the PyIMAPIFolder CopyMessages method? The spambayes source looks as tho' it's using it happily, so I can't imagine there's any fundamental problem. Only... it doesn't work for me. :( [... snip ...] Don't you hate it when that happens? Of course,

[python-win32] MAPI CopyMessages

2009-06-08 Thread Tim Golden
Has anyone had success using the PyIMAPIFolder CopyMessages method? The spambayes source looks as tho' it's using it happily, so I can't imagine there's any fundamental problem. Only... it doesn't work for me. :( I have a reproducible test case attached which is -- in the way of the extended MAPI

Re: [python-win32] Query on - win32 impersonate user

2009-06-08 Thread Tim Golden
Vikas NV wrote: Hi, I have been trying to use the Impersonate user code that you have in the PyWin32.chm document. [... snip ...] obj = Impersonate('another_user', '01928348') obj.logon() print win32api.GetUserName() os.system('bash sleep.sh') obj.logoff() Unfortunately

[python-win32] Query on - win32 impersonate user

2009-06-08 Thread Vikas NV
Hi, I have been trying to use the Impersonate user code that you have in the PyWin32.chm document. The code that I am trying is : import win32security import win32con import win32api class Impersonate: def __init__(self,login,password): self.domain='BLAHBLAH' self.login=login