Search  Users  Rules 
Forgot your password?
Pages: 1
what file mask to use?
I need to create a filter that will match messages having a [just_numbers_here].zip file attachment.
So the filter should match messages having a or file attached, but not match messages having a or file attached.
In other words, the attachment file name must consist of numbers only, and the extension must be .zip
What to enter for a file mask to achieve this?

Try \d*\.zip as filemask
I'm just a user of The Bat! I don't work for Ritlabs.
Thanks but this doesn't seem to work.
Also tried [0-9]*\.zip, which didn't work either.
Are you sure regexps can be used in file masks?

The help file says:
In a filter definition in the Sorting Office dialog, select the "Options" tab and tick the "Regular expressions" checkbox. Note that ALL signal strings of the filter will be treated as regular expressions so make sure that they all comply with Regular Expression syntax.
However there is no "Regular expressions" checkbox in the "Options" or other tabs.
well I did it with a filter like this:
Message Source|Matches any of|filename="[0-9]*\.zip"
as for mails with attachments a string
appears in the source.
That's because you have to use 'match' for regexp and not 'contains', should have made that clear in my first posting...
I'm just a user of The Bat! I don't work for Ritlabs.
Pages: 1
Users browsing this topic (1 guests)