On Thursday, October 21, 2004, at 21:59:35 [UTC+0200] (Thursday, October 21,
2004 21:59 my local time) Britt Malka wrote:

>> I don't seem to know what this is about.

> Lucky you :-)

But not me, because I know what you means :-)

As Alexey wrote, the best method will be a manually triggered filter of read
messages which exports message to text file (using template with macros that
cut all text after "-----Oprindelig meddelelse-----", inclusive). Then this
filter imports changed message from text file and deletes original one,
together with this file. As a result you will have only pure original reply
without MS add-ons.

The template used to export message to file "D:\export.txt" has following
simple form:

%Headers%-
%SetPattRegExp="(?ism)(.*)^----- Original Message -----.*"%RegexpMatch(%Text)

Command line used to import text as a message is following:

C:\Program Files\The Bat!\thebat.exe 
/IMPORTF=\\Account\Inbox;FILE="D:\export.txt";DELETE

Please note that message will be imported to "Inbox" folder of "Account"
from file "D:\export.txt" - you should change these parameters according to
your needs. The filter "Remove_Original_MSG" is attached as text to this
message to avoid long line breaks, so you can copy and paste it to your
Sorting Office. The filter checks if there is "----- Original Message -----"
phrase in message text, so please change this to "-----Oprindelig meddelelse-----"
or something else according to your language. You should also change this
phrase in export template. My filter is triggered by Ctrl+F11.

So, enjoy this!

-- 
Best regards,
Zygmunt Wereszczynski
(Using The Bat! v3.0.2.1 on Windows 2000 5.0 Build 2195 Service Pack 4
with BayesIt! 0.7.4)
$$$$ TB! Message Filter $$$$
beginFilter
UID: [5E6A6B40.01C4B7AA.72334DF4.4ADF1BCB]
Name: Remove_Original_MSG
Filter: {\0D\0A\20`4`0`-----\20Original\20Message\20-----\0D\0A}
ExportMessage OverwriteExist FmtText filename D:\5Cexport.txt template 
%Headers%-\0D\0A%SetPattRegExp\3D\22(?ism)(.*)^-----\20Original\20Message\20-----.*\22%RegexpMatch(%Text)\0D\0A
RunExternal Wait CmdLine 
C:\5CProgram\20Files\5CThe\20Bat!\5Cthebat.exe\20/IMPORTF\3D\5C\5CAccount\5CInbox;FILE\3D\22D:\5Cexport.txt\22;DELETE
Delete
IsActive
IsHotkey
IsCheckRule
IsHotkeyOnly
Ignore
endFilter
________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to