I have a filter defined that writes attachments to directory blablabla/%OSUBJ if certain messages from certain clients contain attachments. This works, except when %OSUBJ contains symbols that are not allowed in directory names, like : and '
How do I filter these symbols? I'll need to put something around %OSUBJ, but what?
Also, I need to make sure the directory names do not become too long, so an instruction to truncate the directory name to say 50 characters would be welcome.
For the filtering, although you cannot iterate regular expressions, if you have a maximum number of offenders, you could accomplish the same thing as follows. Create a quick template called "test2" as shown below.