<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Subfolder by regex filter]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Subfolder by regex filter of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Tue, 19 Jul 2022 12:38:58 +0300</lastBuildDateTag>		<item>
			<title>Subfolder by regex filter</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic15738/message53881/">Subfolder by regex filter</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_O9pGo9q5" href="/en/forums/" bx-tooltip-user-id="97812">True Friend</a> wrote:<br />Does anyone know how I can modify the rule so that the messages are correctly saved according to the original format...\\MailDir\Data\Archiv-Sorted\Incoming\year\domain.com\john.doe\*<br />=============<br />As I see, you want to move mails to specific archive folders, you should use more general expression as the target folder name. Here all dots in domain part and name part of the e-mail address are replaced by underscore character. <br />
====code====
<pre>&#92;&#92;MailDir&#92;Data&#92;Archiv-Sorted&#92;Incoming&#92;%ODATE="yyyy"&#92;%SetPattRegexp="(?is)(&#91;_&#92;w&#92;-&#92;.&#92;+&#93;+)@(&#91;_&#92;w&#92;-&#93;+(&#92;.&#91;_&#92;w&#92;-&#93;+)+)"%RegexpBlindMatch("%OFromAddr")%Replace(".", "_", "%SubPatt(2)&#92;%SubPatt(1)")%-</pre>
=============
<p>----------------</p><p>I use my second account, because of troubles with the login to this forum &nbsp;<img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_cry.gif" border="0" data-code=":cry:" data-definition="SD" alt=":cry:" style="width:16px;height:16px;" title="" class="bx-smile" /> <br /></p><p></p> <br />
			<i>19 July 2022 12:38:58, <a href="http://www.ritlabs.com/en/forums/">Zygmunt Wereszczynski</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic15738/message53881/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic15738/message53881/</guid>
			<pubDate>Tue, 19 Jul 2022 12:38:58 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Subfolder by regex filter</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic15738/message53874/">Subfolder by regex filter</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			I don't fully understand your question, but even if I did, I probably couldn't offer a solution. My only suggestion is that perhaps you can do it using one of the Replace functions documented at the link below, or maybe by using the %Validfilechars command? :<br /><br /><noindex><a href="https://www.ritlabs.com/en/support/help/73/#6679" target="_blank" rel="nofollow">https://www.ritlabs.com/en/support/help/73/#6679</a></noindex> <br />
			<i>18 July 2022 12:10:51, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic15738/message53874/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic15738/message53874/</guid>
			<pubDate>Mon, 18 Jul 2022 12:10:51 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>Subfolder by regex filter</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic15738/message53872/">Subfolder by regex filter</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Hello. I have this rule for archive incoming and out messages to folders/subfolders:<br /><br />\\MailDir\Data\Archiv-Sorted\Incoming\%SetPattRegExp=_(.*)@(.*)_%-%RegExpBlindMatch=_%FromAddr_%-%ODATE=&quot;yyyy&quot;\%SubPatt=_2_\%SubPatt=_1_<br /><br />Where output from mail <noindex><a href="mailto:john@domain.com" target="_blank" rel="nofollow">john.doe@domain.com</a></noindex> this is:<br />\\MailDir\Data\Archiv-Sorted\Incoming\year\domain.com\john.doe\*<br /><br />But my IMAP server use as separator dots.<br /><br />The problem is that it then creates domain and mailboxes that contain a dot as another subfolder.<br />\\MailDir\Data\Archiv-Sorted\Incoming\year\domain\com\john\doe\*<br /><br /><br />Does anyone know how I can modify the rule so that the messages are correctly saved according to the original format...<br />\\MailDir\Data\Archiv-Sorted\Incoming\year\domain.com\john.doe\* <br />
			<i>18 July 2022 10:45:49, <a href="http://www.ritlabs.com/en/forums/">True Friend</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic15738/message53872/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic15738/message53872/</guid>
			<pubDate>Mon, 18 Jul 2022 10:45:49 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
