procmail
[Top] [All Lists]

Re: Approving posts to moderated lists (fwd)

1997-05-29 16:56:00
On Thu, 29 May 1997 18:34:40 -0300 (ADT), Mark Metson 
<markm(_at_)god(_dot_)knotwork(_dot_)com> said:

I am thinking perhaps "formail" is the normal tool for this.. Piping
through "formail" might conceivably be so simple that its sheer
simplicity might explain the apparent lack of an "approve" script
such as majordomo comes with.

Sounds right to me.

    #!/bin/sh
    [ $# = 0 ] && { echo "usage: `basename $0` address..." >&2; exit 1; }
    formail -i "Approved: $LOGNAME(_at_)`hostname`" | sendmail ${1+"$@"}

-- 
Roderick Schertler
roderick(_at_)argon(_dot_)org

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