Page 1 of 1

order rules

Posted: Thu Mar 08, 2012 5:11 am
by eproducts
Hi,

is it possible to order the rules?

We have rules (ordered) like this:
1.) move to folder: abc
AND
2.) delete if thw word: xyz is in the subject

The mail is moved to folder abc, but not deleted, if 2. is TRUE...?!

Any ideas?

Cheers
T

Re: order rules

Posted: Wed Mar 14, 2012 8:09 am
by mikethebike
If you are unable to do it in the client, you can do it using tfbrowse on the 3d file in the user's "g" directory:

tfbrowse -i ~/data/usergdirectory/*3d > /tmp/eproducts.txt

you will notice in that file there are sequence numbers for each action, like this:

HEADER (DN) 1 0 2 1002 0x0 0x0 0 0x0 0x0 0x0 0x0 0x0 ""
AA_NO (DN) 0x0 101 0 0 0 0 "" "" "" "" ""
FILTER_STRING (DN) 0x0 0x0 2 1 0 0 "test" "" ""
AA_SIMPLE_REPLY (DN) 0x0 0x1 1167 0 0 "" "" "autoreply_101" ""
AA_NO (DN) 0x0 102 0 0 0 0 "" "" "" "" ""
FILTER_STRING (DN) 0x0 0x0 2 1 0 0 "te*" "" ""
AA_SIMPLE_REPLY (DN) 0x0 0x1 1167 0 0 "" "" "autoreply_102" ""

You can amend the file, make sure the sequence numbers are in the correct order numerically then regenerate the 3d file:

tfbrowse -g -i /tmp/eproducts.txt -o ~/data/usergdirectory/0000003d


Its a bit of a fudge, and not something you want to be doing for lots of users, but it works

Mick