Pages: 1
RSS
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 1.zip or 23456.zip file attached, but not match messages having a a123.zip or 12c3.zip 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?

Thanks
 
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
filename="name_of_the_attached_file.extension"
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