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

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
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 Tue, 12 Jan 2016 13:12:40 -0600
Lines 14
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>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de kP6IX3XCbRL7VMmmkWj++QvgIeFtCtR79TIjWh+r6iVQ==
Return-Path <eryksun@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'subject:Python': 0.05; 'jan': 0.11; 'properly': 0.15; '2016': 0.16; 'executable.': 0.16; 'ported': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:URL': 0.16; 'subprocess': 0.16; 'wrote:': 0.16; 'shell': 0.18; 'windows': 0.20; 'to:name:python- list@python.org': 0.20; 'am,': 0.23; 'sets': 0.23; 'header:In- Reply-To:1': 0.24; "doesn't": 0.26; 'command': 0.26; 'chris': 0.26; 'used,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'escaped': 0.29; 'work.': 0.30; 'strongly': 0.30; 'rules': 0.31; 'doubt': 0.33; 'enhanced': 0.33; 'tue,': 0.34; 'handle': 0.34; 'received:google.com': 0.35; 'subject:use': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; '12,': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'to:addr:python.org': 0.40; 'some': 0.40
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YlGzISdslhqFYerDfLRlhqhovqDHUqWY3J7aWEkLf7E=; b=KWQriCDMeG+5+tmqz5iECf3ybzDOaCSb+nifC1lAR7Fu1gKRAJltO0LUzTM7J4Y7ou Fi12LCqvraxVX3Q5eCoi1exRSX1zquvFzgtrN2NuoiopXIq2V0TnJ9DEZJI0QI0asRaW aB6KkU+Re9lBfMGut8QnP7SzPL7uxzM6EhmdtnXUPaLeGkJ2VeQh3TBwuzgiY709xcqw ToicopB6zDqwR90p87RGRDopAjFcF/tS4picSnkRdu7HvbBCGEB0ai2JYXFvR5+2aLkC nNq/zzGjGppjjITo/UXPkRTrM53A91jqyXt0a2mh+CllkT0Gaau9xhgSR12vugqVAbuY qYDA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=YlGzISdslhqFYerDfLRlhqhovqDHUqWY3J7aWEkLf7E=; b=Naxy5qpAat+KsSDQ6M3ceh5RDT07DLG0hfUrIMI168lZh7pKpFR83tOJ130fKQGcas 0FoHKCXsiaNeLd7tlp9rgeD/LtZfOFLckKAjuyrOASvJDbmNKib1OmfhFf2gHTh+1Iyv 0umDNh9I/8hNm7snyFzoIIp5BsTIBfjRrgpq/fbjRgS5xRfoJ9ffWuNHXA4aEZlT2yvO HTkOay3I2R/7vUKTSKkf2F14tvYl6+2YNxyElMDxukmuGGwgAajs8wCTN7FiyWUF8uHm t5kSCx2PITY11AoJTx/SkOXGBSCy+67fZbEd/a/X3lMcM2Nuu95u9L2Lq/wiqIkE9F5y /7CA==
X-Gm-Message-State ALoCoQkMtQKTd4UZ3YWmf4/2MAnNOq44fsk120v/noBQHiqtQ9bya3MTZ0SVK8W8DoOmUBWndtI8N5peo9SLSt/Zy0YUuQmKcQ==
X-Received by 10.50.61.132 with SMTP id p4mr19901582igr.55.1452626000337; Tue, 12 Jan 2016 11:13:20 -0800 (PST)
In-Reply-To <CAPTjJmoiLVJ7_kxMsNMU6XCWPyZdZ=FN18zFMTo+GNLAgb1ikA@mail.gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:101571

Show key headers only | 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