Filename.rules.conf

Kevin Miller kevin.miller at juneau.org
Wed Oct 9 18:20:49 UTC 2019


Gotcha.  Although it's working as is, I'll change it to make sure there aren't any oddities that arise long after I remember that I added it.  Pays in the long run to do it right, rather than just "good enough for now".

Thanks again...

-----Original Message-----
From: MailScanner [mailto:mailscanner-bounces+kevin.miller=juneau.org at lists.mailscanner.info] On Behalf Of Mark Sapiro
Sent: Wednesday, October 9, 2019 10:02 AM
To: mailscanner at lists.mailscanner.info
Subject: Re: Filename.rules.conf

EXTERNAL E-MAIL: BE CAUTIOUS WHEN OPENING FILES OR FOLLOWING LINKS

________________________________

On 10/9/19 10:28 AM, Kevin Miller wrote:
> Thanks Mark.
> Total spaced the archives.filename.rules.conf - that was the ticket.  I had to expand the regex a bit as follows:
>   allow   *\.com*\.xml$           -       -
> to allow for the series of characters before and after .com but before 
> .xml but that was easy enough once I took the quarter you sent and 
> bought a clue! :-)


These are regexps, not globs. Mailscanner recognizes this common error and converts a leading * to .*, but not others, so *\.com*\.xml$ will match names ending with '.com.xml', '.comm.xml', '.commm.xml;, etc, but not, e.g. '.comic.xml'.

you want '.*\.com[^.]*\.xml' to match names ending with .com followed by zero or more non-dots followe by .xml.

--
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner



More information about the MailScanner mailing list