procmail
[Top] [All Lists]

Re: getting Approve: into head

1996-02-13 14:47:21
When I suggested this way to add an Approved: header if formail is unavailable,

| > How about a lot less sed?
| > 
| > #!/bin/sh
| >   sed "1,/^$/!b
| >        /./b
| >        i\
| > Approve: $address
| > " | /usr/lib/sendmail -oi $listname
| > 

Keith Manley <kmanley(_at_)bits(_dot_)fc(_dot_)hp(_dot_)com> wrote to me:

| Using the 'standard' sed on HP-UX 9.05:
| 
| I had to put a double '\\' on the i\ line to get it to work.

Keith is right.  It's sh rather than sed that requires the two backslashes,
but required they are.  Sorry for the mistake, and thanks to Keith for
catching it.

DWT

<Prev in Thread] Current Thread [Next in Thread>
  • Re: getting Approve: into head, David W. Tamkin <=