src/mailto.py
def do_compose(self):
        """Build mailto: URL and open with configured app."""
        log.debug('Composing email ...')
        from client import Client
        from common import command_output

        query = self.args.query
        log.debug('Composing email to %r', query)
        client = Client(self.wf)
        emails = [s.strip() for s in query.split(',') if s.strip()]
        url = client.build_url(emails)
        log.debug('URL : %r', url)

        cmd = ['open']

        app = client.default_app

        log.debug('default_app : %r', app)

        if app:
            cmd += ['-b', app['bundleid']]

        cmd.append(url)
        command_output(cmd)
Build mailto: URL and open with configured app.
Build mailto: URL and open with configured app.
Build mailto : URL and open with configured app .
def do_compose(self):
        log.debug('Composing email ...')
        from client import Client
        from common import command_output
        query = self.args.query
        log.debug('Composing email to %r', query)
        client = Client(self.wf)
        emails = [s.strip() for s in query.split(',') if s.strip()]
        url = client.build_url(emails)
        log.debug('URL : %r', url)
        cmd = ['open']
        app = client.default_app
        log.debug('default_app : %r', app)
        if app:
            cmd += ['-b', app['bundleid']]
        cmd.append(url)
        command_output(cmd)
def do_compose ( self ) : log . debug ( 'Composing email ...' ) from client import Client from common import command_output query = self . args . query log . debug ( 'Composing email to %r' , query ) client = Client ( self . wf ) emails = [ s . strip ( ) for s in query . split ( ',' ) if s . strip ( ) ] url = client . build_url ( emails ) log . debug ( 'URL : %r' , url ) cmd = [ 'open' ] app = client . default_app log . debug ( 'default_app : %r' , app ) if app : cmd += [ '-b' , app [ 'bundleid' ] ] cmd . append ( url ) command_output ( cmd )
Build mailto: URL and open with configured app.
Build mailto : URL and open with configured app .
"""Build mailto: URL and open with configured app."""
self