Hello all!

Peter Meyns remembered in mid:[EMAIL PROTECTED]
the old version filters for thread manipulation. I re-worked them to meet NFS
requirements and include them here as text attachment.

The "Add_Reference" filter should be used if a message lost its reference,
i.e., due to improperly working server or mailer program. Using this filter
is a simple task, as described in
http://cgi.marck.free-online.co.uk/library.php?category=Procedure

The filter first exports whole message to file "C:\Temp\Unix_Msg.txt" using
Unix format, then uses this file as a source for exporting modified header
(with Reference field added) and message body with attachments to second
file "C:\Temp\export.msg". Then filter imports this modified message to
default Inbox. Old message is deleted to common Trash folder. Imported
message with new reference can be moved manually into original folder.

The "Remove_Reference" filter works in similar way. It should be used for
breaking a thread if someone applied Reply function instead of New Message.

Both filters are triggered manually with keyboard shortcuts (Alt+Ctrl+R
starts Add_Reference, and Shift+Alt+Ctrl+R triggers Remove_Reference).

Filters can be used to repair threads of any kind of messages (with or
without attachments, HTML messages, messages written in local languages,
etc.)

Attachments:
  [1] Manipulate_Threads.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(?ism)(.*)(^Subject:.*?\5Cs*.*?\5Cn)(\5Cw.*)\22%RegexpBlindMatch(%_OldMsg)%-\0D\0A%Subpatt(1)%Subpatt(2)References:\20%Clipboard\0D\0A%Subpatt(3)%-\0D\0A
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(?ism)(.*)(^References:.*?\5Cs*.*?\5Cn)(\5Cw.*)\22%RegexpBlindMatch(%_OldMsg)%-\0D\0A%_NewHeader\3D\22%Subpatt(1)%Subpatt(3)\22%-\0D\0A%SetPattRegExp\3D\22(?ism)(.*)(^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(%_OldMsg)%-\0D\0A
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