From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 290372714496 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,83d4144633313afc,start X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.66.175.233 with SMTP id cd9mr8437891pac.46.1414658196440; Thu, 30 Oct 2014 01:36:36 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.107.46.105 with SMTP id i102ls808500ioo.34.gmail; Thu, 30 Oct 2014 01:36:36 -0700 (PDT) X-Received: by 10.66.175.233 with SMTP id cd9mr8437879pac.46.1414658196113; Thu, 30 Oct 2014 01:36:36 -0700 (PDT) Return-Path: Received: from mout.web.de (mout.web.de. [212.227.15.3]) by gmr-mx.google.com with ESMTPS id u15si164533igr.3.2014.10.30.01.36.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Oct 2014 01:36:36 -0700 (PDT) Received-SPF: pass (google.com: domain of ruthard.baudach@web.de designates 212.227.15.3 as permitted sender) client-ip=212.227.15.3; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ruthard.baudach@web.de designates 212.227.15.3 as permitted sender) smtp.mail=ruthard.baudach@web.de Received: from ruthard-lappi.fritz.box ([94.217.201.160]) by smtp.web.de (mrweb004) with ESMTPSA (Nemesis) id 0MCeX4-1Xt4tM2ZVa-009REx for ; Thu, 30 Oct 2014 09:36:34 +0100 From: Ruthard Baudach To: supmua Subject: calling sup with email address as argument Date: Thu, 30 Oct 2014 09:36:32 +0100 Message-Id: <1414658155-sup-3764@ruthard-lappi> User-Agent: Sup/0.20.0 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1414658192-436639-1606-175-2-=" X-Provags-ID: V03:K0:F/XrM29/2CwNxxVBprsZheUvz+qwq3tGvRkuoszVddxly1462Rd VmtwdzxP1Z4vC39mbdQ5zNttMQU5CvaEOd+xbfEy4UplpdcAOrST2Y1UVvbVc6ceHrmOfub OdLfKbFv3w5MCBb8l3PkLIG4yCZeS+TCWL6edQzV9aZiEDrmEvJFBFDFQ0zeswJcxtvCjm8 KmZCKRFEGc0VKzllD7BIQ== X-UI-Out-Filterresults: notjunk:1; --=-1414658192-436639-1606-175-2-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear developers, To use sup for composing emails following "mailto://" links in HTML documents, sup should enter compose mode when called with an email adress as command line argument like this: sup supmua@googlegroups.com This could be achieved adding the following line of code after the option definitions in bin/sup: ---------------->%---------------------------- $opts =3D Trollop::options do version "sup v#{Redwood::VERSION}" banner < String opt :compose, "Compose message to this recipient upon startup", :type =3D= > String opt :subject, "When composing, use this subject", :type =3D> String, :s= hort =3D> "j" end >>> ## compose message if we have an email address as first command line = argument >>> $opts[:compose] =3D ARGV[0] if ARGV[0] =3D~ /.+@.+\..+/ && !$opts[:co= mpose] ---------------->%---------------------------- I'm sorry for not using git-format-patch, I don't know neither ruby nor git, and am trying to learn ruby at the moment. Best regards, Ruthard ---- Emails bitte verschl=C3=BCsseln und signieren. Meine PGP-Id: AC5AC6C2 --=-1414658192-436639-1606-175-2-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUUfiQAAoJEA852hysWsbCWaUH/jNEHDRse/1654NgLcLtp4mL 6bI8qtJcfC2IyHFrRUAHlKhpBQ13YObISw4PkLW9GuI+QXSxtMcho83v4T7MdISK 2SSQea76xSGlQM16FC76j6V5mQacSDG+nyrsx4M3j2jyPa61y45ZjK3F52VLStA/ fH7aFmszXY+36xgtBHucFg6Dlhs1L87lLzQQp3VaMQ+J3SGBupk9UYU8Yt3UHqmR +lEk7othu3BU7VuInzPZ2A4CdJJRxyjGCQqjar5Q3ybN1Cv8aqDQAdOEssZWl23/ i5iXvpzVRKxstO4COvSHwjpNQ87tQ9WxyQ9iuu49pZc0mvJ1U4mBFy9ujbt/XU8= =Sit9 -----END PGP SIGNATURE----- --=-1414658192-436639-1606-175-2-=--