Hello,
some users asked me about it and I have discovered one solution, thanks to
9Val, who helped me with filter setting.

What we need:
- AnotherMacros plugin with %FolderPath macro returning whole folder path
  http://www.thebat.cz/stazeni/pluginy/anothermacros0321.zip
- new header defined in "Preferences|Message Headers", in my case
  "X-Bat-Folder"

What to do:

1) add AnotherMacros plugin in "Preferences|Plug-ins". There is %FolderName
   macro presented in The Bat!, but it returns folder name only, not whole
   path including parent folders

2) create new message header "X-Bat-Folder" in "Preferences|Message Headers"

3) Add macro

   %SETHEADER("X-Bat-Folder","\\mikus\%FolderPath")

   into folder template or You can enter full path (for example
   "\\mikus\inbox\test") and add macro into contact template. Of course,
   You must change "mikus" to you account name :-)

4) Copy following code into clipboard and Paste it via Ctrl+V into
"Outgoing mail" section in Common filters:

$$$$ TB! Message Filter $$$$
beginFilter
UID: [DB688D00.01C641DE.15CED5F4.67003FC6]
Name: Move\20to\20folder
Filter: {\0D\0A\20`7`X-Bat-Folder`2`(?-U).+\0D\0A}
MoveMessage AutoFolder folder %FilterResults
IsActive
Ignore
endFilter

5) select "Share with" tab in this common filter and check accounts where
   You want to use this filter

That's all folks
   

Limitations:
- macro %FolderPath doesn't work with common folder, so if You want to use
  this for common folder, enter whole path manually, for example
  %SETHEADER("X-Bat-Folder","\\\test")

- header X-Bat-Folder with path is included in outgoing messages (but You
  can use X-RAY proxy application for example to remove it

Marek
  
P.S. You can use Comments header instead creating new "X-Bat-Folder", but
it can be used for other purposes, so I have decided to create new one

-- 

Thanks and Bye,

Marek Mikus
Czech support of The Bat!
http://www.thebat.cz

Using the best The Bat! 3.71.03
under Windows XP 5.1 Build 2600 Service Pack 1
Notebook Acer, Pentium4-M 2.2 GHz, 512 MB RAM, ADSL line






________________________________________________________
 Current beta is 3.71.03 | '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