<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Scheduler ]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Scheduler  of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Fri, 27 May 2022 13:43:23 +0300</lastBuildDateTag>		<item>
			<title>Scheduler </title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic15678/message53516/">Scheduler </a></b> <i>Is it possible?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			My experience is that TB! automatically deletes downloaded images after a while. How long is this &quot;after a while&quot;, I don&#39;t know, nor do I see a way to control it. But it works for me. Note that I only manually download images for messages where I feel it is absolutely necessary, so my cache is never that big (right now it says 4 bytes &nbsp;<img src="http://www.ritlabs.com/bitrix/images/main/smiles/5/icon_biggrin.gif" border="0" data-code=":D" data-definition="SD" alt=":D" style="width:16px;height:16px;" title="" class="bx-smile" />). <br />
			<i>27 May 2022 13:43:23, <a href="http://www.ritlabs.com/en/forums/">Miloš Radovanović</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic15678/message53516/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic15678/message53516/</guid>
			<pubDate>Fri, 27 May 2022 13:43:23 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Scheduler </title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic15678/message53491/">Scheduler </a></b> <i>Is it possible?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Thanks Zygmunt and Daniel. &nbsp;Zygmunt&#39;s solution is far to complicated for me.<br /><br />I have a wonderful little program installed called Mindful and I&#39;m able to set it to remind me every so many days to perform a task. &nbsp;I&#39;ll set that to remind me to delete/view the size of the cache every 14 days or so. &nbsp;For me a TB Schedule option it would be an advantage.<br /><br />Thanks again <br />
			<i>23 May 2022 17:59:35, <a href="http://www.ritlabs.com/en/forums/">David Payne</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic15678/message53491/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic15678/message53491/</guid>
			<pubDate>Mon, 23 May 2022 17:59:35 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Scheduler </title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic15678/message53484/">Scheduler </a></b> <i>Is it possible?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Alright Zygmunt, but The Bat itself does not offer a solution of the type that David is looking for. Your hack may well work, but bluntly deleting the contents of the cache folder might -at least in theory- have unintended consequences, particularly if it's done whilst The Bat is running. If David still wants to implement it, I would recommend that he does <B>not</B> run it from The Bat, but instead creates a batch file that clears the cache folder and then launches The Bat -- and from then on, always use that batch file to launch The Bat. That would give him an empty cache everytime he uses The Bat (but frankly, I doubt if that would serve any meaningful purpose). <br />
			<i>23 May 2022 02:32:58, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic15678/message53484/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic15678/message53484/</guid>
			<pubDate>Mon, 23 May 2022 02:32:58 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Scheduler </title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic15678/message53483/">Scheduler </a></b> <i>Is it possible?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			I cannot agree with you, Daniel. Clearing cache is possible by external program launched by The Bat! as event in Scheduler. For this purpose the Windows PowerShell is ideally matched. First, you should create text file with name <B><span class="bx-font" style="color:#007236">ClearCacheDir.ps1</span></B> and save it in location, say, <span class="bx-font" style="color:#ff0000"><B><span class="bx-font" style="color:#197b30">&lt;ScriptPath&gt;</span></B></span>. Here is the code for clearing files older than 7 days (you can change this as you wish):<br />
====code====
<pre>$now = Get-Date
$CacheDir = $env:email + "&#92;imgfiles&#92;"
dir $CacheDir | where {$_.LastWriteTime -le $now.AddDays(-7)} | del</pre>
=============
<br />Then you should create an event in The Bat! Scheduler with only one operation: <B>run the PowerShell script</B>. The command for this is following:<br /><br />
====code====
<pre>C:&#92;Windows&#92;system32&#92;WindowsPowerShell&#92;v1.0&#92;powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "&#38; '&#60;ScriptPath&#62;&#92;ClearCacheDir.ps1'"</pre>
=============
<br />Remember to use correct path &quot;&lt;ScriptPath&gt;&quot; in the command run by Scheduler. <br />
			<i>23 May 2022 00:58:48, <a href="http://www.ritlabs.com/en/forums/">Zygmunt Wereszczyński</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic15678/message53483/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic15678/message53483/</guid>
			<pubDate>Mon, 23 May 2022 00:58:48 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Scheduler </title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic15678/message53481/">Scheduler </a></b> <i>Is it possible?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			No, that's not possible.<br /><br />The image cache is only used if/when:<br /><br />-You receive an HTML email <br />-AND this message uses (links to) images that are not included as attachments but are located on external servers<br />-AND you allow The Bat to download external images in general, or fr om this message's sender in particular<br />-AND the image has not been retrieved before<br /><br />The Bat may well be automatically removing old entries, or entries that haven't been requested for a long time, or lim it the cache size to a certain size - that doesn't appear to be documented. But unless you are receiving HTML messages from an extraordinary number of different senders, the cache is unlikely to grow to an inconvenient size. <br />
			<i>22 May 2022 20:14:17, <a href="http://www.ritlabs.com/en/forums/">Daniel van Rooijen</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic15678/message53481/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic15678/message53481/</guid>
			<pubDate>Sun, 22 May 2022 20:14:17 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Scheduler </title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic15678/message53479/">Scheduler </a></b> <i>Is it possible?</i> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Please: &nbsp;<br /><br />Is it possible to use the Scheduler to clear the &quot;Clear Cache&quot; in Preferences? &nbsp;I&#39;d like to be able to set it to delete when it reached a size limit or after so many days?<br /><br />Thanks <br />
			<i>22 May 2022 12:33:24, <a href="http://www.ritlabs.com/en/forums/">David Payne</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic15678/message53479/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic15678/message53479/</guid>
			<pubDate>Sun, 22 May 2022 12:33:24 +0300</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
	</channel>
</rss>
