Hi Alexey, Finally, I have finished a job that took all of my time and energy, but now I can play with The Bat! again :-)
Thursday, October 21, 2004 at 8:14:10 AM you wrote: > However, it is not so hard to set up it manually. Thank you for the clear explanation. I choose this way: > 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 I added some more to delete the "original message" part, but there is a problem. When I have this code, the message looks like the original message, and does not remove "original message". %text="%SETPATTREGEXP=""(?is)(-+\s*Oprindelig meddelelse.*~-~>.*-*_->$\s+|-+\s*Original Message.*~-~>.*-*_->$\s+)%- {0,1}(-+\s*Oprindelig meddelelse.*?\n|-+\s*Original Message.*?\n(Hash:.*?\n)?\s*)?%- (.*?)(-+\s*Oprindelig meddelelse|-+\s*Original Message|\z)""%REGEXPBLINDMATCH=""%text""%SUBPATT=""4""" When I use this code, the "original message" i removed, but the text i quoted. %quotes="%SETPATTREGEXP=""(?is)(-+\s*Oprindelig meddelelse.*~-~>.*-*_->$\s+|-+\s*Original Message.*~-~>.*-*_->$\s+)%- {0,1}(-+\s*Oprindelig meddelelse.*?\n|-+\s*Original Message.*?\n(Hash:.*?\n)?\s*)?%- (.*?)(-+\s*Oprindelig meddelelse|-+\s*Original Message|\z)""%REGEXPBLINDMATCH=""%text""%SUBPATT=""4""" I don't know how to solve this problem :-( > As the file to export use any temporary name, for example, c:\temp\fake.txt. So I did. > 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 I have tried among other things this: C:\Programmer\The Bat!\thebat.exe /IMPORTF="[EMAIL PROTECTED]";FILE="C:\temp\fake.txt";DELETE (all in one line) But it gives me two versions. One without "original message" but with quotes, and one that seems to be not imported, but is just like the original message. When I try fake1.txt, as you writes, it doesn't import the message. -- Kind regards, Britt Malka |\ /| | \__/ | \/ \/ | | \\ // \ / \/ ... It's 'fried rice', you Plick! ... www.malka.it - www.malka.dk - www.supermalka.dk ... ________________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html