[Mimedefang] custom function - stripping attachments based on headers

Terry Davis tdavis at approbation.org
Tue Apr 30 11:18:05 EDT 2002


nevermind, found them.
:)


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