[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Sending Binary Attachments

From: Paul Fox
Subject: Re: [Nmh-workers] Sending Binary Attachments
Date: Thu, 12 May 2016 10:50:06 -0400

moving hymie's off-list question back on-list, because he points
out a flaw in my script.

indeed, the script assumes the header separator ends in a ':'.  that's
a local customization that i had completely forgotten about -- as
distributed, the MH header separator is all dashes.

i have no idea why i changed it; it was so very long ago.


address@hidden wrote:
 > Hi.
 > Paul Fox writes:
 > >i've attached the simple script i use from within vi to make using the
 > >"Attach:" header easy.
 > I was looking at your script, and it appears to expect the separator
 > line to have a colon at the end.
 > Is that correct / normal?  I'm looking at my installation, and the
 > separator line is just 8 dashes .  That's what I've been using for
 > years without issue.  Is the colon-at-the-end optional / accepted ?
 > >read inputline
 > >if echo "$inputline" | grep -qv '^-\+-:$'
 > >then
 > >    echo 'Error:  run this only on the "------:" header separator line.'
 > >    exit 1
 > >fi
 > --hymie!    http://lactose.homelinux.net/~hymie    address@hidden

 paul fox, address@hidden (arlington, ma, where it's 69.4 degrees)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]