Re: [S-mailx] html mails don't open in lynx
Χάρης Καραχριστιανίδης wrote in <20230218162804._hs8u%[email protected]>: |Steffen Nurpmeso wrote: ... |> Unfortunately commandalias, alias, shortcut, bind, colours etc etc |> are all not yet covered by "local"(opts), so that you really have |> to overwrite the things again when you switch off. |> I often use the on-account-cleanup hook for that, so that i am ... |> define oac { |> uncommandalias oi os mi |> unshortcut imap |>} ... |> set on-account-cleanup=oac ... |Is define oac really needed? I have shortcuts that are different between \ |the 2 accounts and shortcuts that are same, but they are shoertcuts \ |for the exact same thing in both accounts. Whatever you want, hari! |PS1 As you may have noticed I learned the ~e function! I have (i use "set escape=!") bind compose :kf1 !v bind compose :kf2 !p |PS2 I uninstalled mutt today! Oh .. if that wasn't a bit early! There is so much which is very complicated to do with s-nail, if at all, what mutt can easily do. |PS3 Thank you for this great program!! Thank you in return. --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 <20230218160854.mdavc%[email protected]>: |Steffen Nurpmeso wrote: |> Χάρης Καραχριστιανίδης wrote in |> <20230218125916.ofb__%[email protected]>: |>|Steffen Nurpmeso wrote: |>|> Χάρης Καραχριστιανίδης wrote in |>|> <20230217184829.j1piy%[email protected]>: |>|>|Steffen Nurpmeso wrote: |>|>|> Χάρης Καραχριστιανίδης wrote in |>|>|> <20230217133009.z4nty%[email protected]>: |>|>|>|Steffen Nurpmeso wrote: |>|>|>|> Χάρης Καραχριστιανίδης wrote in |>|>|>|> <20230216081131.myqru%[email protected]>: |>|>|>|>|Steffen Nurpmeso wrote: |>|>|>|>|> Χάρης Καραχριστιανίδης wrote in |> ... |>|Here is my .mailrc after following your suggestions (I think). Much \ |>|smaller and cleaner! Could some options go out of the 2 accounts and \ |>|put them before the accounts? Like set smtp-use-starttls or set imap-kee\ |>|palive=240 |>| set imap-cache=~/.mail/.imap_cache ? |> |> Sure. Like you do with netrc-lookup. (Which i only set |> per-account). |> |>|set v15-compat=y |>|set netrc-lookup |>| |>|set mime-alternative-favour-rich |>|set pipe-text/html='?! lynx -stdin -force_html' |> |> And you do use the built-in HTML filter for simple overview, that |> only for "mimeview". Ok. | |Would you suggest to use lynx also for simple overview? I personally use the built-in filter. I almost never feel the need to really go HTML, but if, i use copy+paste (my graphical web browser runs in a box, i mean, ok, that could be done from mailcap or whatever, but, well..) "Normally" people really want the "copiousoutput" variant and look at the HTML inline, aka via "lynx -dump". I even do so for PDF, pdftotext. --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 in <20230218152915.ewsrx%[email protected]>: |Χάρης Καραχριστιανίδης wrote in | <20230218125916.ofb__%[email protected]>: ||Steffen Nurpmeso wrote: ||> Χάρης Καραχριστιανίδης wrote in ||> <20230217184829.j1piy%[email protected]>: ||>|Steffen Nurpmeso wrote: ||>|> Χάρης Καραχριστιανίδης wrote in ||>|> <20230217133009.z4nty%[email protected]>: ||>|>|Steffen Nurpmeso wrote: ||>|>|> Χάρης Καραχριστιανίδης wrote in ||>|>|> <20230216081131.myqru%[email protected]>: ||>|>|>|Steffen Nurpmeso wrote: ||>|>|>|> Χάρης Καραχριστιανίδης wrote in ... ||Here is my .mailrc after following your suggestions (I think). Much \ ||smaller and cleaner! Could some options go out of the 2 accounts and \ ||put them before the accounts? Like set smtp-use-starttls or set imap-kee\ ||palive=240 || set imap-cache=~/.mail/.imap_cache ? | |Sure. Like you do with netrc-lookup. (Which i only set |per-account). P.S.: the latter is a false statement. (I had that wrong; in fact i only have one remaining use case for .netrc after so many enforce OAuth, i have switched all GMail, Microsoft and Yandex accounts to go via OAuth. I do not use them much but for testing, anyway, and anymore.) 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: > Χάρης Καραχριστιανίδης wrote in > <20230218125916.ofb__%[email protected]>: > |Steffen Nurpmeso wrote: > |> Χάρης Καραχριστιανίδης wrote in > |> <20230217184829.j1piy%[email protected]>: > |>|Steffen Nurpmeso wrote: > |>|> Χάρης Καραχριστιανίδης wrote in > |>|> <20230217133009.z4nty%[email protected]>: > |>|>|Steffen Nurpmeso wrote: > |>|>|> Χάρης Καραχριστιανίδης wrote in > |>|>|> <20230216081131.myqru%[email protected]>: > |>|>|>|Steffen Nurpmeso wrote: > |>|>|>|> Χάρης Καραχριστιανίδης wrote in > ... > Unfortunately commandalias, alias, shortcut, bind, colours etc etc > are all not yet covered by "local"(opts), so that you really have > to overwrite the things again when you switch off. > I often use the on-account-cleanup hook for that, so that i am > sure all account-specifics are gone in the "global namespace" > / other accounts, but i look forward to get that implemented, > finally. (Not v14.10 most likely, though. Unfortunately.) > > define oac { > uncommandalias oi os mi > unshortcut imap > } > > Local "define"s (aka in other macros) is also not yet supported. > > | commandalias mi 'account account2' > > set on-account-cleanup=oac Is define oac really needed? I have shortcuts that are different between the 2 accounts and shortcuts that are same, but they are shoertcuts for the exact same thing in both accounts. > | set from="x xxxν " > | set message-inject-tail=$'\n--- \nXX \nX XX\ > | XX \n XX XX XXX XXX XXX \ > | ' > | set record=@Sent > | set inbox=imaps://mail.xx.xx:993 > | set imap-keepalive=240 > | set imap--cache=~/.mail/.imap_cache > > Typo? Yes imap--cache was a typo, thank you! > > Well it looks quite ok i would say. Thanks to you! :-) PS1 As you may have noticed I learned the ~e function! PS2 I uninstalled mutt today! PS3 Thank you for this great program!!
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote: > Χάρης Καραχριστιανίδης wrote in > <20230218125916.ofb__%[email protected]>: > |Steffen Nurpmeso wrote: > |> Χάρης Καραχριστιανίδης wrote in > |> <20230217184829.j1piy%[email protected]>: > |>|Steffen Nurpmeso wrote: > |>|> Χάρης Καραχριστιανίδης wrote in > |>|> <20230217133009.z4nty%[email protected]>: > |>|>|Steffen Nurpmeso wrote: > |>|>|> Χάρης Καραχριστιανίδης wrote in > |>|>|> <20230216081131.myqru%[email protected]>: > |>|>|>|Steffen Nurpmeso wrote: > |>|>|>|> Χάρης Καραχριστιανίδης wrote in > ... > |Here is my .mailrc after following your suggestions (I think). Much \ > |smaller and cleaner! Could some options go out of the 2 accounts and \ > |put them before the accounts? Like set smtp-use-starttls or set imap-kee\ > |palive=240 > | set imap-cache=~/.mail/.imap_cache ? > > Sure. Like you do with netrc-lookup. (Which i only set > per-account). > > |set v15-compat=y > |set netrc-lookup > | > |set mime-alternative-favour-rich > |set pipe-text/html='?! lynx -stdin -force_html' > > And you do use the built-in HTML filter for simple overview, that > only for "mimeview". Ok. Would you suggest to use lynx also for simple overview? Thank you!
Re: [S-mailx] html mails don't open in lynx
Χάρης Καραχριστιανίδης wrote in <20230218125916.ofb__%[email protected]>: |Steffen Nurpmeso wrote: |> Χάρης Καραχριστιανίδης wrote in |> <20230217184829.j1piy%[email protected]>: |>|Steffen Nurpmeso wrote: |>|> Χάρης Καραχριστιανίδης wrote in |>|> <20230217133009.z4nty%[email protected]>: |>|>|Steffen Nurpmeso wrote: |>|>|> Χάρης Καραχριστιανίδης wrote in |>|>|> <20230216081131.myqru%[email protected]>: |>|>|>|Steffen Nurpmeso wrote: |>|>|>|> Χάρης Καραχριστιανίδης wrote in ... |Here is my .mailrc after following your suggestions (I think). Much \ |smaller and cleaner! Could some options go out of the 2 accounts and \ |put them before the accounts? Like set smtp-use-starttls or set imap-kee\ |palive=240 | set imap-cache=~/.mail/.imap_cache ? Sure. Like you do with netrc-lookup. (Which i only set per-account). |set v15-compat=y |set netrc-lookup | |set mime-alternative-favour-rich |set pipe-text/html='?! lynx -stdin -force_html' And you do use the built-in HTML filter for simple overview, that only for "mimeview". Ok. You could then move this to your ~/.mailcap file, no? You could remove the duplicate "mupdf" from it and instead add a "text/html; lynx %s; nametemplate=%s.html". |colour 256 view-header ft=bold,fg=111 subject,from |colour 256 view-partinfo fg=2 |colour 256 view-msginfo fg=1 |#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 | | | |account account1 { | set smtp-use-starttls Yes make it global, v14.10 will bring smtp-config instead and TLS is implied (must be turned off explicitly). | set mta=smtp://mailgate.xx.xx | set from="x xxx " | set record=@Sent | set inbox=imaps://imap.xx.xx:993 | set imap-keepalive=240 | set imap-cache=~/.mail/.imap_cache | commandalias oi 'account account1' | commandalias os 'fi @Sent' I for example have bind default :kf5 Fi+sent so that pressing F5 goes to the sent folder, readonly. (I usually do not want to modify the sent folder.) Unfortunately commandalias, alias, shortcut, bind, colours etc etc are all not yet covered by "local"(opts), so that you really have to overwrite the things again when you switch off. I often use the on-account-cleanup hook for that, so that i am sure all account-specifics are gone in the "global namespace" / other accounts, but i look forward to get that implemented, finally. (Not v14.10 most likely, though. Unfortunately.) define oac { uncommandalias oi os mi unshortcut imap } Local "define"s (aka in other macros) is also not yet supported. | commandalias mi 'account account2' set on-account-cleanup=oac |} | |account account2 { | set smtp-use-starttls | set mta=smtp://mail.x.xx | set from="x xxxν " | set message-inject-tail=$'\n--- \nXX \nX XX\ | XX \n XX XX XXX XXX XXX \ | ' | set record=@Sent | set inbox=imaps://mail.xx.xx:993 | set imap-keepalive=240 | set imap--cache=~/.mail/.imap_cache Typo? Note that the imap-cache will definetely vanish not to come back. There will be a header cache, aka "mail summary files", as shown by Jamie Zawinski for Netscape, a quarter of a century ago. Yes, connect / disconnect will vanish, you switch on and off a mailbox, and after connection breaks reconnection will be automatic. (The latter maybe already with v14.10, if i get a go.) | shortcut imap imaps://mail..xx:993 | commandalias mi 'account account2' | commandalias ms 'fi @Sent' | commandalias oi 'account account1' |} | |alias x1 [email protected] |alias dk [email protected] Well it looks quite ok i would say. --End of <20230218125916.ofb__%[email protected]> Ciao, and a nice weekend i wish. --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: > Χάρης Καραχριστιανίδης wrote in > <20230217184829.j1piy%[email protected]>: > |Steffen Nurpmeso wrote: > |> Χάρης Καραχριστιανίδης wrote in > |> <20230217133009.z4nty%[email protected]>: > |>|Steffen Nurpmeso wrote: > |>|> Χάρης Καραχριστιανίδης wrote in > |>|> <20230216081131.myqru%[email protected]>: > |>|>|Steffen Nurpmeso wrote: > |>|>|> Χάρης Καραχριστιανίδης wrote in > |> ... > |>|For message "s-nail: type: needs an active mailbox" how should my \ > |>|mailbox \ > |>|be? Everything in my .mailrc points to the web imap folder. > |> > |> Must be connected, then. > |> If the connection breaks, and the code recognizes it, there is no > |> "active mailbox" no more, and the above message appears. You need > |> to switch to another folder then. (v15 will improve this a bit. > |> BUT will have no IMAP for a while. :)) > ... > |I pointed MBOX to imap but the message still appears.. > | > |Thank you for help! > | > |account otenet { > | set MAIL=$HOME/.mail/account1/ > | set smtp-use-starttls > | set mta=smtp://mail.xxx.xx > | set from=" " > | set folder=.mail/account1 > > Now you confuse me. You want this to be on IMAP, right? > There are examples in the manual, btw. > > | set MBOX=imaps://imap.xx.xx:xxx > | set record=imaps://imap.xx.xx:xxx/Sent > | set inbox=imaps://imap.xx.xx:xxx > > It is *inbox* _or_ $MAIL. > > | set imap-keepalive=240 > | set imap-cache=~/.mail/.imap_cache > | shortcut imap imaps://imap.xx.xx:xxx > |} > > > set v15-compat=y > account otenet { > set smtp-use-starttls > set mta=smtp://mail.xxx.xx > set from=" " > set folder=imaps://imap.xx.xx:xxx > set inbox=$folder > set MBOX=+ > > Though - primary and secondary being the same is something i had > to think about. (Ie, implications, whether it works. But in > modern mail usage MBOX is usually not used. Why do you want it?) > > set record=+Sent > set imap-keepalive=240 > set imap-cache=~/.mail/.imap_cache > shortcut imap + > > But instead simply say "file @" or "file +", easier in your > example i would think. > > set netrc-lookup > > You said you have stored user and password in ~/.netrc. > > } > > If you then run "s-nail -A otenet" you should go via internet to > $inbox aka $folder immediately. > If that fails because connection fails then there will be no > active mailbox and the above message occurs. > You could try "s-nail -A otenet -vv" and look whether connection > an authentication succeeds. > The above (more or less) should really work. > > --End of <20230217184829.j1piy%[email protected]> > > 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) Here is my .mailrc after following your suggestions (I think). Much smaller and cleaner! Could some options go out of the 2 accounts and put them before the accounts? Like set smtp-use-starttls or set imap-keepalive=240 set imap-cache=~/.mail/.imap_cache ? Thank you!!! set v15-compat=y set netrc-lookup set mime-alternative-favour-rich set pipe-text/html='?! lynx -stdin -force_html' colour 256 view-header ft=bold,fg=111 subject,from colour 256 view-partinfo fg=2 colour 256 view-msginfo fg=1 #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 account account1 { set smtp-use-starttls set mta=smtp://mailgate.xx.xx set from="x xxx " set record=@Sent set inbox=imaps://imap.xx.xx:993 set imap-keepalive=240 set imap-cache=~/.mail/.imap_cache commandalias oi 'account account1' commandalias os 'fi @Sent' commandalias mi 'account account2' } account account2 { set smtp-use-starttls set mta=smtp://mail.x.xx set from="x xxxν " set message-inject-tail=$'\n--- \nXX \nX \n XX XX XXX XXX XXX ' set record=@Sent set inbox=imaps://mail.xx.xx:993 set imap-keepalive=240 set imap-cache=~/.mail/.imap_cache shortcut imap imaps://mail..xx:993 commandalias mi 'account account2' commandalias ms 'fi @Sent' commandalias oi 'accou
Re: [S-mailx] html mails don't open in lynx
Χάρης Καραχριστιανίδης wrote in <20230217184829.j1piy%[email protected]>: |Steffen Nurpmeso wrote: |> Χάρης Καραχριστιανίδης wrote in |> <20230217133009.z4nty%[email protected]>: |>|Steffen Nurpmeso wrote: |>|> Χάρης Καραχριστιανίδης wrote in |>|> <20230216081131.myqru%[email protected]>: |>|>|Steffen Nurpmeso wrote: |>|>|> Χάρης Καραχριστιανίδης wrote in |> ... |>|For message "s-nail: type: needs an active mailbox" how should my \ |>|mailbox \ |>|be? Everything in my .mailrc points to the web imap folder. |> |> Must be connected, then. |> If the connection breaks, and the code recognizes it, there is no |> "active mailbox" no more, and the above message appears. You need |> to switch to another folder then. (v15 will improve this a bit. |> BUT will have no IMAP for a while. :)) ... |I pointed MBOX to imap but the message still appears.. | |Thank you for help! | |account otenet { | set MAIL=$HOME/.mail/account1/ | set smtp-use-starttls | set mta=smtp://mail.xxx.xx | set from=" " | set folder=.mail/account1 Now you confuse me. You want this to be on IMAP, right? There are examples in the manual, btw. | set MBOX=imaps://imap.xx.xx:xxx | set record=imaps://imap.xx.xx:xxx/Sent | set inbox=imaps://imap.xx.xx:xxx It is *inbox* _or_ $MAIL. | set imap-keepalive=240 | set imap-cache=~/.mail/.imap_cache | shortcut imap imaps://imap.xx.xx:xxx |} set v15-compat=y account otenet { set smtp-use-starttls set mta=smtp://mail.xxx.xx set from=" " set folder=imaps://imap.xx.xx:xxx set inbox=$folder set MBOX=+ Though - primary and secondary being the same is something i had to think about. (Ie, implications, whether it works. But in modern mail usage MBOX is usually not used. Why do you want it?) set record=+Sent set imap-keepalive=240 set imap-cache=~/.mail/.imap_cache shortcut imap + But instead simply say "file @" or "file +", easier in your example i would think. set netrc-lookup You said you have stored user and password in ~/.netrc. } If you then run "s-nail -A otenet" you should go via internet to $inbox aka $folder immediately. If that fails because connection fails then there will be no active mailbox and the above message occurs. You could try "s-nail -A otenet -vv" and look whether connection an authentication succeeds. The above (more or less) should really work. --End of <20230217184829.j1piy%[email protected]> 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: > Χάρης Καραχριστιανίδης wrote in > <20230217133009.z4nty%[email protected]>: > |Steffen Nurpmeso wrote: > |> Χάρης Καραχριστιανίδης wrote in > |> <20230216081131.myqru%[email protected]>: > |>|Steffen Nurpmeso wrote: > |>|> Χάρης Καραχριστιανίδης wrote in > ... > |For message "s-nail: type: needs an active mailbox" how should my mailbox \ > |be? Everything in my .mailrc points to the web imap folder. > > Must be connected, then. > If the connection breaks, and the code recognizes it, there is no > "active mailbox" no more, and the above message appears. You need > to switch to another folder then. (v15 will improve this a bit. > BUT will have no IMAP for a while. :)) > > Ciao -- greetings to Greece!! > > --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) I pointed MBOX to imap but the message still appears.. Thank you for help! account otenet { set MAIL=$HOME/.mail/account1/ set smtp-use-starttls set mta=smtp://mail.xxx.xx set from=" " set folder=.mail/account1 set MBOX=imaps://imap.xx.xx:xxx set record=imaps://imap.xx.xx:xxx/Sent set inbox=imaps://imap.xx.xx:xxx set imap-keepalive=240 set imap-cache=~/.mail/.imap_cache shortcut imap imaps://imap.xx.xx:xxx }
Re: [S-mailx] html mails don't open in lynx
Χάρης Καραχριστιανίδης wrote in <20230217133009.z4nty%[email protected]>: |Steffen Nurpmeso wrote: |> Χάρης Καραχριστιανίδης wrote in |> <20230216081131.myqru%[email protected]>: |>|Steffen Nurpmeso wrote: |>|> Χάρης Καραχριστιανίδης wrote in ... |For message "s-nail: type: needs an active mailbox" how should my mailbox \ |be? Everything in my .mailrc points to the web imap folder. Must be connected, then. If the connection breaks, and the code recognizes it, there is no "active mailbox" no more, and the above message appears. You need to switch to another folder then. (v15 will improve this a bit. BUT will have no IMAP for a while. :)) Ciao -- greetings to Greece!! --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%[email protected]>: > |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:[email protected]:993 > | set from="Me [email protected]" > > This surely does not work. It must be either "Me " or > plain [email protected]. It seems you also want set fullnames. > > | set folder=.mail/account1 > | set record=imaps://user:[email protected]:993/Sent > | set inbox=imaps://user:[email protected]: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:[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" > > ..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) For message "s-nail: type: needs an active mailbox" how should my mailbox be? Everything in my .mailrc points to the web imap folder. I made a very simple .mailcap: application/pdf; mupdf %s application/x-msexcel; libreoffice --calc %s application/ms-exc; libreoffice --calc %s application/excel; libreoffice -
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote: > Steffen Nurpmeso wrote in > <20230215233117.7fibs%[email protected]>: > |Χάρης Καραχριστιανίδης 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%[email protected]>: > |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:[email protected]:993 > | set from="Me [email protected]" > > This surely does not work. It must be either "Me " or > plain [email protected]. It seems you also want set fullnames. > > | set folder=.mail/account1 > | set record=imaps://user:[email protected]:993/Sent > | set inbox=imaps://user:[email protected]: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:[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" > > ..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%[email protected]>: > |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:[email protected]:993 > | set from="Me [email protected]" > > This surely does not work. It must be either "Me " or > plain [email protected]. It seems you also want set fullnames. > > | set folder=.mail/account1 > | set record=imaps://user:[email protected]:993/Sent > | set inbox=imaps://user:[email protected]: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:[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" > > ..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 MAIL=$
Re: [S-mailx] html mails don't open in lynx
Χάρης Καραχριστιανίδης wrote in <20230216144638.6oewi%[email protected]>: |Steffen Nurpmeso wrote: |> Steffen Nurpmeso wrote in |> <20230215233117.7fibs%[email protected]>: |>|Χάρης Καραχριστιανίδης 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%[email protected]>: ... |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%[email protected]>: |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:[email protected]:993 | set from="Me [email protected]" This surely does not work. It must be either "Me " or plain [email protected]. It seems you also want set fullnames. | set folder=.mail/account1 | set record=imaps://user:[email protected]:993/Sent | set inbox=imaps://user:[email protected]: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:[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" ..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%[email protected]>: > |Χάρης Καραχριστιανίδης 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%[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) 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%[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
Re: [S-mailx] html mails don't open in lynx
Steffen Nurpmeso wrote in <20230215233117.7fibs%[email protected]>: |Χάρης Καραχριστιανίδης 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
Χάρης Καραχριστιανίδης 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)
