From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6165836022394388480 Date: Mon, 29 Jun 2015 10:21:13 -0700 (PDT) From: Alice Riot To: supmua@googlegroups.com Cc: masterkorp@masterkorp.net Message-Id: <290f234d-cd91-429d-bbc8-026222fe15ad@googlegroups.com> In-Reply-To: <1435595368-sup-4403@vegeta> References: <1435595368-sup-4403@vegeta> Subject: Re: Open HTML attachments with chromium MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_4800_1961829256.1435598473780" X-Google-Token: EIn9xawFdFfjIa-fPSQ0 X-Google-IP: 207.251.103.46 ------=_Part_4800_1961829256.1435598473780 Content-Type: multipart/alternative; boundary="----=_Part_4801_389554.1435598473780" ------=_Part_4801_389554.1435598473780 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hey Alfredo, If you're using linux you can add the following to .sup/hooks/mime-view.rb: pid = Process.spawn("xdg-open", filename, :out => '/dev/null', :err => '/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 'enter'. 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 file > with > chromium. > > Regards, > > -- > Alfredo Palhares > GPG/PGP Key Fingerprint > 68FC B06A 6C22 8B9B F110 > 38D6 E8F7 4D1F 0763 CAAD > ------=_Part_4801_389554.1435598473780 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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,        = ;                     &nb= sp;                     &= nbsp;                    =                
  &= nbsp;                  :out = =3D> '/dev/null',                = ;                     &nb= sp;                     &= nbsp;                    =         
        &n= bsp;            :err =3D> '/dev/null') &nb= sp;                     &= nbsp;                    =                     &nbs= p;                     &n= bsp; 
               = ;                     &nb= sp;                     &= nbsp;                    =                     &nbs= p;                     &n= bsp;      
Process.detach pid      =                     &nbs= p;                     &n= bsp;                     =                      = ;                   
                   =                     &nbs= p;                     &n= bsp;                     =                      = ;                     &nb= sp;  
true     

This= will open any filetype in the application associated with it (libreoffice = documents, pdfs, etc). Just scroll to the file and hit 'enter'.

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 file = with
chromium.

Regards,

--=20
Alfredo Palhares
GPG/PGP Key Fingerprint
68FC B06A 6C22 8B9B F110
38D6 E8F7 4D1F 0763 CAAD
------=_Part_4801_389554.1435598473780-- ------=_Part_4800_1961829256.1435598473780--