Re: Re: mailcap on Windows WSL

2024-10-08 Thread Jan Eden via Mutt-users
On 2024-10-08 08:26, Michael Kjörling wrote: > On 8 Oct 2024 08:55 +0200, from mutt-users@mutt.org (Jan Eden via Mutt-users): > > I need to use mutt within the WSL of MS Windows. To display HTML > > mails via mailcap, I created a small script which reads from STDIN, > > writes a temporary file and

Re: Re: mailcap on Windows WSL

2024-10-08 Thread Jan Eden via Mutt-users
On 2024-10-08 09:38, José María Mateos wrote: > On Tue, Oct 8, 2024, at 08:55, Jan Eden via Mutt-users wrote: > > with open('/var/tmp/htmlfile', 'w', encoding='iso-8859-1') as tmp_file: > > ... > > > > but this only changed the error message to: > > > > 'latin-1' can't encode character '...' i

Re: mailcap on Windows WSL

2024-10-08 Thread Michael Kjörling
On 8 Oct 2024 08:55 +0200, from mutt-users@mutt.org (Jan Eden via Mutt-users): > I need to use mutt within the WSL of MS Windows. To display HTML > mails via mailcap, I created a small script which reads from STDIN, > writes a temporary file and opens it with the Edge browser: > > # ~/.mutt/mailca

Re: mailcap on Windows WSL

2024-10-08 Thread José María Mateos
On Tue, Oct 8, 2024, at 08:55, Jan Eden via Mutt-users wrote: > with open('/var/tmp/htmlfile', 'w', encoding='iso-8859-1') as tmp_file: > ... > > but this only changed the error message to: > > 'latin-1' can't encode character '...' in position ...: ordinal not in > range(256) You can tell o

mailcap on Windows WSL

2024-10-08 Thread Jan Eden via Mutt-users
Good morning, I need to use mutt within the WSL of MS Windows. To display HTML mails via mailcap, I created a small script which reads from STDIN, writes a temporary file and opens it with the Edge browser: # ~/.mutt/mailcap text/html; ~/.mutt/htmlviewer html # ~/.mutt/htmlviewer with open('/var