[Avcheck] Announce: avcheck-0.91
Ralf Hildebrandt
Ralf.Hildebrandt@charite.de
Sun, 13 Oct 2002 17:24:47 +0200
On Sun, Oct 13, 2002 at 07:02:28PM +0400, Michael Tokarev wrote:
> a) in case of "traditional" content_filter, when all good mails are
> reinjected back to postfix, set always_bcc *only* for smtpd that
> is used by avcheck to reinject good mails back. I.e., add additional
> address for good mails only.
Oh, a very good idea. But are you sure that it's a smtpd option? I'd
think it's a (n)qmgr thing!
> b) by modifying `infected' handler so it will strip one configured address
> from a list of rcpts, as you proposed. Note please that it's not
> guaranteed to be present for any given invocation of content filter
> (think of <filter>_destination_recipient_limit).
>
> I'd use the first variant. For second one, there is no safe way to
> implement this using standard Bourne shell (but bash and ksh should
> be ok), and this is why I don't think it's ok to add this feature
> directly to the "default" `infected' handler. Here is an example
> code to implement this using bash features (untested - I'm writing
> this right in this email w/o an attempt to execute):
>
> rcpts=()
> for rcpt; do
> case "$rcpt" in
> some@domain.tld) ;;
> *) rcpts[${#rcpts[@]}]="$rcpt"
> # yeah, array syntax is a bit cryptic... ;)
> esac
> done
> set -- "${rcpts[@]}" # make $@
>
> This code may become a *commented* part of default handler. Should it?
Oh yes.
It may become commonplace to use always_bcc for one reason or another.
--
Ralf Hildebrandt (Im Auftrag des Referat V a) Ralf.Hildebrandt@charite.de
Charite Campus Mitte Tel. +49 (0)30-450 570-155
Referat V a - Kommunikationsnetze - Fax. +49 (0)30-450 570-916
echo Mhbqnrnes Stbjr | tr "[a-y]" "[b-z]"