On Fri, July 16, 2004 4:02, david nicol said: > On Thu, 2004-07-15 at 17:42, Robin Bowes wrote: > >> if ( /^List-Post: <mailto:[EMAIL PROTECTED]>/ \ || /^Delivered-To: mailing list >> [EMAIL PROTECTED]/ \ >> || /^X-Mailing-List:[:space:[EMAIL PROTECTED]/ \ >> || /^Return-Path: <[EMAIL PROTECTED]>/ ) >> { >> exception { if (${LOGGING_ENABLED}) { >> log "Matched mailing list ${MATCH2}" } >> to "${VMAILDIR}/${LISTS}.${MATCH2}/" } >> } >> > >> Is there an easy way to fix this without munging the list >> names, e.g. [EMAIL PROTECTED] or similar? > > So why not munge the list names? you appear to be using > something vaguely perl-like, munging a dot to an underscore in perl is trivial > > $Match2 =~ s/\./_/g;
David, It looks vaguely perl-like, doesn't it? However, this is a chunk from a maildrop mailfilter file. I don't *think* maidrop incorporates any "repalce" functionality. If it were that easy I would have just done it! As it is I believe I would have to use some sort of external program to munge the dots, and I'd rather avoid that if at all possible. I've already got two calls to external programs in my delivery script and I don't want to launch perl for each delivery! Thanks, R. -- http://robinbowes.com
