Attachment saving and piping: what of the headers?

2017-07-10 Thread Ian Zimmerman
Well, just when I thought I'd never need to ask a question here again :-) I started writing a script which will run as a sink of from the attachment view. I spent some minutes to make the script correctly (I thought) skip over the MIME headers, and only start the real processing after the empty

Re: Attachment saving and piping: what of the headers?

2017-07-10 Thread Erik Christiansen
On 10.07.17 14:29, Ian Zimmerman wrote: > I tried both a straight save, and a pipe to a cat command. In either > case, no headers are present, and neither is the separator line; the > file just contains the body and that's that. Curious. Here, a "| cat > /tmp/fred" produced a copy of your post, c

Re: Attachment saving and piping: what of the headers?

2017-07-10 Thread Ian Zimmerman
On 2017-07-11 13:05, Erik Christiansen wrote: > Curious. Here, a "| cat > /tmp/fred" produced a copy of your post, > complete with 80 lines of headers. That's with pipe_decode unset, and > Mutt 1.8.0 (2017-02-23). But that is not what I'm writing about. I'm just trying to save a single attachmen