Hello Morten. Tricky header fields (from, reply-to etc), i reply-to. (The one above may freely send now..)
Morten Bo Johansen wrote in <[email protected]>: |I have aliased the following command to show the headers of all |unread messages in my inbox | | mail -L :u -f imaps://mail.simply.com | |The output may look like | | U 23 MitID 2023-01-20 11:27 /10349 Ordrebekræftelse \ | 588215 - | |So I would like a command that would send the contents of this |message to stdout, so I do not have to enter interactive mode |to read it. Can I do that? I do assume your mail is v14.9.24 (mail -V). #?0|$ mail -Sv15-compat=y -Sheadline=%m -L :u -f FILE 18 #?0|$ mail -Sv15-compat=y -# -Y 'type 18;quit' -f FILE | head -n1 [-- Message 18 -- 97 lines, 4179 bytes --]: (or $ echo type 18 | mail -Sv15-compat=y -#f FILE (It is yet not possible to fine tune this output. All or nothing, with info lines as shown.) |If that is not possible, can I have a command which in one fell |swoop enters interactive mode, selects the message I want to |read (here, no. 23) and show its contents? As above. If you program you could avoid all the network up and down hassle and one or two invocations for it all. Some things already work quite good, one could eloberate something. Just ask on interest. --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)
