On Saturday, October 30, 2004, at 13:35:19 [UTC+0200] (Saturday, October 30,
2004 13:35 my local time) Marcus Ohlstr�m wrote:

> Before pasting the filter in to the SO, you have to edit it in e.g.
> notepad to get rid of the extra line feeds. In both filters, delete
> the extra line feeds after "template" and "CmdLine".

These extra lines are added automatically in template editor and actually
they have no meaning here.

> Over here, Add_Reference works as expected, Remove_Reference however
> does not always import the edited message. Most of the time it does,
> but not always. It seems like Remove_Reference cannot handle messages
> manipulated by Add_Reference.

Thank you for testing these filters. I modified them slightly, added
un-greedy option in RegExp and now it seems they work correctly. I also
added "In-Reply-To" field in "Add_Reference" filter because this
resulted in several inconsistences.

Both filters are attached here in one text file.

Attachments:
  [1] Thread_Repair.txt

-- 
Best regards,
Zygmunt Wereszczynski
(Using The Bat! v3.0.2.4 Rush on Windows 2000 5.0 Build 2195 Service Pack 4
with BayesIt! 0.7.4)
$$$$ TB! Message Filter $$$$
beginFilter
UID: [A07FE8E0.01C478BF.6BE0C190.13BA8BD5]
Name: Add_Reference
Filter: [EMAIL PROTECTED]
MoveMessage folder \5C\5C\5CTrash
ExportMessage OverwriteExist FmtUnix filename C:\5CTemp\5CUnix_Msg.txt
ExportMessage OverwriteExist FmtText filename C:\5CTemp\5Cexport.msg template 
%_OldMsg(%Put\3D\22C:\5CTemp\5CUnix_Msg.txt\22)%-\0D\0A%SetPattRegExp\3D\22(?ismU)(.*)(^Subject:.*\5Cs*.*\5Cn)(\5Cw.*?)\22%RegexpBlindMatch(%_OldMsg)%-\0D\0A%Subpatt(1)%Subpatt(2)In-Reply-To:\20%Clipboard\0D\0AReferences:\20%Clipboard\0D\0A%Subpatt(3)%-
RunExternal CmdLine 
C:\5CProgram\20Files\5CThe\20Bat!\5Cthebat.exe\20/IMPORTF\3DINBOX;X;I\3D\22C:\5CTemp\5Cexport.msg\22
IsManual
IsActive
IsHotkey
IsSendQueue
endFilter

$$$$ TB! Message Filter $$$$
beginFilter
UID: [A07FE8E0.01C478BF.700A45BD.1A1954B6]
Name: Remove_Reference
Filter: [EMAIL PROTECTED]
MoveMessage folder \5C\5C\5CTrash
ExportMessage OverwriteExist FmtUnix filename C:\5CTemp\5CUnix_Msg.txt
ExportMessage OverwriteExist FmtText filename C:\5CTemp\5Cexport.msg template 
%_OldMsg(%Put\3D\22C:\5CTemp\5CUnix_Msg.txt\22)%-\0D\0A%SetPattRegExp\3D\22(?ismU)(.*)(^References:.*\5Cs*.*\5Cn)(\5Cw.*?)\22%RegexpBlindMatch(%_OldMsg)%-\0D\0A%_NewHeader\3D\22%Subpatt(1)%Subpatt(3)\22%-\0D\0A%SetPattRegExp\3D\22(?ismU)(.*)(^In-Reply-To:.*\5Cs*.*\5Cn)(\5Cw.*?)\22%RegexpBlindMatch(%_NewHeader)%-\0D\0A%Subpatt(1)%Subpatt(3)\0D\0A\0D\0A%SetPattRegExp\3D\22(?ism)\5Cn\5Cn(.*)\22%RegexpMatch(%_ModMsg)%-
RunExternal CmdLine 
C:\5CProgram\20Files\5CThe\20Bat!\5Cthebat.exe\20/IMPORTF\3DINBOX;X;I\3D\22C:\5CTemp\5Cexport.msg\22
IsManual
IsActive
IsHotkey
IsCheckRule
IsHotkeyOnly
IsSendQueue
endFilter
________________________________________________________
 Current beta is 3.0.2.4 Rush | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/

Reply via email to