msgident, quote a mail with headers in a mail to an abuse department

The following sh script takes a message from my mailbox (given a number as parameter that message or default the last one) and quotes it with full headers. I use it from with vi when sending mail like :r!msgident with or without a number added.

It depends on 'readmsg' which is part of the ELM package.


readmsg -h $1 | sed -e 's/^/|/'