<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Outgoing mail filter to change the active account]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Outgoing mail filter to change the active account of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Wed, 22 Feb 2023 16:32:06 +0200</lastBuildDateTag>		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54914/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			I&#39;m trying to implement the line you suggested that I add to the New message template in the <I>default account</I>, but I&#39;m having a problem. The New message template is used when I click on the &quot;New Msg&quot; icon in the toolbar. That opens a window that ignores my recipient, the message title and the message contents. The sending address is filled by the contents of Account Properties | General | From Address field.<br /><br />I&#39;ll then fill in the From and To addresses and I&#39;d like to have a macro that changes the account used to send the message based on the domain in the From field.<br /><br />How do I get the line you suggested to run <B>after</B> I&#39;ve filled in the From and To addresses in the New Msg window in the default account? <br />
			<i>22 February 2023 16:32:06, <a href="http://www.ritlabs.com/en/forums/">Andrew ARONOFF</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54914/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54914/</guid>
			<pubDate>Wed, 22 Feb 2023 16:32:06 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54908/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Thanks for your reply. I&#39;ll add this to my new message template in my primary account, one line for each domain. <br />
			<i>21 February 2023 15:14:13, <a href="http://www.ritlabs.com/en/forums/">Andrew ARONOFF</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54908/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54908/</guid>
			<pubDate>Tue, 21 Feb 2023 15:14:13 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54892/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</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_1eDBovre" href="/en/forums/" bx-tooltip-user-id="82467">Andrew ARONOFF</a> wrote:<br />However, I use many account names with my domains, so &quot; <noindex><a href="mailto:user@dom1.com" target="_blank" rel="nofollow">user@dom1.com</a></noindex> &quot; won&#39;t work. Is there any way to adapt that line for &nbsp;any &nbsp;account name, perhaps by referring to the domain name?<br /><br />%If : &#39;%FromAddr&#39; &nbsp;contains &nbsp;&#39;dom1.com&#39; : %Account=&quot; dom1_account_name %-<br /><br /><br />=============<br />Try following line added in new message templates of every account of interest (it means accounts that you use to write messages):<br /><br />
====code====
<pre>%If:'%RegExp("dom1&#92;.com","%FromAddr","0")'='dom1.com':%Account='dom1_account_name'%-</pre>
=============
<br />Please note the backslash before the dot in regular expression! <br />
			<i>19 February 2023 02:16:16, <a href="http://www.ritlabs.com/en/forums/">Zygmunt Wereszczyński</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54892/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54892/</guid>
			<pubDate>Sun, 19 Feb 2023 02:16:16 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54891/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Sorry for my delay in replying, but I&#39;m not receiving notice of new posts in this topic (even though it&#39;s checked and greyed out).<br /><br />Thanks for your post, which clearly explains how outgoing mail filters work and contains an excellent code suggestion.<br /><br />However, I use many account names with my domains, so &quot;<noindex><a href="mailto:user@dom1.com" target="_blank" rel="nofollow">user@dom1.com</a></noindex>&quot; won&#39;t work. Is there any way to adapt that line for <B>any</B> account name, perhaps by referring to the domain name?<br /><br />%If : &#39;%FromAddr&#39; <I>contains</I> &#39;dom1.com&#39; : %Account=&quot;<I>dom1_account_name</I>%-<br /><br />or<br /><br />%If : &#39;%FromDomainName&#39;=&#39;dom1.com&#39; : %Account=&quot;<I>dom1_account_name</I>%- <br />
			<i>18 February 2023 15:29:27, <a href="http://www.ritlabs.com/en/forums/">Andrew ARONOFF</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54891/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54891/</guid>
			<pubDate>Sat, 18 Feb 2023 15:29:27 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54786/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</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_LPREHdOM" href="/en/forums/" bx-tooltip-user-id="82467">Andrew ARONOFF</a> wrote:<br />I&#39;m not replying to a message, I&#39;m sending an unsolicited message to someone. I&#39;m not creating the message in the dom1.com account, I&#39;m creating it in my default account. If I create a message with the from address &nbsp;<noindex><a href="mailto:user@dom1.com" target="_blank" rel="nofollow">user@dom1.com</a></noindex> , how do I get The Bat! to use the SMTP server configured for dom1.com?<br /><br /><br />=============<br />I think it may be solved by adding one simple line to the <U>new message template</U> in your <B>default account</B>:<br /><br />
