<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Extract attachments by filter using RegEx on subject]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Extract attachments by filter using RegEx on subject of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Fri, 01 May 2020 22:44:35 +0300</lastBuildDateTag>		<item>
			<title>Extract attachments by filter using RegEx on subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14772/message49709/">Extract attachments by filter using RegEx on subject</a></b> <i>Extract a string from email subject using RegEx and then use the result to create a folder for saving</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Cool! Glad to hear that you've got it to work! <br />
			<i>01 May 2020 22:44:35, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14772/message49709/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14772/message49709/</guid>
			<pubDate>Fri, 01 May 2020 22:44:35 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Extract attachments by filter using RegEx on subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14772/message49708/">Extract attachments by filter using RegEx on subject</a></b> <i>Extract a string from email subject using RegEx and then use the result to create a folder for saving</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Ok, I solved it myself!<br /><br />This works:<br /><br />C:\.....\%FilterName\%ODATESHORT.%SETPATTREGEXP=&quot;\d+&quot;%REGEXPMATCH=&quot;%OSUBJ&quot;<br /><br />So basically you can just write both lines in a single line without any separator. Simple enough, in hindsight.<br /><br />I love this software. <br />
			<i>01 May 2020 22:42:41, <a href="http://www.ritlabs.com/en/forums/">Ulrich Leininger</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14772/message49708/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14772/message49708/</guid>
			<pubDate>Fri, 01 May 2020 22:42:41 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Extract attachments by filter using RegEx on subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14772/message49707/">Extract attachments by filter using RegEx on subject</a></b> <i>Extract a string from email subject using RegEx and then use the result to create a folder for saving</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_ZSGZI0Uc" href="/en/forums/" bx-tooltip-user-id="311">Daniel van Rooijen</a> wrote:<br /><br />However, are you sure that this is the action that you want to use -- do you actually have to export any attachments? If, instead, you would use an action that generates a new message, you could use many more macro commands in the template of that message. Maybe that would give you some more flexibility here?<br />=============<br /><br />I confirmed that these two lines work fine if put in a message template:<br /><br />%SETPATTREGEXP=&quot;\d+&quot;<br />%REGEXPMATCH=&quot;%OSUBJ&quot;<br /><br />That is, they return the first number in the subject line.<br /><br /><br />I want to do the same in a filter action, but don&#39;t know how since cannot write multiple lines.<br /><br />I tried using the &quot;Set User Param&quot; filter action to set %SETPATTREGEXP to &quot;\d+&quot;, but this doesn&#39;t seem to work either. <br />
			<i>01 May 2020 22:13:53, <a href="http://www.ritlabs.com/en/forums/">Ulrich Leininger</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14772/message49707/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14772/message49707/</guid>
			<pubDate>Fri, 01 May 2020 22:13:53 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Extract attachments by filter using RegEx on subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14772/message49706/">Extract attachments by filter using RegEx on subject</a></b> <i>Extract a string from email subject using RegEx and then use the result to create a folder for saving</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Thanks for your reply. I am not sure whether the folder name is validated automatically, but concerning %VALIDFILECHARS, I have the same problem I described above.<br /><br />To maybe put my question more simply, I don&#39;t know how to combine any macros in the filter action dialogue. I can use single macros that return a string, but I don&#39;t know how to perform any kind of &quot;programming&quot;, i.e. performing several steps in a sequence.<br /><br />In message templates, you can simply write multiple lines of code, I assume. But the filter action dialogue allows only a single line.<br /><br /><br />(I don&#39;t want to create a new message, but save incoming attachments automatically in an automatically created folder. This would be incredibly useful for my project management.) <br />
			<i>01 May 2020 21:45:15, <a href="http://www.ritlabs.com/en/forums/">Ulrich Leininger</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14772/message49706/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14772/message49706/</guid>
			<pubDate>Fri, 01 May 2020 21:45:15 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Extract attachments by filter using RegEx on subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14772/message49705/">Extract attachments by filter using RegEx on subject</a></b> <i>Extract a string from email subject using RegEx and then use the result to create a folder for saving</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_XAU1jHNG" href="/en/forums/" bx-tooltip-user-id="99741">Ulrich Leininger</a> wrote:<br />Set up a filter with "Action" "Extract attachments", then setting the folder ("Extract attachments to (template)") to:<br /><br />c:....\%FilterName\%ODATESHORT.%REGEXPTEXT="\d+"<br />=============<br /><br />I can't help you with the question about combining two commands --sorry--, but when you are creating folder names, it may be wise to use the %VALIDFILECHARS macro, so as to make sure that you'll get a valid folder name.<br /><br />Edited to add:<br /><br />Oh wait, you're doing this in the dialog of the Extract Attachments action. Maybe The Bat will validate the address there automatically.<br /><br />However, are you sure that this is the action that you want to use -- do you actually have to export any attachments? If, instead, you would use an action that generates a new message, you could use many more macro commands in the template of that message. Maybe that would give you some more flexibility here? <br />
			<i>01 May 2020 20:59:36, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14772/message49705/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14772/message49705/</guid>
			<pubDate>Fri, 01 May 2020 20:59:36 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Extract attachments by filter using RegEx on subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic14772/message49704/">Extract attachments by filter using RegEx on subject</a></b> <i>Extract a string from email subject using RegEx and then use the result to create a folder for saving</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			I am trying to create a filter that extracts a string from the email subject using RegEx and then uses the result to create a folder for saving.<br /><br />More specifically, I want to extract the client&#39;s PO number from the email subject and create a folder like this:<br /><br />c:\....\&#91;client name&#93;\&#91;message date&#93;.&#91;PO number&#93;\<br /><br /><br />I <B>already know </B>how to do it using the <B>message text</B>:<br /><br /><br />Set up a filter with &quot;Action&quot; &quot;Extract attachments&quot;, then setting the folder (&quot;Extract attachments to (template)&quot;) to:<br /><br />c:....\%FilterName\%ODATESHORT.%REGEXPTEXT=&quot;\d+&quot;<br /><br />wh ere<br />1) %FilterName corresponds my client&#39;s name.<br />2) %ODATESHORT is the message&#39;s date.<br />3) %REGEXPTEXT=&quot;\d+&quot; matches the first number of the message &#91;assuming this is the PO number&#93;<br /><br />I have tested this and it works.<br /><br /><br />Alas, some clients put PO number only in the email subject.<br /><br />As there is no single macro for using RegEx directly on the subject line (comparable to %REGEXPTEXT), I think I should combine these two macros:<br /><br />%REGEXPMATCH=&quot;%OSUBJ&quot;<br />%SETPATTREGEXP=&quot;\d+&quot;<br /><br />My problem is, I don&#39;t know how to combine these two in the filter action dialogue. This doesn&#39;t seem to allow processing multiple commands, i.e. first running %REGEXPMATCH=&quot;%OSUBJ&quot; and then %SETPATTREGEXP=&quot;\d+&quot;.<br /><br />Maybe there is a special syntax for that? Is this possible at all? <br />
			<i>01 May 2020 19:27:37, <a href="http://www.ritlabs.com/en/forums/">Ulrich Leininger</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic14772/message49704/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic14772/message49704/</guid>
			<pubDate>Fri, 01 May 2020 19:27:37 +0300</pubDate>
			<category>The Bat! - Filters</category>
		</item>
	</channel>
</rss>
