[quote user="bfluet"]You are doing almost exactly what I do except I use a rule in the Global filter to detect the spam tag header and move to the SPAM user. Also, the first rules in my Global filter set detect messages originating locally and stops rule processing. It took me awhile to figure out effective rules for this but I think I ended up with a filter that detected a 'resent by Pegasus' header in conjunction with a logical AND rule that detected mydomain. I am not at the office so can't look to confirm but I will send myself a note to check into it and post back. [/quote]
The rules I use at the top of my global filter set are:
If expression headers matches "Message-ID:*mydomain.com?" LogicalAnd ""
If expression headers matches "X-mailer: Pegasus Mail*" Exit ""
Checking the X-mailer header for "Pegasus Mail" works because all of my users use Pegasus Mail.
Thinking about this further, I don't recall having problems with forwards out of my Spam folder being redirected back to my Spam folder before I got these filtering rules in place. I put them in place so that outgoing mail did not get subjected this filter set. A lot of time has passed since I set this up. It is possible that at one time I had Pegasus Mail configured to not pass all mail through Mercury (configurable via the gateway settings set using pconfig). I have that setting enabled now which I believe I did to insure that all messages were acted on when a forward file was in place.