Hello, Britt. You wrote 19.10.2004 @ 21:48 in <mid:[EMAIL PROTECTED]> using mailer: The Bat! (v3.0.1.33) Professional
BM> I did, but I couldn't see all your reg.expr. in my filter. BM> I selected everything, Ctrl+C, and then Paste in the sorting office. May be this is because The Bat! wrapped the lines in the filter (actually, the whole rule was represented by one long line). However, it is not so hard to set up it manually. Note, that it this method is not actually changed incoming letter, but simple automatically creates the new one and simultaneously deletes the original letter. First, create a sorting rule for your mail. You can assign a filtering rules as usually. Then, you can use two ways: a) In the actions add "Create a formatted message" - and make the new format which will be applied to your incoming message. Also, add the action "Delete the message". That's all! b) the way I've described you below. Actually it makes the same as "create a formatted message", but makes it semi-automatic. 1. Add the action "Export the message", using format "plain text". Press "template" and write the template for exported message. The simpliest template which will just make a copy of your original message (well, not exact copy, but already encoded into your default codepage) is just placing the headers and the text of original message this way: %HEADERS %TEXT (you need to press Enter twice between %headers and %text since it is proper way to divide headers and text in RFC format). Also you can make more complicated actions, like filtering some part of the text instead of using the whole one, or the actions which will re-format the whole text (for example, to make a HTML message from the simple text version). As the file to export use any temporary name, for example, c:\temp\fake.txt. 2. Add the action "Run external action" and specify the full path to Thebat.exe and command parameters which will cause The Bat! to import the letter from fake.txt, place it into appropriate folder, and make it unread (if necessary), for example: C:\Program Files\The Bat!\thebat.exe /IMPORTF="\\pup9\Inbox\TheBat"; FILE="C:\temp\fake1.txt";DELETE (this is actually one big line). Exapmled version will import the file fake.txt into Inbox\TheBat folder of pup9 mailbox, and then delete original received letter. Then, set the flag "wait for completion". Since The Bat! watches if the only one copy of application is running in the moment, this action will not cause the second copy of The Bat! to be loaded, but simple pass the given command-line parameters to the existing copy (i.e, to itself). As the alternative way you can use the file "thebat.ipc" (see help for details), but this file is checked only once per 10 seconds, so, the "virtual running" of thebat.exe is more proper in the case of filtering. But using thebat.ipc may be necessary if your program works in the mode "workstation with no TCP/IP", In this case the server copy may prepare the letter inside of it, and then write the signal for the "workstation" copy into thebat.ipc that the new letter was received. -- Sincerely, Alexey. Using TB 3.0.1.33 on WinXP Pro SP2 (2600), spelling by ORFO2002 (CSAPI) ..with Kaspersky Antivirus Plugin (ver 3.5 Gold) & antispam filter BayesIt! 0.7.4 mailto:[EMAIL PROTECTED] ________________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html
