Hi Viktor. SZÉPE Viktor wrote in <20191207220555.Horde.okUcs8ds1qLIIIkCp_GLeFh@sze\ pe.net>: |As root I have to peak into user's emails.
Uh!! |All mailboxes are in maildir format, so we have single files. |What is the suggested way to open a *single* email file with s-nail? | |Thank you. s-nail -Rf FILENAME (-R to open read-only and not apply changes.) However, this of course opens a mailbox, not a single Maildir message. |ps. now I do `munpack -t FILE` and use w3m to display the HTML part Well, the question is -- how do you know _which_ message you want? If, for example, you want all mails that are new you could do s-nail -R -f -Y 'type :n;xit' FILE If you only want to do something if such messages exist maybe s-nail -R -f -e -L:n FILE && [the above] This only works with parts which are directly displayable. Caveats for variable crt= which may enter a pager. You could try set mime-alternative-favour-rich to favour HTML, this works but fails for lists like ossec which mutilate multipart mails (we are too stupid to realize that the rich part does not exist, really). w3m would also work, you know how? Ciao Viktor! --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)
