<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: How to automatically remove something from subject]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in How to automatically remove something from subject of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Tue, 26 Sep 2006 09:28:49 +0300</lastBuildDateTag>		<item>
			<title>How to automatically remove something from subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic3597/message13973/">How to automatically remove something from subject</a></b> <i>Removing **SPAM**</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Thank you very very much, it's all clear now. <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" /> <br />
			<i>26 September 2006 09:28:49, <a href="http://www.ritlabs.com/en/forums/">g0dlike</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic3597/message13973/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic3597/message13973/</guid>
			<pubDate>Tue, 26 Sep 2006 09:28:49 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>How to automatically remove something from subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic3597/message13970/">How to automatically remove something from subject</a></b> <i>Removing **SPAM**</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			The help is rather extensive on the regular expression part, so try to study that.<br /><br />The SetPattRegExp sets the pattern you're looking for, the RegExpBlindMatch sets the location and the way you're trying to extract info. (The help states that you need SubPatt to extract data when you're using RegExpBlindMatch.)<br /><br />The pattern was rather easy, I needed to look for **SPAM** followed by some text.<br />As the * has a special meaning for regular expressions I had to escape it with a \.<br />That gave me \*\*SPAM\*\*<br />In good messages the **SPAM** part would be missing in the subject, so I made (\*\*SPAM\*\*)? The question mark means that the character (sequence) has to occur zero or one time.<br />Then I had to take the rest of the subject line, that was done with (.*) the dot stands for any character and the asterix stands for zero or more instances, so that gives me anything in the subject line.<br /><br />The %RegExpBlindMatch='%OSubj' set the old subject as the string to match. (It's also possible to look for stuff in the whole message body or in one or more headers.)<br />The %SubPatt='2' told to insert the second part that was enclosed by ().<br /><br />Check <noindex><a href="http://www.ritlabs.com/en/forum/read.php?FID=6&amp;TID=3142&amp;MID=13950" target="_blank" rel="nofollow">http://www.ritlabs.com/en/forum/read.php?FID=6&TID=3142&MID=13950</a></noindex> for another regexp example on this forum or check <noindex><a href="http://www.silverstones.com/thebat/Library.html" target="_blank" rel="nofollow">http://www.silverstones.com/thebat/Library.html</a></noindex> for more life examples. There's also the tutorial at <noindex><a href="http://www.silverstones.com/thebat/Regex.html" target="_blank" rel="nofollow">http://www.silverstones.com/thebat/Regex.html</a></noindex><br />Both Silverstones URLs are part of the official TB FAQ, you'll get there by selecting 'Help -&gt; FAQ page' from TB's menu. <br />
			<i>26 September 2006 01:22:18, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic3597/message13970/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic3597/message13970/</guid>
			<pubDate>Tue, 26 Sep 2006 01:22:18 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>How to automatically remove something from subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic3597/message13969/">How to automatically remove something from subject</a></b> <i>Removing **SPAM**</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Thank you very much, it worked.<br /><br />Is there any tutorial regarding<br />%SetPattRegExp, %RegExpBlindMatch and the like?<br /><br />I myself am a programmer, but I still cannot understand how these commands work from the The Bat help (no real world examples provided).<br /><br />What does "?(.*)'" do for example? <br />
			<i>26 September 2006 00:52:31, <a href="http://www.ritlabs.com/en/forums/">g0dlike</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic3597/message13969/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic3597/message13969/</guid>
			<pubDate>Tue, 26 Sep 2006 00:52:31 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>How to automatically remove something from subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic3597/message13966/">How to automatically remove something from subject</a></b> <i>Removing **SPAM**</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Unfortunately, it isn't possible to remove the **SPAM** from the incoming message, but it is possible to remove it from your reply.<br />It's possible to do the latter by inserting this piece of regular expressions in your reply template(s):<br /><br />%SetPattRegExp='(\*\*SPAM\*\*)?(.*)'%-<br />%RegExpBlindMatch='%OSubj'%-<br />%Subject="Re: %SubPatt='2'"%-<br /><br />I don't know whether this is the optimal piece of coding, but I tested it and it does what you said you wanted, while it still leaves the original subject intact when the **SPAM** part is missing. <br />
			<i>25 September 2006 23:41:30, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic3597/message13966/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic3597/message13966/</guid>
			<pubDate>Mon, 25 Sep 2006 23:41:30 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>How to automatically remove something from subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic3597/message13965/">How to automatically remove something from subject</a></b> <i>Removing **SPAM**</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Unfortunately, regarding server filters, I cannot set them and I am not the ISP.<br />Yes, due to high spam level I use SpamPal.<br />Some emails are wrong marked as SPAM ==&gt; and here goes my problem with reply. <br />
			<i>25 September 2006 23:02:28, <a href="http://www.ritlabs.com/en/forums/">g0dlike</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic3597/message13965/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic3597/message13965/</guid>
			<pubDate>Mon, 25 Sep 2006 23:02:28 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>How to automatically remove something from subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic3597/message13963/">How to automatically remove something from subject</a></b> <i>Removing **SPAM**</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			I don't know if The Bat can do that automatically but perhaps you are attacking the problem from the wrong end. If these are not true Spam emails, then your server filters need to be "fixed." Is this something your ISP automatically does or are you using some type of Spam identifying software before it gets to The Bat? <br />
			<i>25 September 2006 22:44:16, <a href="http://www.ritlabs.com/en/forums/">Jim Drews</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic3597/message13963/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic3597/message13963/</guid>
			<pubDate>Mon, 25 Sep 2006 22:44:16 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>How to automatically remove something from subject</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic3597/message13961/">How to automatically remove something from subject</a></b> <i>Removing **SPAM**</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Hi all!<br />I have a pretty annoying problem.<br />Due to server filters, some mails i receive have the subject something like "**SPAM** &lt;Subject&gt;"<br />When I reply them, the subject becomes "Re: **SPAM** &lt;Subject&gt;".<br /><br />Now, the question. How can I have the "**SPAM**" word automatically removed when I reply? (thus having the subject like "Re: &lt;Subject&gt;").<br />Currently, I manually delete **SPAM** from subject when I encounter it.<br /><br />Big thanks! <br />
			<i>25 September 2006 21:44:56, <a href="http://www.ritlabs.com/en/forums/">g0dlike</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic3597/message13961/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic3597/message13961/</guid>
			<pubDate>Mon, 25 Sep 2006 21:44:56 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
	</channel>
</rss>
