* Open HTML attachments with chromium
@ 2015-06-29 16:32 Alfredo Palhares
2015-06-29 17:21 ` Alice Riot
0 siblings, 1 reply; 4+ messages in thread
From: Alfredo Palhares @ 2015-06-29 16:32 UTC (permalink / raw)
To: supmua
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Open HTML attachments with chromium
2015-06-29 16:32 Open HTML attachments with chromium Alfredo Palhares
@ 2015-06-29 17:21 ` Alice Riot
2015-06-29 18:30 ` [sup] " Matthieu Rakotojaona
2015-06-29 20:02 ` Gaute Hope
0 siblings, 2 replies; 4+ messages in thread
From: Alice Riot @ 2015-06-29 17:21 UTC (permalink / raw)
To: supmua; +Cc: masterkorp
[-- Attachment #1.1: Type: text/plain, Size: 1409 bytes --]
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
>
[-- Attachment #1.2: Type: text/html, Size: 3453 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup] Re: Open HTML attachments with chromium
2015-06-29 17:21 ` Alice Riot
@ 2015-06-29 18:30 ` Matthieu Rakotojaona
2015-06-29 20:02 ` Gaute Hope
1 sibling, 0 replies; 4+ messages in thread
From: Matthieu Rakotojaona @ 2015-06-29 18:30 UTC (permalink / raw)
To: supmua
[-- Attachment #1: Type: text/plain, Size: 1940 bytes --]
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 = 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
> >
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 343 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sup] Re: Open HTML attachments with chromium
2015-06-29 17:21 ` Alice Riot
2015-06-29 18:30 ` [sup] " Matthieu Rakotojaona
@ 2015-06-29 20:02 ` Gaute Hope
1 sibling, 0 replies; 4+ messages in thread
From: Gaute Hope @ 2015-06-29 20:02 UTC (permalink / raw)
To: Alice Riot, supmua; +Cc: masterkorp
Also, check out: https://github.com/sup-heliotrope/sup/wiki/Viewing-Attachments
- gaute
Alice Riot writes on June 29, 2015 19:21:
> Hey Alfredo,
>
> If you're using linux you can add the following to .sup/hooks/mime-view.rb:
> [...]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-29 20:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-29 16:32 Open HTML attachments with chromium Alfredo Palhares
2015-06-29 17:21 ` Alice Riot
2015-06-29 18:30 ` [sup] " Matthieu Rakotojaona
2015-06-29 20:02 ` Gaute Hope
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox