[Mimedefang] custom function - stripping attachments based on headers
Terry Davis
tdavis at approbation.org
Tue Apr 30 11:42:13 EDT 2002
This all makes sense but can I simply add a function like this to the
mimedefang-filter config file?
I want it to work like such:
If mimedefang thinks it is a virus or spam, then do what it needs to
with it, if it makes it through those checks then I want it to go
through my little program if the headers match up to what I want...I
think I know how to go about all that except where to place this
function....
thank you again!
On Tue, 2002-04-30 at 10:13, David F. Skoll wrote:
> On 30 Apr 2002 00:37:12 -0500 Terry Davis <tdavis at approbation.org> wrote:
>
> > I want strip out attachments from emails based on the TO and FROM
> > headers and run a script with the headers and attachment(s) as
> > arguments.
>
> The message headers are in "./HEADERS"
>
> So:
>
> open(HDRS, "<HEADERS");
> while(<HDRS) {
> chomp;
> # Do something with header
> }
> close(HDRS);
>
> Also, the HEADERS file has the headers "unfolded", so you're guaranteed
> that each line in the file is a single complete header.
>
> Regards,
>
> David.
>
> _______________________________________________
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
--
Terry Davis
http://approbation.org/
More information about the MIMEDefang
mailing list