Re: [S-mailx] view-msginfo doesn't affect most of my emails
Χάρης Καραχριστιανίδης wrote in <20230216201516.ye-bd%haris...@otenet.gr>: |Introductional message info lines of emails that begin from top of \ |the screen or emails that begin from some point of the screen but the \ |screen above is blank are not coloured, while they are coloured when \ |an email continous from previous one. Should it be this way? Oh, i cannot parse this. What is the output of the command "colour"? In general with commands "type" or "next" etc those headers are shown which match the "headerpick type" selection, and they are coloured if there is a (matching) "colour view-header" rule. For example, i have (now and here) headerpick type retain author bcc blahblahblah cc content-type date from mail-followup-to message-id openpgp reply-to sender subject to user-agent #headerpick type ignore currently covers no fields #headerpick save retain currently covers no fields headerpick save ignore '^Delivered-To$' '^Envelope-To$' '^Original-.*$' '^X-.*$' '^ARC-.+$' '^Authentication-Results$' '^DKIM.+$' ^X- ^IronPort ^MGA ^Spam '^(Accept|Content)-Language' \ ^Thread- headerpick forward retain author cc date from list-id mail-followup-to message-id openpgp reply-to sender subject to #headerpick forward ignore currently covers no fields colour 256 sum-dotmark fg=204,ft=bold dot colour 256 sum-headerfg=39 older colour 256 sum-headerfg=39,ft=reverse dot colour 256 sum-headerfg=45 '' colour 256 sum-threadfg=39,ft=bold,ft=reverse dot colour 256 sum-threadfg=172 '' colour 256 view-from_fg=142 '' colour 256 view-header fg=214,ft=bold from,subject colour 256 view-header fg=214 author,cc,sender,to colour 256 view-header fg=217 reply-to,mail-followup-to,user-agent colour 256 view-header fg=219 '' colour 256 view-msginfo fg=76,ft=bold '' colour 256 view-partinfo fg=76 '' colour 256 mle-position fg=203,ft=reverse '' colour 256 mle-promptfg=203 '' colour 256 mle-error bg=124 '' colour iso sum-dotmark ft=reverse,fg=brown dot colour iso sum-headerfg=brown dot colour iso sum-threadfg=brown dot colour iso sum-threadfg=magenta '' colour iso view-from_fg=red '' colour iso view-header fg=white author,from,sender,subject colour iso view-header fg=brown '' colour iso view-msginfo fg=green '' colour iso view-partinfo fg=brown '' colour iso mle-position fg=brown,ft=bold '' colour iso mle-promptfg=brown '' colour iso mle-error bg=red '' colour mono sum-dotmark ft=bold,ft=reverse dot colour mono sum-headerft=bold dot colour mono sum-threadft=bold dot colour mono view-header ft=bold author,from,sender,subject colour mono view-msginfo ft=reverse,ft=underline '' colour mono view-partinfo ft=bold,ft=underline '' colour mono mle-position ft=reverse '' colour mono mle-promptft=bold '' colour mono mle-error ft=reverse '' This also applies to header fields of individual MIME parts. (Though some are shown in the "view-partinfo" unless explicitly "headerpick retain"ed, eg [-- #1.1.2 128/3783 text/html, quoted-printable, iso-8859-1 --] (which is green here), but when i do headerpick type retain content-type then the next time i see [-- #1.1.2 128/3783 quoted-printable --] Content-Type: text/html; charset=iso-8859-1 and that Content-Type: is in the default "view-header" colour. --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)
[S-mailx] view-msginfo doesn't affect most of my emails
Introductional message info lines of emails that begin from top of the screen or emails that begin from some point of the screen but the screen above is blank are not coloured, while they are coloured when an email continous from previous one. Should it be this way?
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote: > Steffen Nurpmeso wrote in > <20230215233117.7fibs%stef...@sdaoden.eu>: > |Χάρης Καραχριστιανίδης wrote in > ... > |Oh it is _such_ a pity i cannot speek Greek![.] > > Hello Χάρης. > > ... > | [.]+filter-html-tagsoup[.] > | ... > ||and this code in my .mailrc > || > || if "$features" !% ,+filter-html-tagsoup, > || set pipe-text/html='?* lynx -stdin -dump -force_html' > ||endif > ... > ||nothing happens when I open html email. Any help? > > I have changed the documentation example, and it now reads > > if "$features" =% ,+filter-html-tagsoup, >unmimetype text/html >mimetype ?h text/html html htm > else >#set pipe-text/html=’?* elinks -force-html -dump 1’ >set pipe-text/html=’?* lynx -stdin -dump -force_html’ > endif > > which should work (i hope). > I gave credits to you, but i am, i apologise, in deep trouble > regarding the greek spelling of your name. It is (with many > regrets) only copy and paste; i sorted in like "Ka" in THANKS. > > Ciao, > > --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)
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote: > Hello. > > Your moderate flag was still on. > > Χάρης Καραχριστιανίδης wrote in > <20230216081131.myqru%haris...@otenet.gr>: > |Steffen Nurpmeso wrote: > |> Χάρης Καραχριστιανίδης wrote in > ... > |> Oh it is _such_ a pity i cannot speek Greek! > |Aber ich spreche Deutch! :-) Deutschland ist auch sehr schoen! > > Na ja. Not where i life, and not in winter. Too grey, too dark, > too cold. Autobahn ist schön, for some strange notion of schön, > but i do not use it. > > |> With "open" you mean the "type" or "print" command? > |I just write the email number and press enter. I suppose it is open? > > This eventually ends up as the `next' command on the given message > list, so i tend to agree. > > |With > | ? set pipe-text/html='?* lynx -stdin -dump -force_html' > | ? type HTML-MESSAGE > | > |I get this error: "s-nail: type: needs an active mailbox" > > Well, you should have opened one first :-) > > |Hereis my .mailrc : > | > | set v15-compat > > Make it set v15-compat=y. > Like this you do not need "wysh", and the rest is upwards > compatible. > > | set emptystart > | set sendcharsets=utf-8,iso-8859-1 > | set reply-in-same-charset > | set sendwait > > Is default. > > | set mimetypes-load-control > > Without value is like not set. I'll change this for v14.10, when > the variable was introduced we could not yet forbit empty > variables. Credits. > > |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}"' > > (No "wysh", then. But like i said, you possibly want to create > a ~/.mailcap that can be shared with other programs. > For example > > #@ ~/.mailcap > > application/pdf;\ > /Applications/Preview.app/Contents/MacOS/Preview %s;\ > test = [ "$(uname -s|tr '[:upper:]' '[:lower:]')" = darwin ] 2>/dev/null;\ > nametemplate=%s.pdf; x-mailx-test-once > application/pdf;\ > infile=%s\;\ > trap "rm -f ${infile}" EXIT\;\ > trap "exit 75" INT QUIT TERM\;\ > mupdf "${infile}";\ > test = [ -n "${DISPLAY}" ] >/dev/null 2>&1;\ > nametemplate = %s.pdf; x-mailx-async; x-mailx-test-once > application/pdf;\ > pdfinfo %s\; pdftotext -layout %s -;\ > test = command -v pdfinfo >/dev/null 2>&1; \ > copiousoutput; nametemplate=%s.pdf; x-mailx-test-once > > application/*;\ > echo 'This is "%t", it looks like:'\; < %s head -c 512 | cat -vet\; echo;\ > copiousoutput; x-mailx-noquote; x-mailx-last-resort > > image/*;\ > display %s;\ > test = { [ -n "${DISPLAY}" ] && command -v display\; } >/dev/null 2>&1;\ > x-mailx-test-once > > > |set pipe-text/html='?* lynx -stdin -dump -force_html' > |type HTML-MESSAGE > | > |account account1 { > | localopts yes > > Not needed in an account. > > | set ssl_force_tls > > This is nada -> set smtp-use-starttls > (Will be implied default in v14.10.) > > | set mta=smtp://user:p...@server.com:993 > | set from="Me em...@email.com" > > This surely does not work. It must be either "Me " or > plain em@ai.l. It seems you also want set fullnames. > > | set folder=.mail/account1 > | set record=imaps://user:p...@server.com:993/Sent > | set inbox=imaps://user:p...@server.com:993 > > I would suggest simply setting user and password, and drop that > user:pass thing everywhere. For example > > set user=user password=pass > > | set imap-keepalive=240 > | set imap-cache=~/.mail/.imap_cache > | shortcut imap imaps://user:p...@server.com: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" > > ..ok.. you could simply do this in the account > > ? set verbose; varshow MAIL; unset verbose > #sync-environ > set MAIL=/var/mail/steffen > ? set MAIL=/dubi.du > ? var MAIL > set MAIL=/dubi.du > ? ! echo $MAIL > /dubi.du > > As this is exported automatically .. to at least children of > s-nail, not to its parent shell. > > |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! > > Ciao. > > --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) q
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote: > Hello. > > Your moderate flag was still on. > > Χάρης Καραχριστιανίδης wrote in > <20230216081131.myqru%haris...@otenet.gr>: > |Steffen Nurpmeso wrote: > |> Χάρης Καραχριστιανίδης wrote in > ... > |> Oh it is _such_ a pity i cannot speek Greek! > |Aber ich spreche Deutch! :-) Deutschland ist auch sehr schoen! > > Na ja. Not where i life, and not in winter. Too grey, too dark, > too cold. Autobahn ist schön, for some strange notion of schön, > but i do not use it. > > |> With "open" you mean the "type" or "print" command? > |I just write the email number and press enter. I suppose it is open? > > This eventually ends up as the `next' command on the given message > list, so i tend to agree. > > |With > | ? set pipe-text/html='?* lynx -stdin -dump -force_html' > | ? type HTML-MESSAGE > | > |I get this error: "s-nail: type: needs an active mailbox" > > Well, you should have opened one first :-) > > |Hereis my .mailrc : > | > | set v15-compat > > Make it set v15-compat=y. > Like this you do not need "wysh", and the rest is upwards > compatible. > > | set emptystart > | set sendcharsets=utf-8,iso-8859-1 > | set reply-in-same-charset > | set sendwait > > Is default. > > | set mimetypes-load-control > > Without value is like not set. I'll change this for v14.10, when > the variable was introduced we could not yet forbit empty > variables. Credits. > > |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}"' > > (No "wysh", then. But like i said, you possibly want to create > a ~/.mailcap that can be shared with other programs. > For example > > #@ ~/.mailcap > > application/pdf;\ > /Applications/Preview.app/Contents/MacOS/Preview %s;\ > test = [ "$(uname -s|tr '[:upper:]' '[:lower:]')" = darwin ] 2>/dev/null;\ > nametemplate=%s.pdf; x-mailx-test-once > application/pdf;\ > infile=%s\;\ > trap "rm -f ${infile}" EXIT\;\ > trap "exit 75" INT QUIT TERM\;\ > mupdf "${infile}";\ > test = [ -n "${DISPLAY}" ] >/dev/null 2>&1;\ > nametemplate = %s.pdf; x-mailx-async; x-mailx-test-once > application/pdf;\ > pdfinfo %s\; pdftotext -layout %s -;\ > test = command -v pdfinfo >/dev/null 2>&1; \ > copiousoutput; nametemplate=%s.pdf; x-mailx-test-once > > application/*;\ > echo 'This is "%t", it looks like:'\; < %s head -c 512 | cat -vet\; echo;\ > copiousoutput; x-mailx-noquote; x-mailx-last-resort > > image/*;\ > display %s;\ > test = { [ -n "${DISPLAY}" ] && command -v display\; } >/dev/null 2>&1;\ > x-mailx-test-once > > > |set pipe-text/html='?* lynx -stdin -dump -force_html' > |type HTML-MESSAGE > | > |account account1 { > | localopts yes > > Not needed in an account. > > | set ssl_force_tls > > This is nada -> set smtp-use-starttls > (Will be implied default in v14.10.) > > | set mta=smtp://user:p...@server.com:993 > | set from="Me em...@email.com" > > This surely does not work. It must be either "Me " or > plain em@ai.l. It seems you also want set fullnames. > > | set folder=.mail/account1 > | set record=imaps://user:p...@server.com:993/Sent > | set inbox=imaps://user:p...@server.com:993 > > I would suggest simply setting user and password, and drop that > user:pass thing everywhere. For example > > set user=user password=pass > > | set imap-keepalive=240 > | set imap-cache=~/.mail/.imap_cache > | shortcut imap imaps://user:p...@server.com: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" > > ..ok.. you could simply do this in the account > > ? set verbose; varshow MAIL; unset verbose > #sync-environ > set MAIL=/var/mail/steffen > ? set MAIL=/dubi.du > ? var MAIL > set MAIL=/dubi.du > ? ! echo $MAIL > /dubi.du > > As this is exported automatically .. to at least children of > s-nail, not to its parent shell. > > |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! > > Ciao. > > --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) Steffen, thank you for detailed reply amd advice! I knew I had almost anything wrong, but somehow mailx is very forgiving, so strangly things worked! I corrected everything you suggested: -put user, pass in .netrc -deleted all default options -set starttls -removed export PATH from .bashrc and put set
Re: [S-mailx] html mails don't open in lynx
Χάρης Καραχριστιανίδης wrote in <20230216144638.6oewi%haris...@otenet.gr>: |Steffen Nurpmeso wrote: |> Steffen Nurpmeso wrote in |> <20230215233117.7fibs%stef...@sdaoden.eu>: |>|Χάρης Καραχριστιανίδης wrote in ... |>| [.]+filter-html-tagsoup[.] |>| ... |> if "$features" =% ,+filter-html-tagsoup, |>unmimetype text/html |>mimetype ?h text/html html htm |> else |>#set pipe-text/html=’?* elinks -force-html -dump 1’ |>set pipe-text/html=’?* lynx -stdin -dump -force_html’ |> endif ... |Hello Steffen, |No problem with my name, you copied/pasted it correctly! :-)) | |The new code still does not offer to open text/html with lynx (or any \ |app) when |? mimeview Well mimeview does not apply to the builtin filter. But if you would say "mimetype text/html html htm" then you should be asked even for this text part, i think Stephen Isard bugged that. (You are supposed to "type" / "print" / "next" etc the normal text parts, "mimeview" is only for the non-displayable others, say.) |but as I said the following code works: |set mime-alternative-favour-rich |set pipe-text/html='?! lynx -stdin -force_html' --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)
Re: [S-mailx] html mails don't open in lynx
Χάρης Καραχριστιανίδης wrote in <20230216125738.s3ua4%haris...@otenet.gr>: ... |It works with |set mime-alternative-favour-rich |set pipe-text/html='?! lynx -stdin -force_html' | |eg ? mimeview 5 Well mimeview and that favour-rich thing do not belong together. But regardless, ok. You could also include the manual thing define showhtml { \localopts yes \set mime-alternative-favour-rich pipe-text/html=?h? \type "$@" } \commandalias html \\call showhtml and then do "html MESSAGE-NUMBER-OF-DESIRE". --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)
Re: [S-mailx] html mails don't open in lynx
Hello. Your moderate flag was still on. Χάρης Καραχριστιανίδης wrote in <20230216081131.myqru%haris...@otenet.gr>: |Steffen Nurpmeso wrote: |> Χάρης Καραχριστιανίδης wrote in ... |> Oh it is _such_ a pity i cannot speek Greek! |Aber ich spreche Deutch! :-) Deutschland ist auch sehr schoen! Na ja. Not where i life, and not in winter. Too grey, too dark, too cold. Autobahn ist schön, for some strange notion of schön, but i do not use it. |> With "open" you mean the "type" or "print" command? |I just write the email number and press enter. I suppose it is open? This eventually ends up as the `next' command on the given message list, so i tend to agree. |With | ? set pipe-text/html='?* lynx -stdin -dump -force_html' | ? type HTML-MESSAGE | |I get this error: "s-nail: type: needs an active mailbox" Well, you should have opened one first :-) |Hereis my .mailrc : | | set v15-compat Make it set v15-compat=y. Like this you do not need "wysh", and the rest is upwards compatible. | set emptystart | set sendcharsets=utf-8,iso-8859-1 | set reply-in-same-charset | set sendwait Is default. | set mimetypes-load-control Without value is like not set. I'll change this for v14.10, when the variable was introduced we could not yet forbit empty variables. Credits. |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}"' (No "wysh", then. But like i said, you possibly want to create a ~/.mailcap that can be shared with other programs. For example #@ ~/.mailcap application/pdf;\ /Applications/Preview.app/Contents/MacOS/Preview %s;\ test = [ "$(uname -s|tr '[:upper:]' '[:lower:]')" = darwin ] 2>/dev/null;\ nametemplate=%s.pdf; x-mailx-test-once application/pdf;\ infile=%s\;\ trap "rm -f ${infile}" EXIT\;\ trap "exit 75" INT QUIT TERM\;\ mupdf "${infile}";\ test = [ -n "${DISPLAY}" ] >/dev/null 2>&1;\ nametemplate = %s.pdf; x-mailx-async; x-mailx-test-once application/pdf;\ pdfinfo %s\; pdftotext -layout %s -;\ test = command -v pdfinfo >/dev/null 2>&1; \ copiousoutput; nametemplate=%s.pdf; x-mailx-test-once application/*;\ echo 'This is "%t", it looks like:'\; < %s head -c 512 | cat -vet\; echo;\ copiousoutput; x-mailx-noquote; x-mailx-last-resort image/*;\ display %s;\ test = { [ -n "${DISPLAY}" ] && command -v display\; } >/dev/null 2>&1;\ x-mailx-test-once |set pipe-text/html='?* lynx -stdin -dump -force_html' |type HTML-MESSAGE | |account account1 { | localopts yes Not needed in an account. | set ssl_force_tls This is nada -> set smtp-use-starttls (Will be implied default in v14.10.) | set mta=smtp://user:p...@server.com:993 | set from="Me em...@email.com" This surely does not work. It must be either "Me " or plain em@ai.l. It seems you also want set fullnames. | set folder=.mail/account1 | set record=imaps://user:p...@server.com:993/Sent | set inbox=imaps://user:p...@server.com:993 I would suggest simply setting user and password, and drop that user:pass thing everywhere. For example set user=user password=pass | set imap-keepalive=240 | set imap-cache=~/.mail/.imap_cache | shortcut imap imaps://user:p...@server.com: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" ..ok.. you could simply do this in the account ? set verbose; varshow MAIL; unset verbose #sync-environ set MAIL=/var/mail/steffen ? set MAIL=/dubi.du ? var MAIL set MAIL=/dubi.du ? ! echo $MAIL /dubi.du As this is exported automatically .. to at least children of s-nail, not to its parent shell. |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! Ciao. --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)
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote: > Steffen Nurpmeso wrote in > <20230215233117.7fibs%stef...@sdaoden.eu>: > |Χάρης Καραχριστιανίδης wrote in > ... > |Oh it is _such_ a pity i cannot speek Greek![.] > > Hello Χάρης. > > ... > | [.]+filter-html-tagsoup[.] > | ... > ||and this code in my .mailrc > || > || if "$features" !% ,+filter-html-tagsoup, > || set pipe-text/html='?* lynx -stdin -dump -force_html' > ||endif > ... > ||nothing happens when I open html email. Any help? > > I have changed the documentation example, and it now reads > > if "$features" =% ,+filter-html-tagsoup, >unmimetype text/html >mimetype ?h text/html html htm > else >#set pipe-text/html=’?* elinks -force-html -dump 1’ >set pipe-text/html=’?* lynx -stdin -dump -force_html’ > endif > > which should work (i hope). > I gave credits to you, but i am, i apologise, in deep trouble > regarding the greek spelling of your name. It is (with many > regrets) only copy and paste; i sorted in like "Ka" in THANKS. > > Ciao, > > --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) Hello Steffen, No problem with my name, you copied/pasted it correctly! :-)) The new code still does not offer to open text/html with lynx (or any app) when ? mimeview but as I said the following code works: set mime-alternative-favour-rich set pipe-text/html='?! lynx -stdin -force_html' Thank you! Haris
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso 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%haris...@otenet.gr>: > ... > |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) It works with set mime-alternative-favour-rich set pipe-text/html='?! lynx -stdin -force_html' eg ? mimeview 5 I didn't add ? type HTML-MESSAGE in .mailrc because of the error message Thank you!
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso 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%haris...@otenet.gr>: > ... > |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:p...@server.com:993 set from="Me em...@email.com" set folder=.mail/account1 set record=imaps://user:p...@server.com:993/Sent set inbox=imaps://user:p...@server.com:993 set imap-keepalive=240 set imap-cache=~/.mail/.imap_cache shortcut imap imaps://user:p...@server.com: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
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote in <20230215233117.7fibs%stef...@sdaoden.eu>: |Χάρης Καραχριστιανίδης wrote in ... |Oh it is _such_ a pity i cannot speek Greek![.] Hello Χάρης. ... | [.]+filter-html-tagsoup[.] | ... ||and this code in my .mailrc || || if "$features" !% ,+filter-html-tagsoup, || set pipe-text/html='?* lynx -stdin -dump -force_html' ||endif ... ||nothing happens when I open html email. Any help? I have changed the documentation example, and it now reads if "$features" =% ,+filter-html-tagsoup, unmimetype text/html mimetype ?h text/html html htm else #set pipe-text/html=’?* elinks -force-html -dump 1’ set pipe-text/html=’?* lynx -stdin -dump -force_html’ endif which should work (i hope). I gave credits to you, but i am, i apologise, in deep trouble regarding the greek spelling of your name. It is (with many regrets) only copy and paste; i sorted in like "Ka" in THANKS. Ciao, --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)