Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread eryk sun
On Tue, Jan 12, 2016 at 11:52 AM, Chris Angelico wrote: > Is that properly escaped to handle any arbitrary URL? I doubt it. subprocess doesn't know how to quote a command line for the Windows shell, which doesn't follow the rules used by subprocess.list2cmdline. To make matters worse, one often h

Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread Christian Gollwitzer
Am 12.01.16 um 18:52 schrieb Chris Angelico: On Wed, Jan 13, 2016 at 4:37 AM, eryk sun wrote: start is a shell command. It also has a quirk that the first quoted argument is the window title. Here's the correct call: subprocess.check_call('start "title" "%s"' % url, shell=True) Is that

Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread Chris Angelico
On Wed, Jan 13, 2016 at 4:37 AM, eryk sun wrote: > On Tue, Jan 12, 2016 at 11:10 AM, Chris Angelico wrote: >> On Wed, Jan 13, 2016 at 3:51 AM, jkn wrote: >>> I happy to carve some code without using urllib, but I am not clear what I >>> actually need to do to 'open' such a URL using this protoco

Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread eryk sun
On Tue, Jan 12, 2016 at 11:10 AM, Chris Angelico wrote: > On Wed, Jan 13, 2016 at 3:51 AM, jkn wrote: >> I happy to carve some code without using urllib, but I am not clear what I >> actually need to do to 'open' such a URL using this protocol. FWIW I can >> paste >> this URL into Windows Explor

Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread jkn
Hi Chris On Tuesday, January 12, 2016 at 5:11:18 PM UTC, Chris Angelico wrote: > On Wed, Jan 13, 2016 at 3:51 AM, jkn wrote: > > I happy to carve some code without using urllib, but I am not clear what I > > actually need to do to 'open' such a URL using this protocol. FWIW I can > > paste > > t

Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread Chris Angelico
On Wed, Jan 13, 2016 at 3:51 AM, jkn wrote: > I happy to carve some code without using urllib, but I am not clear what I > actually need to do to 'open' such a URL using this protocol. FWIW I can paste > this URL into Windows Explorer and I get the referenced email popping up ;-) > What happens i

use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread jkn
Hi all a little OS/windows specific, I'm afraid: In Windows, there exists a part-supported 'outlook protocol' to obtain and use email references within Outlook as URL. You have to go through various shenanagins to enable this and to get Outlook to give you access to the URLs - see for instan