From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 118255255552 X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,de37ab03d5293e7 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.180.10.137 with SMTP id i9mr3682483wib.0.1411071369819; Thu, 18 Sep 2014 13:16:09 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.152.170.166 with SMTP id an6ls271082lac.71.gmail; Thu, 18 Sep 2014 13:16:09 -0700 (PDT) X-Received: by 10.112.64.35 with SMTP id l3mr822306lbs.12.1411071369274; Thu, 18 Sep 2014 13:16:09 -0700 (PDT) Return-Path: Received: from mout.web.de (mout.web.de. [212.227.17.12]) by gmr-mx.google.com with ESMTPS id fa3si135042lbc.0.2014.09.18.13.16.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Sep 2014 13:16:09 -0700 (PDT) Received-SPF: pass (google.com: domain of ruthard.baudach@web.de designates 212.227.17.12 as permitted sender) client-ip=212.227.17.12; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ruthard.baudach@web.de designates 212.227.17.12 as permitted sender) smtp.mail=ruthard.baudach@web.de Received: from localhost ([188.98.5.84]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LzsKN-1YPEnj2OuJ-014zgi for ; Thu, 18 Sep 2014 22:16:08 +0200 From: Ruthard Baudach To: supmua Subject: Re: how to write interactive hook In-reply-to: <1410717805-sup-9254@ruthard-lappi> References: <1410717805-sup-9254@ruthard-lappi> Date: Thu, 18 Sep 2014 22:06:32 +0200 Message-Id: <1411070316-sup-2686@ruthard-lappi> User-Agent: Sup/0.19.0 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1411070819-237300-14674-7751-1-=" X-Provags-ID: V03:K0:NUSCh+DTMtDBEfZOdrQru08mc9nFBmvFCSCz4/OLFjEoHDI9oBu NOaqxfEy2oepq3b3I+9Bneo9mRu4y6fS01xRHwH/1ZhuXoFTCtTK+VPrPkMXBtnxT5EOuGS sF6UP9PuQwW5qPlaCkIvQ23gV7qbHo9OgGDnvOktVgvZEjb//ZnHyPVVI1suBUKHRV56A4M 9+zmBb6kGr0C95yCDRF8A== X-UI-Out-Filterresults: notjunk:1; --=-1411070819-237300-14674-7751-1-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dear list, I put together the following minimal signature.rb: --------->%-------------- # signature.rb -- generate signature signature =3D BufferManager.ask_many_with_completions :sign, "Choose sign= ature: ", ["One","Two","Three"] 'Signature: ' + signature --------->%-------------- It works -- but the hook seems to be called 1) when entering compose mode 2) each time the external editor is called 3) and 4) two times after the external editor closed. So I have to choose my signature four times! Has anybody an idea what to do about this? Greetings, Ruthard --=-1411070819-237300-14674-7751-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUGztjAAoJEA852hysWsbCwvkH/Ruvxj7dxPTNjFR/KbObn/ff cr39wKs8sAr/wACgbiZoMgC2w5nrEH/Bx61+6UIXBm3DwTBRvZLKGxh1kWFR9NLS p2NMkQvh/2O0gaxsqiwMlx6Gc3UsEJd7ty6cDVLbSciOl/Z6Un/y4u3Y7uOSwLf5 e+9fry8uVzZKfAy6hamgfOR/Oq7Cimg5y5mk+Sx8l8aLFJ1XW24jRdPI77/0/q59 3T5t4VDXUy6hn+whH4sApA9sncEQpKYjQDmP+rOQJlCDZPNCSuForPGtI9dSozts vBLecO4npthljDEMaZu39OG+Fv4NKp8ocEDGGp/nn+wOPh97yivpF5xNeatMFfk= =nfB6 -----END PGP SIGNATURE----- --=-1411070819-237300-14674-7751-1-=--