Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101571

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

From eryk sun <eryksun@gmail.com>
Newsgroups comp.lang.python
Subject Re: use Python and an outlook: protocol URL to bring up a specific email
Date 2016-01-12 13:12 -0600
Message-ID <mailman.84.1452626009.13488.python-list@python.org> (permalink)
References <ab47c98f-69af-49ee-b1c4-bced0c48a001@googlegroups.com> <CAPTjJmpjk+LVUmV9orqvVVmbWNXzsBYKO+be3A8P62znZZF5kQ@mail.gmail.com> <CACL+1auQXdkXyV0J22nKpOxt0ZLEGdkvHzxc-Mp2MfiJXsW_ug@mail.gmail.com> <CAPTjJmoiLVJ7_kxMsNMU6XCWPyZdZ=FN18zFMTo+GNLAgb1ikA@mail.gmail.com>

Show all headers | View raw


On Tue, Jan 12, 2016 at 11:52 AM, Chris Angelico <rosuav@gmail.com> 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 has to follow both sets of rules or
even some arbitrary rules used by an executable.

> Do you actually need shell=True? I would strongly recommend using the
> form that I used, unless it can be proven that that doesn't work.

AFAIK, the "start" command has been built in to the shell since
cmd.exe originated on OS/2 in like 1987. It was enhanced when cmd.exe
was ported to Win32 for NT 3.1.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

use Python and an outlook: protocol URL to bring up a specific email jkn <jkn_gg@nicorp.f9.co.uk> - 2016-01-12 08:51 -0800
  Re: use Python and an outlook: protocol URL to bring up a specific email Chris Angelico <rosuav@gmail.com> - 2016-01-13 04:10 +1100
    Re: use Python and an outlook: protocol URL to bring up a specific email jkn <jkn_gg@nicorp.f9.co.uk> - 2016-01-12 09:22 -0800
  Re: use Python and an outlook: protocol URL to bring up a specific email eryk sun <eryksun@gmail.com> - 2016-01-12 11:37 -0600
  Re: use Python and an outlook: protocol URL to bring up a specific email Chris Angelico <rosuav@gmail.com> - 2016-01-13 04:52 +1100
    Re: use Python and an outlook: protocol URL to bring up a specific email Christian Gollwitzer <auriocus@gmx.de> - 2016-01-12 19:04 +0100
  Re: use Python and an outlook: protocol URL to bring up a specific email eryk sun <eryksun@gmail.com> - 2016-01-12 13:12 -0600

csiph-web