<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: notify how many messages sent]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in notify how many messages sent of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Fri, 02 Sep 2005 13:26:32 +0300</lastBuildDateTag>		<item>
			<title>notify how many messages sent</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic1703/message7558/">notify how many messages sent</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			Yes, you can do this.<br />However in order to make this work, you'll have to maintain a database that contains for each of your contacts the number of messages they sent you.<br /><br />The easiest way to keep track of the number of messages would be to create for each contact a text file with the number of messages as contents.<br />Let's place this database in the directory<br />C:\MsgCnt<br />In this directory you need to place a file count.txt with as sole contents the number 1 (no line feed, no trailing spaces, just the character)<br /><br />Now we need to take care of the creation of records for your contacts and updating their records on receipt of a new message, as you want to this this automaticaly, we do this with a batch file we make TB create and execute through a filter.<br /><br />Create a filter<br />Set the appropriate conditions (I don't suppose you want to send your boss messages like: 'Hey bozo, Stop bugging me, you sent me 100 messages')<br />Add three actions:<br />1) An export action<br />2) An execute external command action<br />3) An Auto reply action.<br /><br />1) The export action<br />Set the action to export to text<br />Export to file: C:\MsgCnt\Update.bat<br />Export to plain text<br />Overwrite the existing file<br />And set the template to this:<br /><br />============================================<br />@echo off<br />:start<br />if exist %OFromAddr goto update<br /><br />:initiate<br />copy C:\MsgCnt\Count.txt C:\MsgCnt\%OFromAddr<br />goto end<br /><br />:update<br />echo %Calc('%Put("C:\MsgCnt\%OFromAddr") + 1') &gt; C:\MsgCnt\%OFromAddr<br />goto end<br /><br />:end<br />============================================<br /><br /><br />don't include the === lines in the template.<br /><br /><br /><br />2) The Run external program action<br />Command line:<br />C:\MsgCnt\Update.bat<br /><br /><br />3) The autoreply action.<br />Create a reply template.<br />Insert %Put("C:\MsgCnt\%OFromAddr") at the place where you'd like to have the number of messages.<br /><br />It is important that you set the actions in this filter in the sequence I set,otherwise it won't work properly.<br /><br />Notes:<br /><B><U>WARNING</U></B> <U>I didn't test it</U><br />For more info about batch files, google for "batch files" and "dos"<br /><br /> <br />
			<i>02 September 2005 13:26:32, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic1703/message7558/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic1703/message7558/</guid>
			<pubDate>Fri, 02 Sep 2005 13:26:32 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
		<item>
			<title>notify how many messages sent</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum6/topic1703/message7534/">notify how many messages sent</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum6/">The Bat! - Templates and Macros</a>. <br />
			hi,<br /><br />i'm a first time user of this cool email program. i just want to know if it is possible to create an autoreply template that notifies the sender the number of his sent emails? if it is, how will i do it?<br /><br />thanks in advance to anyone who can help me... <img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_smile.gif" border="0" data-code=":)" data-definition="SD" alt=":)" style="width:16px;height:16px;" title="" class="bx-smile" /> &nbsp; <br />
			<i>01 September 2005 22:25:20, <a href="http://www.ritlabs.com/en/forums/">antz pelicane</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum6/topic1703/message7534/</link>
			<guid>http://www.ritlabs.com/en/forums/forum6/topic1703/message7534/</guid>
			<pubDate>Thu, 01 Sep 2005 22:25:20 +0300</pubDate>
			<category>The Bat! - Templates and Macros</category>
		</item>
	</channel>
</rss>
