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


Groups > comp.lang.python > #101555

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 Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: use Python and an outlook: protocol URL to bring up a specific email
Date Wed, 13 Jan 2016 04:10:52 +1100
Lines 13
Message-ID <mailman.72.1452618660.13488.python-list@python.org> (permalink)
References <ab47c98f-69af-49ee-b1c4-bced0c48a001@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de JPYRRcxi75bixV0/U0tK4w3+DrFBNqqzfbw77MiP5K1A==
Return-Path <rosuav@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; 'received:209.85.223': 0.03; 'subject:Python': 0.05; 'cc:addr:python-list': 0.09; 'jan': 0.11; 'wed,': 0.15; '2016': 0.16; '3:51': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'fwiw': 0.16; 'popping': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:URL': 0.16; 'wrote:': 0.16; ';-)': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'command': 0.26; 'equivalent': 0.27; 'message- id:@mail.gmail.com': 0.27; '13,': 0.29; 'invoke': 0.29; 'protocol.': 0.29; 'referenced': 0.29; 'code': 0.30; 'skip:s 30': 0.31; 'received:google.com': 0.35; 'clear': 0.35; 'subject:use': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'some': 0.40; 'chrisa': 0.84; 'pasting': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Y0hfTACtBrKHjPcBY4NJ2UzRbjttL9fndIY5tyGpk/w=; b=dFBOKSCV6ILA1bCwOzd9pXtIZSMG7tzEepiBNxSs+kpzwJTT8bxvXNJkQQ1yF0Fnj2 fl72oD/9cutmg61OEUrOD2JIlf1kyUwO5kqJsPqpa38zKTEaFKK0l4jBXwU9qgK20/N5 n3nU2cbG1w9efwfnY5W8jPqGT+06E0suIVHrHR/LG9v6c+ZFaccwFqWwgZ7EbYIQYBlI YvQR8eshPZuSCKiZqtwDUWxy2DBpa5xdgj1tr6z7JCs7HJQ05Ve7xDHLmE4v9YCbOCae 3QJoZciGMFOttCLsq1VyopYFYzqVMGtuoFfcDpOF6bIwe/mxI1heADTDg/TqxWRUPzwO HGKw==
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:date :message-id:subject:from:cc:content-type; bh=Y0hfTACtBrKHjPcBY4NJ2UzRbjttL9fndIY5tyGpk/w=; b=N6HRCr48g6DY7pGpe/Bbr9echjS2yoKiXzmVvAaGv8ohF8NIZAyJbxmZRKDS0iITNq /eHgP6SSq94D2TGNorE+qxX1UGBkDMRSTR0UTVH6t2f+6Uhfs/luzH1lUndw8z6yqFR+ y3ICvw54g3PJxwdqhqT/ZrWRGLQxaO8o5mr9eJ3hcgbtkT3TTziYZbVKBgtMEq/6Rdwj EZMzZZPqrPJaFcmNjOp9VfToHRzn9L7FK6cnNcNX/q2aP3xXg2+AEWn9FxIEweAaW8yF lZQw9zUG5ZC6XD54XtDpw4uUXs/jA+CxTtdfqp6lyRIxTAW6Ht8JmS6mRQBA00/HuMpJ 5bng==
X-Gm-Message-State ALoCoQm9QqWzBVanws8/BLRQboBwM7/eMe6w1apovnuS0o1RUHSfXFCeJCuNqBIdgsWB3ksCZNgpJldbzWL3/6JEW1HQIFK6sA==
X-Received by 10.107.47.162 with SMTP id v34mr69707310iov.19.1452618652621; Tue, 12 Jan 2016 09:10:52 -0800 (PST)
In-Reply-To <ab47c98f-69af-49ee-b1c4-bced0c48a001@googlegroups.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:101555

Show key headers only | View raw


On Wed, Jan 13, 2016 at 3:51 AM, jkn <jkn_gg@nicorp.f9.co.uk> 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 if you invoke the 'start' command using subprocess?

subprocess.check_call(["start", url])

In theory, that should be equivalent to pasting it into Explorer. In theory.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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