From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6165836022394388480 X-Received: by 10.112.219.200 with SMTP id pq8mr11665220lbc.7.1435602604723; Mon, 29 Jun 2015 11:30:04 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.180.88.38 with SMTP id bd6ls637975wib.12.canary; Mon, 29 Jun 2015 11:30:04 -0700 (PDT) X-Received: by 10.194.81.136 with SMTP id a8mr11663370wjy.2.1435602604226; Mon, 29 Jun 2015 11:30:04 -0700 (PDT) Return-Path: Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com. [2a00:1450:400c:c05::22c]) by gmr-mx.google.com with ESMTPS id ec7si449292wib.3.2015.06.29.11.30.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 11:30:04 -0700 (PDT) Received-SPF: pass (google.com: domain of matthieu.rakotojaona@gmail.com designates 2a00:1450:400c:c05::22c as permitted sender) client-ip=2a00:1450:400c:c05::22c; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of matthieu.rakotojaona@gmail.com designates 2a00:1450:400c:c05::22c as permitted sender) smtp.mail=matthieu.rakotojaona@gmail.com; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Received: by mail-wi0-x22c.google.com with SMTP id gi11so79912697wic.0 for ; Mon, 29 Jun 2015 11:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:in-reply-to:references:date:message-id:user-agent :content-transfer-encoding:mime-version:content-type; bh=Igg/wZCGY4+ikZNdnqX+Prws4Iqe1wNKxBoxI5qnlHM=; b=Rd242ViiFk9fRclMsHitz+feclLShLypBGaW4hyINHef2KKA+ceUYJX8n9bd7fZQtO vIS2v1L76IdKCg8A8Ilcn4/qJZP/x1PRsR+bdsmuhVgvE0i/hnRqZ+EyuVBZ8944VWpJ yq1GFORP66P96z+JSptZewmUV7EA6QtrOz87WKhqX6/YRb7cKktnFD8qpfxS0qI5AMvI 1zd6GndujGY7XU5eDjYmOEaOsw03cathJ7YCuxv94T6RKnSVjB6mHymSyAq1NyfQmCmb gab4bE7gtLm8mnxjDuTxn1RYkEGHkrp3KQXE8ig4gMVIY1eVSg3G5CNQWYjuUAp+IuR4 uJyQ== X-Received: by 10.194.176.225 with SMTP id cl1mr31813885wjc.45.1435602604116; Mon, 29 Jun 2015 11:30:04 -0700 (PDT) Return-Path: Received: from localhost.localdomain (155-29-190-109.dsl.ovh.fr. [109.190.29.155]) by mx.google.com with ESMTPSA id p2sm13296689wix.11.2015.06.29.11.30.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 11:30:03 -0700 (PDT) Received: from localhost (localhost.localdomain [local]); by localhost.localdomain (OpenSMTPD) with ESMTPA id 508c3e90; for ; Mon, 29 Jun 2015 18:30:02 +0000 (UTC) From: Matthieu Rakotojaona To: supmua Subject: Re: [sup] Re: Open HTML attachments with chromium In-reply-to: <290f234d-cd91-429d-bbc8-026222fe15ad@googlegroups.com> References: <1435595368-sup-4403@vegeta> <290f234d-cd91-429d-bbc8-026222fe15ad@googlegroups.com> X-pgp-key: http://otokar.looc2011.eu/static/matthieu.rakotojaona.asc Date: Mon, 29 Jun 2015 20:30:01 +0200 Message-Id: <1435601735-sup-8880@kpad> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1435602602-105792-722-8670-8-=" --=-1435602602-105792-722-8670-8-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey guys, I personnally use this one-liner which is basically the same thing: $ cat /path/to/hooks/mime-view.rb system("xdg-open #{filename} > /dev/null 2>&1 &") Note the final "&": you need it if you don't want to wait for the right program to be chosen and opened before being able to use sup again (because the hook is blocking) Excerpts from Alice Riot's message of 2015-06-29 10:21:13 -0700: > Hey Alfredo, > = > If you're using linux you can add the following to .sup/hooks/mime-view= .rb: > = > pid =3D Process.spawn("xdg-open", filename, = = > = > :out =3D> '/dev/null', = = > = > :err =3D> '/dev/null') = = > = > = = > = > Process.detach pid = = > = > = = > = > true = > = > This will open any filetype in the application associated with it = > (libreoffice documents, pdfs, etc). Just scroll to the file and hit 'en= ter'. > = > On Monday, June 29, 2015 at 12:32:49 PM UTC-4, Alfredo Palhares wrote: > > > > Hello everyone, = > > > > Can I set sup to open HTML only emails with chromium ? = > > It a pain in arse to always save the attachment and then open the fil= e = > > with = > > chromium. = > > > > Regards, = > > > > -- = > > Alfredo Palhares = > > GPG/PGP Key Fingerprint = > > 68FC B06A 6C22 8B9B F110 = > > 38D6 E8F7 4D1F 0763 CAAD = > > > = --=-1435602602-105792-722-8670-8-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iL4EARYKAGYFAlWRjqpfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEU1NUU4OTkzQzM4OEMwMjk3MEMwMDYxNzIx MjlEMTI4NTczMTM0ODAACgkQISnRKFcxNIDUxwEAxbW3mSWNG9714w2tdm66z0Wq VoYqciG1i8DRUFAFERkBAKonqESL0y7ZJ7H607Jq83UdXZ3ZmPdu2EFnxwjpXXcI =fPvh -----END PGP SIGNATURE----- --=-1435602602-105792-722-8670-8-=--