Hello Mark,
On Sunday, September 17, 2000 at 18:37:10 GMT +0100 (which was 10:37 AM
where I live) witnesses say Mark R Harding typed:
> Hi TBUDL,
> I have the need to create a filter that will shutdown TB! when it
> receives an email containing some specific trigger such as...
> "Mark says shut TB! down.... now!"
> The reason I want to do this is because I have two TB! setups; one at
> work in the office (T1 connection) and one at home (dial-up
> connection). I have set up the work connection to offload messages
> from the mail server but the home account is set up to leave messages
> on the server. This way, all my mail eventually ends up in the one
> archive held on the work machine.
> Unfortunately, occasionally I forget to shutdown TB! when I leave work
> and this means that I cannot check my mail again until I return to the
> office in which time, if I am out for an extended period, something
> important may come up which I won't be able to see or respond to.
> Thus, I thought it would be useful if I created a filter that closed
> down TB! upon receipt of a trigger email. I could then issue such an
> email from home, have TB! at work close down and be able to check all
> subsequent emails until I next return to the office.
> Could anyone offer me some advice on the most sensible route to doing
> this please? Having seen nothing appropriate in the filter's 'actions'
> list I have a few ideas involving invoking an external program that
> performs some kind of remote kill but I think that won't produce a
> pleasant effect. If an 'internal' solution existed I'd think I'd
> prefer that.
> Best wishes,
> Mark
I don't think there is an internal way to do this exactly, but you
might try the following.
Create a two line batch file like the following.
---Begin Batch file---
C:\"Program Files"\"The Bat!"\thebat.exe /NoLogo [EMAIL PROTECTED];S="I'm
Shutting Down";Send
C:\"Program Files"\"The Bat!"\thebat.exe /NoLogo /exit
---End Batch file---
Now run this from a filter. Just be careful not to create an infinite
loop as I did while testing the above. <sigh> It also appears that
you really do need the first command to give TB enough time before
shutting down. I'm not sure why a batch file with only the second
line doesn't work when called from a script.
--
Thanks for writing,
Januk Aggarwal
See header for e-mail address
Using The Bat! 1.46c
under Windows 98 4.10 Build 2222 A
--
--------------------------------------------------------------
View the TBUDL archive at http://tbudl.thebat.dutaint.com
To send a message to the list moderation team double click here:
<mailto:[EMAIL PROTECTED]>
To Unsubscribe from TBUDL, double click here and send the message:
<mailto:[EMAIL PROTECTED]>
--------------------------------------------------------------
You are subscribed as : [email protected]