<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Templates: Lastname cleanup]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Templates: Lastname cleanup of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Thu, 18 Sep 2008 13:13:24 +0300</lastBuildDateTag>		<item>
			<title>Templates: Lastname cleanup</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic6562/message25208/">Templates: Lastname cleanup</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Try this %IF with simple regexps:<br /><br />
====code====
<pre>Hello %IF:`%SETPATTREGEXP='&#92;(.+?&#92;)'%REGEXPMATCH(%TOLNAME)`!=``:`%-
%SETPATTREGEXP='(&#91;&#92;w&#92;-&#93;*)&#92;s*&#92;(.+?&#92;)$'%REGEXPMATCH(%TONAME)`:`%TOLNAME`,</pre>
=============
<br /> <br />
			<i>18 September 2008 13:13:24, <a href="http://www.ritlabs.com/en/forums/">K_S</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic6562/message25208/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic6562/message25208/</guid>
			<pubDate>Thu, 18 Sep 2008 13:13:24 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Templates: Lastname cleanup</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic6562/message25204/">Templates: Lastname cleanup</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			*bump*<br /><br />No one has any suggestions? <br />
			<i>18 September 2008 03:11:28, <a href="http://www.ritlabs.com/en/forums/">frame</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic6562/message25204/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic6562/message25204/</guid>
			<pubDate>Thu, 18 Sep 2008 03:11:28 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Templates: Lastname cleanup</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic6562/message24978/">Templates: Lastname cleanup</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Hello,<br /><br /><b>edit</b>: my apologies: I've posted in the wrong forum. Can a moderator please move it? Thank you.<br /><br /><br />The emails I get from my main client uses the following sender format:<br />
====code====
<pre>"John Smith (Microsoft)" &#60;ts@microsoft.com&#62;</pre>
=============
<br /><br /><br />In my reply template I want to Greet the person with his or her lastname:<br /><br />
====code====
<pre>Hello %TOLNAME,</pre>
=============
<br /><br />which results in<br /><br />
====code====
<pre>Hello (Microsoft),</pre>
=============
<br /><br />instead of<br /><br />
====code====
<pre>Hello Smith,</pre>
=============
<br /><br />If I add the person to the Adressbook the problem appears again: The &quot;company&quot; suffix is filled in at the Lastname field, the actual Lastname is filled in the middle name. Now, I've tried to counter-react on this feature and attempted to use %TOMNAME (Middlename) if I detect brackets in the lastname. However there is no such Variable.<br /><br />Am I missing something? How can I achieve my goal?<br />Is there a way to extract the &quot;Smith&quot; part from whole %TONAME?<br /><br /><br />PS: The solution to add the Person to the addressbook first, then use %ABTOMiddleName is no good: I don't have the time to add everyone I want to reply to the address-book first.<br /><br />Thanks!<br /><br />Marc <br />
			<i>04 September 2008 01:28:34, <a href="http://www.ritlabs.com/en/forums/">frame</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic6562/message24978/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic6562/message24978/</guid>
			<pubDate>Thu, 04 Sep 2008 01:28:34 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
	</channel>
</rss>
