[plug] ProcMail help needed
Paul Dean
paul at canningcollege.wa.edu.au
Fri Jul 27 11:30:11 WST 2001
Hya,
At 11:07 AM 27/07/2001 +0800, you wrote:
>No doubt you are correct on all counts Paul.
>
>1. Does this mean I need spaces after the -x's ?
Most commands require a space after a switch definition (eg
SUBJECT=`formail -xSubject:` now becomes SUBJECT=`formail -x Subject:`),
otherwise the command won't recognize the switch or the parameters. You
will need to check the format of the command.
>2. I do not really understands the syntax of the searching lines, it
>is what I got off the pcguru site.
> If I need to changes this, what do you suggest?
.*.vbs.* = is looking for everthing before and after the vbs, but it has an
extra "." at the front, my question is, "Is this an typo, or does it need
to be there?" "What preceeds that "." ?", just looks wrong to me...
>3. A perl script and virus scanning sounds good to me, any suggestions?
Do you know Perl? I'm just starting out with it, but Perl is a text
processing Interpreter, and mail is just text, unless it has been encrypted.
You could write something that grabs incoming mail (the script called from
procmail) looks inside for an attachment. If there is a match then trash it
and replace the mail with two mails, one to the sender and one to the
receiver, telling them both of the possible virus.
<snip>
/***** Experience is that marvelous thing that enables you to recognize a
mistake when you make it again.
Franklin P. Jones *****/
/*****All programmers are playwrights and all computers are lousy actors.
-- Unknown*****/
More information about the plug
mailing list