i wrote:
 |for some time i have found that mutt(1) supports command execution
 |for that one (via the "normal" "blabla|" pipe indication).
 ...
 |  define t_ocl {
 |    vput ! message-inject-tail cat ~/.mysig
 |    if [ $? -eq 0 ]
 |       vput vexpr message-inject-tail trim-end $message-inject-tail
 |    end
 |}
 |  set on-compose-leave=t_ocl
 ...
 |  define t_ocl {
 |    readctl create ~/.mysig
 |    if [ $? -eq 0 ]
 |      readall message-inject-tail
 |      if [ $? -eq 0 ]
 |        vput vexpr message-inject-tail trim-end $message-inject-tail
 |      end
 |      readctl remove ~/.mysig
 |    end
 |}
 |  set on-compose-leave=t_ocl
 ...
 |  set on-compose-splice-shell="read version; cat ~/.mysig"
 ...
 |  wysh set on-compose-splice-shell=$'\
 |     read version;\
 |     i=`cat .mysig`;\
 |     echo \'~:set message-inject-tail=\'\"${i}\"'

And i have missed the completely obvious

  define t_ocs {
    read version;echo '~<! cat ~/.mysig'
  }
  define t_ocs {
    read version;echo '~< ~/.mysig'
  }
  set on-compose-splice=t_ocs

which are also already available in v14.9.3.  Of course.

 |should not be enough.  I have obsoleted *signature*.
 |
 |Ciao, and a nice rest-summer when your country supports that!

--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)

Reply via email to