Hi Dan,
Tuesday, November 30, 2004 at 4:25:36 PM you wrote:
> You might want to look at the two "Search and Replace" quick templates
> in The Bat! Macro and Solutions Library,
> http://cgi.marck.free-online.co.uk/library.php and copy (and possibly
> adapt) one of them for your requirement.
I didn't know that page. Thank you for the tip. Find a very nice macro
to clean the subject too :-)
> Then you could write a template that would include (%Qinclude) the
> Search and Replace template three times.
I tried a lot of combations, but suddenly it was there. This filter
removes the "Original message" part of a top quotet mail from
Microslaves:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
$$$$ TB! Message Filter $$$$
beginFilter
UID: [0FC9D52E.01C4D70D.460F8AA8.03191B4F]
Name: remove_original_msg
Filter: [EMAIL PROTECTED]
ExportMessage Kludges OverwriteExist FmtText filename c:\5Ctemp\5Cfake.txt
template
%headers%-\0D\0A%_TEXT\3D\22>>;{;%SETPATTREGEXP\3D\22\22(?is)(-+\5Cs*Oprindelig\20meddelelse.*~-~>.*-*_->$\5Cs+|-+\5Cs*Original\20Message.*~-~>.*-*_->$\5Cs+)%-\0D\0A{0,1}(-+\5Cs*Oprindelig\20meddelelse.*?\5Cn|-+\5Cs*Original\20Message.*?\5Cn(Hash:.*?\5Cn)?\5Cs*)?%-\0D\0A(.*?)(-+\5Cs*Oprindelig\20meddelelse|-+\5Cs*Original\20Message|\5Cz)\22\22%REGEXPBLINDMATCH\3D\22\22%text\22\22%SUBPATT\3D\22\224\22\22\22%-\0D\0A%QINCLUDE\3D\22replace\22%-\0D\0A%_TEXT%-\0D\0A
RunExternal Wait CmdLine C:\5CProgrammer\5CThe\20Bat!\5Cthebat.exe\20/[EMAIL
PROTECTED];FILE\3D\22C:\5Ctemp\5Cfake.txt\22;DELETE
MoveMessage folder \5C\5C\5Cquotes
IsActive
IsHotkey
Ignore
endFilter
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Your information was the last I needed to make it work. I will combine
my filter with the clear subject-macro and make it run automatically.
This will be great!
Thank you very much :-)
--
Kind regards,
Britt Malka
|\ /|
| \__/ |
\/ \/
| |
\\ //
\ /
\/
... That's thirty minutes away. I'll be there in ten.
... www.malka.it - www.malka.dk - www.supermalka.dk ...
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html