Philip Mak wrote:
> How do I save a message to a file (like the [E]xport command in pine)
> such that all text attachments are included, as well as the headers of
> the message?
> 
> The best way I've found is to press [e]dit, then use the :w command in
> "vi" to write it out to a file. That takes a few more keystrokes than
> it should though, and also includes all the headers of the message
> (instead of just the my_hdr ones).

If your $mbox_type is set to mbox, then a simple C (copy-message) will
do what you want.  Otherwise you will need to create a macro like such:
        macro E index "<pipe-message>cat > "
and just append the filename you want to the end of the command.

This is one of those places where scriptability would be nice, since
what you'd really want is something like:
        function export-message () {
                $path = prompt "save to: "
                copy-message $path
        }

Reply via email to