====code====
<pre>%If:'%FromAddr'='user@dom1.com':%Account='dom1.com'%-</pre>
=============
<br />Outgoing mail filter cannot help because they work only when the mail is actually sent. <br />
			<i>29 January 2023 23:33:10, <a href="http://www.ritlabs.com/en/forums/">Zygmunt Wereszczyński</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54786/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54786/</guid>
			<pubDate>Sun, 29 Jan 2023 23:33:10 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54785/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			I have tried in the past to use an Outgoing mail filter to suppress a send but failed. The most I could do was display an alert and copy the message to the right account, but the message was still sent from the wrong account. If someone has succeeded, I&#39;d like to know how the Outgoing mail filter was configured.<br /><br />IAC, thanks for your help.<br /><br />regards, AndyA <br />
			<i>29 January 2023 03:59:56, <a href="http://www.ritlabs.com/en/forums/">Andrew ARONOFF</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54785/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54785/</guid>
			<pubDate>Sun, 29 Jan 2023 03:59:56 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54784/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			I see! Well, the only possible solution that I can think of (for now) is to create an Outgoing Mail filter that is triggered by a condition like 'Sender' 'Contains' 'dom1.com', and that performs an action 'Create a formatted message'. With this you should be able to create a copy of the message in the outbox of the dom1 account. Finally, with another action, you could delete the original outgoing message.. I haven't tried it, but I suspect that it might work. If it doesn't, hopefully someone who is better with filters and macros will come along with a better solution. <br />
			<i>29 January 2023 01:43:16, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54784/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54784/</guid>
			<pubDate>Sun, 29 Jan 2023 01:43:16 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54783/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Hi, Daniel. Thanks for your reply.<br /><br />I&#39;m not replying to a message, I&#39;m sending an unsolicited message to someone. I&#39;m not creating the message in the dom1.com account, I&#39;m creating it in my default account. If I create a message with the from address <noindex><a href="mailto:user@dom1.com" target="_blank" rel="nofollow">user@dom1.com</a></noindex>, how do I get The Bat! to use the SMTP server configured for dom1.com?<br /><br />TIA for your help.<br /><br />regards, AndyA <br />
			<i>28 January 2023 22:11:47, <a href="http://www.ritlabs.com/en/forums/">Andrew ARONOFF</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54783/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54783/</guid>
			<pubDate>Sat, 28 Jan 2023 22:11:47 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54768/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			I don't understand why you would use a filter. The Bat would normally fill in whatever is defined as 'From' information in Account Properties | General. Don't you have the correct information there? If you want to reply from a different account, you could change the 'Reply' message template and use the %account macro there. <br />
			<i>26 January 2023 18:43:27, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54768/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54768/</guid>
			<pubDate>Thu, 26 Jan 2023 18:43:27 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
		<item>
			<title>Outgoing mail filter to change the active account</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum5/topic15953/message54764/">Outgoing mail filter to change the active account</a></b> <i>outgoing mail filter that will change the active account to the one set up for the sender's domain</i> in forum <a href="http://www.ritlabs.com/en/forums/forum5/">The Bat! - Filters</a>. <br />
			Hello,<br /><br />I&#39;m using The Bat! Pro 9.5.1 x64 under Windows 7 Pro (fully patched).<br /><br />I own numerous domains, two of which I&#39;ll call dom1.com and dom2.com.<br /><br />When I write a message as <noindex><a href="mailto:user@dom1.com" target="_blank" rel="nofollow">user@dom1.com</a></noindex>, I would like it to be sent by the dom1.com account so that when the message is received, it is not signaled as spam. (I have checked this, and it works.) Of course, if I&#39;m paying attention, before I hit the Send button, I can change the Active Account in the bottom of the Edit Mail Message window, but I often forget this critical step.<br /><br />My idea, then, is to create a filter that uses RegEx to determine the sender&#39;s domain and change the active account to the one created for that domain. So, the message written by <noindex><a href="mailto:user@dom1.com" target="_blank" rel="nofollow">user@dom1.com</a></noindex> would be sent by the Active Account for dom1.com.<br /><br />Can an outgoing filter do this? If not, is there any way I can display a message before any message is sent to check the Active Account?<br /><br />regards, AndyA <br />
			<i>26 January 2023 15:53:40, <a href="http://www.ritlabs.com/en/forums/">Andrew ARONOFF</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum5/topic15953/message54764/</link>
			<guid>http://www.ritlabs.com/en/forums/forum5/topic15953/message54764/</guid>
			<pubDate>Thu, 26 Jan 2023 15:53:40 +0200</pubDate>
			<category>The Bat! - Filters</category>
		</item>
	</channel>
</rss>
