bug-mailfromd


Search for: Advanced

Re: [Bug-mailfromd] attachment filtering / removal


> > >
> > > Attached is an MFL module for verifying if the given MIME message
> > > contains an attachment whose filename matches the supplied POSIX
> > regular
> > > expression.  See comments for usage examples.
> > >
> > > Comments and improvements are most welcome.
> > >
> 
> I am running it now for 28 extensions. Seems to go well. I am very
> pleased! :)
> 

I was wondering if we could optimize it so we can extract all file types and compare them with the blacklisted ones? Currently I just have a loop testing for 20+ file types/extensions, maybe this is not to efficient, especially when I add file types? Or is this just the only way to do it?