Steffen Nurpmeso <[email protected]> wrote:
> Χάρης Καραχριστιανίδης wrote in
>
> Oh it is _such_ a pity i cannot speek Greek! A hundred years ago
> i think it was everywhere here in Germany, and i think also in
> France. Beautiful Greece!!
>
> <20230215220157.xvfcj%[email protected]>:
> ...
> |s-nail v14.9.24, 2022-03-26 (built for Linux)
> |Features included (+) or not (-):
> ...
> [.]+filter-html-tagsoup[.]
> ...
> |and this code in my .mailrc
> |
> | if "$features" !% ,+filter-html-tagsoup,
> | set pipe-text/html='?* lynx -stdin -dump -force_html'
> | endif
> |
> | mimetype ?t application/mathml+xml mathml
> |
> | define showhtml {
> | \localopts yes
> | \set mime-alternative-favour-rich pipe-text/html=?h?
> | \type "$@"
> |}
> | \commandalias html \\call showhtml
> |
> |nothing happens when I open html email. Any help?
>
> With "open" you mean the "type" or "print" command?
>
> As you do have that filter-html-tagsoup lynx(1) will never execute
> in the above -- it solely depends on the mimetype, then.
> And it may be that you have a /etc/mime.types or ~/mime.types
> which defines something for html in addition to internal
> mimetypes.
>
> But in short: simply force your desired handler:
>
> ? set pipe-text/html='?* lynx -stdin -dump -force_html'
> ? type HTML-MESSAGE
>
> This should execute the lynx one now, reintegrating output into
> normal flow (with "set crt" this will likely startup the $PAGER
> then). This is for plain HTML message, a multipart one likely
> wants to have a "set mime-alternative-favour-rich" first.
>
> ? set pipe-text/html='?! lynx -stdin -force_html'
> ? type HTML-MESSAGE
>
> (Do not forget the "!" so we give up the terminal!)
> This will then say you should use the `mimeview' command.
>
> ? mimeview HTML-MESSAGE
>
> This will ask you, and if you say "y" then lynx starts up.
>
> Using a mailcap entry may be the easier and sharable approach.
> Does this help? Sufficiently?
>
> Using a mailcap handler is usually better and sharable, and
> mimetype tricks can also be played, like
>
> ? unmimetype text/html
> ? mimetype ?h text/html html htm
> ? type HTML-MESSAGE
>
> And unless i am mistaken now the built-in filter-html-tagsoup
> should be used.
>
> Ciao (may be off until tomorrow now, sorry!!!),
>
> --steffen
> |
> |Der Kragenbaer, The moon bear,
> |der holt sich munter he cheerfully and one by one
> |einen nach dem anderen runter wa.ks himself off
> |(By Robert Gernhardt)
> Oh it is _such_ a pity i cannot speek Greek!
Aber ich spreche Deutch! :-) Deutschland ist auch sehr schoen!
> With "open" you mean the "type" or "print" command?
I just write the email number and press enter. I suppose it is open?
With
? set pipe-text/html='?* lynx -stdin -dump -force_html'
? type HTML-MESSAGE
I get this error: "s-nail: type: needs an active mailbox"
Hereis my .mailrc :
set v15-compat
set emptystart
set sendcharsets=utf-8,iso-8859-1
set reply-in-same-charset
set sendwait
set mimetypes-load-control
wysh set pipe-application/pdf='?&=? trap "rm -f
\"${MAILX_FILENAME_TEMPORARY}\"" EXIT; trap "trap \"\" INT QUIT TERM; exit
1" INT QUIT TERM; mupdf "${MAILX_FILENAME_TEMPORARY}"'
set pipe-text/html='?* lynx -stdin -dump -force_html'
type HTML-MESSAGE
account account1 {
localopts yes
set ssl_force_tls
set mta=smtp://user:[email protected]:993
set from="Me [email protected]"
set folder=.mail/account1
set record=imaps://user:[email protected]:993/Sent
set inbox=imaps://user:[email protected]:993
set imap-keepalive=240
set imap-cache=~/.mail/.imap_cache
shortcut imap imaps://user:[email protected]:993
# Type oi to login to the IMAP account
commandalias oi 'fi imap'
}
and account2 follows
I open account1 with a .bashrc entry:
alias o="export MAIL=$HOME/.mail/account1/ && mailx -A account1"
Everything works normally I think and without the 2 added lines (
set pipe-text/html='?* lynx -stdin -dump -force_html'
type HTML-MESSAGE
)
I don't have this error about active mailbox.
Thanks a lot for reply!
Haris