procmail
[Top] [All Lists]

Re: forward to multiple users

2004-01-27 11:53:23
Sean suggested to Suryaman,

:0
  * there may have been some conditions here
! `sed -e :a -e '$!N' -e '$!ba' -e 's-\n-\ -g' < $HOME/list`

Suryaman replied,

it tried to forward mail to  "sed -e :a -e '$!N' -e '$!ba' -e 's-\n-\ -g'
< $HOME/list" rather than interpreating it as shell command.

It looks as though instead of cutting and pasting Sean's code into your rcfile, you retyped it used apostrophes or quotation marks instead of backticks.

It should also be noted that the shell-call-forcing input redirector is unnecessary, because sed can read files named on its command line. Also, the space did not have to be escaped.

:0
* whatever conditions there were
! `sed -e :a -e '$ !N' -e '$ !ba' -e 's/\n/ /g' $HOME/list`


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>