2010-10-19 Set up forwarding with forw(1) in my nmh installation. To have the same subject as the original mail I use a much stripped-down version of Jerry Peek's forwedit(1) [0]. #!/bin/sh # # Add the origional Subject to the forwarded mail # This is a stripped down but less secure version of Jerry Peek's forwedit # http://rand-mh.sourceforge.net/book/examples/mh/bin/forwedit origsubj=`scan -width 1000 -format '%{subject}' ${mhmessages-cur}` case "$origsubj" in *" "*) draftsubj="Forwarded messages" ;; *"Fwd:"*) draftsubj="$origsubj" ;; *) draftsubj="Fwd: $origsubj" ;; esac A=`printf ' 01'` ed - "$1" <