Bobby,
There were some beautiful batches on this list to distribute some files to
all subdirectories. See the following batch I made up for my purpose from
these examples. It uses all standard NT commands, no additional utilities:
----------- Begin of batch listing -----------
@echo off
echo.
echo This batch copies the file .\master\rules.ima
echo into all subdirectories. It has to be started from
echo the root of your mail domain's directory.
echo.
pause
rem building userlist based on directory only
dir /B /AD >dirlist.txt
echo.>rulecopy.log
echo Please wait while the file is copied ...
rem copy the source file to each directory
rem Note that this should be on one single line
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo
%%i>>rulecopy.log && copy .\master\rules.ima .\"%%i" >>rulecopy.log
type rulecopy.log
echo.
echo Check file rulecopy.log for details.
echo.
:END
----------- End of batch listing -----------
Hope this helps,
Marius
-----Original Message-----
From: Bobby Cannon [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 19, 2000 10:48 PM
To: '[EMAIL PROTECTED]'
Subject: [IMail Forum] Attachment rules
Hello,
I know we've beaten this death, but this should quite simple.
I have the following rule set up which forwards all mail w/v*b*s attachment
to
a virus mailbox at [EMAIL PROTECTED] B~attachment;
filename=".*\.v*b*s":virus I initially set this up to test it by putting the
rules.ima file in the root directory of domain A, which is a virtual domain.
It worked great, so now I want to apply it to all 50 of my virtual domains.
I tried copying it to \imail directory and nothing. I stopped and started
services, nothing. I put the rules.ima file in each domains root directly
and it works fine. I can live with that, until I want to change a rule,
then it's copy and paste hell. Did I miss something? I was under the
impression that placing the rules.ima file in the imail root directory would
affect all domains. Please help. Thank you.
[snip]
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.