<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Filtering symbols in file names when writing attachments]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Filtering symbols in file names when writing attachments of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Sun, 19 Mar 2017 14:57:23 +0200</lastBuildDateTag>		<item>
			<title>Filtering symbols in file names when writing attachments</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic11245/message44263/">Filtering symbols in file names when writing attachments</a></b> <i>How to filter symbols in %OSUBJ when using said parameter for naming directories?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			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. &nbsp;Create a quick template called &quot;test2&quot; as shown below.<br />
====code====
<pre>%_rc2=#%SETPATTREGEXP="(.*?)(%_rre)(.*)"%REGEXPBLINDMATCH="%_rc1"%SUBPATT="1"%SUBPATT="3"#%-
%IF:"%_rc2"&#62;"":%_rc1=%_rc2%-
</pre>
=============
You can then accomplish your task with the following quick template.<br />
====code====
<pre>%_rre="&#91;^&#92;w&#92;d &#93;"%-
%_rc1="%OSUBJ"%-
%QINCLUDE="test2"%-
%QINCLUDE="test2"%-
%QINCLUDE="test2"%-
%QINCLUDE="test2"%-
%QINCLUDE="test2"%-
%QINCLUDE="test2"%-
%QINCLUDE="test2"%-
%_rc1
</pre>
=============
Mike <br />
			<i>19 March 2017 14:57:23, <a href="http://www.ritlabs.com/en/forums/">mikeyww</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic11245/message44263/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic11245/message44263/</guid>
			<pubDate>Sun, 19 Mar 2017 14:57:23 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Filtering symbols in file names when writing attachments</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic11245/message37934/">Filtering symbols in file names when writing attachments</a></b> <i>How to filter symbols in %OSUBJ when using said parameter for naming directories?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			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 ' <br /><br />How do I filter these symbols? I'll need to put something around %OSUBJ, but what?<br /><br />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. <br />
			<i>04 November 2013 09:16:21, <a href="http://www.ritlabs.com/en/forums/">Loek van Kooten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic11245/message37934/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic11245/message37934/</guid>
			<pubDate>Mon, 04 Nov 2013 09:16:21 +0200</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
