Am 23.01.23 12:14 schrieb Luke A. Call:
> On 2023-01-23 12:10:40+0000, Polarian <polarian@polarian.dev> wrote:
> > Hello,
> >
> > > I can not speak for Thunderbird, but at least Mutt [1] allows you to easily change settings based on the content of To, Cc, etc. If your e-mail client of choice does not give you this option, perhaps consider a different client or using different clients for different purposes?
> >
> > I have used mutt before, unfortunately it does not support multiple inboxes
> > very well, and also most people use HTML emails these days (even though I
> > don't this does not mean others will not), thus mutt is no longer a decent
> > option which is unfortunate as it is a nice TUI.
>
> For what it may be worth, you can set up mutt to run html-only
> emails through the "links" (or other) application for some formatting for basic
> readability, such as when a message is highlighted in the mutt attachment
> list, and pressing A.
>
> To do so, put these 2 lines in my ~/mail/config/macros file (location depending on
> where you save your mutt files):
> #(Same as if typing |ht to run thru the ht script, to view html/web content.)
> macro index,pager,attach A "<pipe-entry>ht<Enter>" "view html as txt"
>
> ... and then the below script which I called "ht" short for
> html-readability, in the path. If you rename it you have to change the
> "ht" part in the macro line above. You can separately also pass it a
> filename to remember or type less: ht somefile.html .
>
> #!/usr/bin/env bash
> set -eu #x
> # purpose: convert html doc to plain text, with links program.
> if [[ $# -gt 0 ]]; then
> links -dump "$*"|less
> else
> #IFS= read var << EOF
> # echo $var
> #EOF
> TMP=$(mktemp -t ulb-ht-script_XXXXXX)
> while read line || [ -n "$line" ]; do
> echo "$line" >> "$TMP"
> done
> links -dump "$TMP"|less
> fi
>
> ...and of course as root, pkg_add links .
>
> I still sometimes have to look at the raw html to pull out a link or
> something, but not very often.
>
> Luke Call
>
Another option is to make an entry in mailcap file.
No macros, no scripts
No comments:
Post a Comment